[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Saving iptables rules?



-----Original Message-----
From: redhat-list-admin redhat com [mailto:redhat-list-admin redhat com]
On Behalf Of Tapang, Roderick Eugenio 

>>If I set this command in iptables:
>>
>>iptables -t nat -A PREROUTING -p tcp -d 172.16.1.107 --dport 
>>80 -j REDIRECT
>>--to-port 80
>>
>>How do I make sure it works after a reboot?

> do an 'iptables-save'. and then verify if /etc/sysconfig/iptables has
the
> correct entries.
> (and if iptables is enabled in runlevels 3 and 5).

Well... This does not work, it does not remember the values after
reboot, and I don?t have the file:

/etc/sysconfig/iptables

What now, what do I do?

Best regards
Søren





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]