Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It's not a path thing, you've gotta be root.
Otherwise:
iptables v1.2.5: can't initialize iptables table `filter': Permission denied (you must be root)
Originally posted by fostiator i've opened a root terminal:
Code:
[root@FOSTIATOR fostiator]# /sbin/iptables -L
bash: /sbin/iptables: No such file or directory
Provided you reached the root shell by logging in as root and not using su then this is a little puzzling, but I hope you can understand how much this looks like a firewall issue. If you used su then use "su -" instead as this will also give you root's path. Also, just humour us and do a "which iptables" and "which ipchains". Once that's done and we can be sure that it isn't the firewall we can also check /etc/hosts.allow and /etc/hosts.deny I know that has irked me once or twice. You should also do a port scan on your Linux box to see if they're open, if you don't have a firewall then when you do a port scan (you can use nmap) you should have ports open for all services that are listening. Another possibility is Xinetd, if it isn't running none of your services will be able to start because that's what starts your services.
Bentz,
services that are usually only run by root are located in directories that are not in the path of the regular user such as /sbin, so when you su to root your path stays the same as that of your original login unless you use "su -" (without brackets of course).
Thanks, I know. I was commenting on the lack of understanding that even if the entire file system was part of this login's path, you still wouldn't nessasarily get a rule listing unless you were root.
The problem with your logic is that we just saw this person, logged in as root, accessing the binary (in it's typical place) directly, without using any path at all. Good suggestion about the 'which iptables', though. I'd also suggest you try 'rpm -q iptables', as Mandrake uses rpm for package management, and should notify whether or not iptables is installed at all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.