SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I cannot get Iptables to work, i used the command #which iptables to see if it could find it and it says
"which: no itables in (/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin)"
In the package manager it says iptables is installed, is there any way to reinstall it to fix the problem I am having? I tried to reinstall it myself but it doesn't put the files in sbin or any of the normal locations the files should be in.
It may be a cut&paste problem, but the text you posted says "no itables" instead of "no iptables" (missing p). Other than that, /usr/sbin is in the search path, so I'd either check the iptables package is really installed, or there's a missing symlink:
I accidently put it in wrong, it says it is installed but there are no files in the /usr/sbin/iptables/ the file is empty. The whole reason I want to get this to work is to use APF Firewall and it requires iptables to be installed. And APF Firewall cannot find the required files for it to work. So could you possibly guide me through how to reinstall iptables or somehow fix this. Thanks
I did all that and when I try to run apf firewall still it says it still cant find iptables, it is looking in /sbin/iptables/ and that is not a directory at all. But there is iptable files in /usr/local/sbin/
When the iptables package is installed correctly, the which command should show the following on Slackware:
From where did you get this apf firewall? From what I see searching the web, this is some kind of firewall configuration script. That script is not part of the stock Slackware. More than likely the APF firewall script presumes a location of /sbin/iptables rather than /usr/sbin/iptables, which would explain the failure.
A traditional way of configuring iptables in Slackware is to use the following web page, which will generate an rc.firewall script for Slackware:
I got apf from this site http://www.rfxn.com I guess ill figure this out later, I made the rc.firewall script and put it in the right directory and im guessing iptables should start everytime I run slackware.