You are not logged in.

#1 2007-07-08 13:51:50

flebber
Member
Registered: 2007-06-19
Posts: 32

(Solved) iptables

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

#2 2007-07-08 22:16:58

cromo
Member
From: Czestochowa, Poland
Registered: 2006-09-20
Posts: 87

Re: (Solved) iptables

iptables -L --line-numbers doesn't help?
Should you maybe try to display a different table entries? (-t tablename)

Offline

#3 2007-07-09 01:46:25

PenguinFlavored
Member
From: Chicago, IL, USA
Registered: 2006-06-06
Posts: 66
Website

Re: (Solved) iptables

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

#4 2007-07-11 12:19:32

flebber
Member
Registered: 2007-06-19
Posts: 32

Re: (Solved) iptables

 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

Board footer

Powered by FluxBB