LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Iptables, where do i store NAT lines? (http://www.linuxquestions.org/questions/linux-software-2/iptables-where-do-i-store-nat-lines-50396/)

d33pdream 03-17-2003 11:37 PM

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 12: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 04:37 PM.