On Wed, 2002-10-30 at 10:45, Michael Schwendt wrote: > > I want to add new rules that can't (as far as I know) be defined by > > lokkit, but I wonder where should I add those rules. At the end of the > > file? At the beginning? > > Don't add them to the file, but load them manually with iptables or > with a script. Then save all your rules with "service iptables > save". That will put them into /etc/sysconfig/iptables. Thank you, I did: [root@imoqland root]# iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.105.220:80 [root@imoqland root]# service iptables save Saving current rules to /etc/sysconfig/iptables: [ OK ] [root@imoqland root]# cat /etc/sysconfig/iptables | grep 192.168 [0:0] -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.105.220:80 BUT [root@imoqland root]# telnet localhost 80 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused [root@imoqland root]# telnet myrealip 80 Trying 200.33.79.250... telnet: connect to address 200.33.79.250: Connection refused NEVERTHELESS: [root@imoqland root]# telnet 192.168.105.220 80 Trying 192.168.105.220... Connected to 192.168.105.220. Escape character is '^]'. Anyone has an idea of what is happening? iptables doesn't seem to be redirecting the port 80 :( -- ˇSé libre, usa software libre! Be free, use free software! http://www.imoqland.com/ -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list