iptables rules

Andrey Subbotin e-ploko at dominanta.ru
Fri Jul 2 07:50:15 UTC 2004


On Fri, 2004-07-02, at 15:18, Andrea Marin wrote:

> I have create a rules for my firewall:
> 
> #iptables -A INPUT -s 0/0 -d 1.2.3.4 -m state --state NEW -p tcp --dport
> 80 -i eth0 -j DROP
> 
> When I try to connect to my web server the connections is refuse, and
> this is ok, but if I want to see the rules in the configuration-file
> /etc/sysconfig/iptables the line there isn't.
> 
> Where put the rules my fedora core 2 box?

Yup, you're right, they go into /etc/sysconfig/iptables. But you should
firstly do "service iptables save" before you'd see your new rules
there.

-- 
Andrey Subbotin

ICQ UIN: 114087545
Journal: http://www.livejournal.com/users/e_ploko/





More information about the fedora-list mailing list