Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-18-2003, 12:37 AM   #1
Registered: Jan 2003
Distribution: LFS
Posts: 90

Rep: Reputation: 15
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?
Old 03-18-2003, 01:20 AM   #2
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables 1:1 NAT Garak Linux - Security 13 12-19-2011 06:03 PM
iptables nat kernelvn Linux - Networking 5 05-03-2005 12:39 PM
IPTABLES : build NAT using IPTABLES joseph Linux - Networking 4 04-23-2004 06:08 AM
iptables and NAT arrruken Linux - Networking 8 10-03-2003 05:17 AM
IPtables +NAT daromer Linux - Networking 1 01-07-2002 12:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration