-   Linux - Software (
-   -   Iptables, where do i store NAT lines? (

d33pdream 03-18-2003 12:37 AM

Iptables, where do i store NAT lines?
At the console i type whats listed in the netfilter NAT HOWTO;

# modprobe iptable_nat
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# echo 1 > /proc/sys/net/ipv4/ip_forward

This works, unfortunetly, when I reboot, it ovbiously doesn't restore.

My question is; where do I store this information to make it perm.? Can it be entered into the conf file as is?

d33pdream 03-18-2003 01:20 AM

alright, the # iptables-save
command seemed to of worked except I still needed to type in:

# echo 1 > /proc/sys/net/ipv4/ip_forward

so i put that line in /etc/rc.d/rc.local

Is this secure? It works just fine now but is there a better way
of doing this?

All times are GMT -5. The time now is 08:44 PM.