You are not logged in.
Pages: 1
First of all to those who helped with te wiki for the firewalls the http://wiki.archlinux.org/index.php/Firewalls and http://wiki.archlinux.org/index.php/Sim … wall_HOWTO , most awesome, a huge thanks.
I only have one small issue I cannot make the rules display the 'rulenum' so I can try and remove a rule I have entered by mistake.
Last edited by flebber (2007-07-12 11:26:17)
Offline
iptables -L --line-numbers doesn't help?
Should you maybe try to display a different table entries? (-t tablename)
Offline
I avoid that problem by flushing the tables and writing them again, using /etc/rc.d/iptables. Try using that see how you like it. For extra security you could set the policy on each chain to DROP before flushing, then returning to your own policy after the reload. I'm not sure if the script does that.
Offline
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- foo * 0.0.0.0/0 0.0.0.0/0 tcp dpts:65000:65005
Awesome so -L --line-numbers worked, felt a bit silly I thought you used -L or --line-numbers when i read it. It was really easy after that I then
iptables -R open 1
and I removed the line I wanted.
The entry is now empty of the rules I had but still visible.
pkts bytes target prot opt in out source destination
0 0 all -- * * 0.0.0.0/0 0.0.0.0/0
Last edited by flebber (2007-07-11 12:23:28)
Offline
Pages: 1