You are not logged in.
Pages: 1
I installed iptables with pacman but...
# which iptables
which: no iptables in (/usr/bin:/bin:/usr/bin/X11:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/root/bin)
Also, I have a firewall bash script that I've been using (with debian). Where is a good place to put it so the script is executed before any network interface is brought up?
Thanks.
Offline
Try
pacman -Ql iptables
Offline
# pacman -Ql iptables
--- snipped ---
iptables /usr/lib/pkgconfig/xtables.pc
iptables /usr/sbin/
iptables /usr/sbin/ip6tables
iptables /usr/sbin/ip6tables-multi
iptables /usr/sbin/ip6tables-restore
iptables /usr/sbin/ip6tables-save
iptables /usr/sbin/iptables
iptables /usr/sbin/iptables-multi
iptables /usr/sbin/iptables-restore
iptables /usr/sbin/iptables-save
iptables /usr/share/
--- snipped ---
Offline
Or try
$ whereis iptables
iptables: /usr/sbin/iptables /etc/iptables /usr/lib/iptables /usr/share/man/man8/iptables.8.gz
Last edited by Alexdsan (2009-01-25 23:59:41)
Offline
# whereis iptables
iptables: /etc/iptables
Offline
echo $PATH
Give what you have. To someone, it may be better than you dare to think.
Offline
# echo $PATH
/usr/bin:/bin:/usr/bin/X11:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
Offline
Thanks for the help. After reinstalling iptables, the command is found. Weird. Any ideas why that was happening? The command, patch, was doing the same. Maybe there are others...
I'm still wondering about the second part of my original posting: how do I have my firewall script run before the network is brought up (e.g. at boot)?
Offline
1) Your path variable much have been wrong. iptables is located in /sbin which isn't normally in a 'normal' users PATH, only root. (This is because iptables can only be run as root)
2) Make sure 'iptables' is before 'network' in your rc.conf -- but depending on your filewall rules, that may or may not work. Some rules may require the network to be started before they can start. It's seriously not a major issue to start iptables after network
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1