Putting nat routing into place permanently? -- service iptables save

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



Preston Crawford wrote:  
> What's the canonical way to do this in CentOS/RHEL? I
> know how to do it from the command line, but how to do
> I make a NAT route permanent?

Tom Brown <tom.brown@xxxxxxxxxxxxxxxxxx> wrote:
> rc.local ?

Actually, for newer kernel 2.4+ Fedora-based distros
(including CentOS 3+), it's recommended you use the "service
iptables save" (or "/etc/init.d/iptables save").

It basically parses the currently configured tables in the
kernel and outputs them (in short-hand form) to the
configuration file /etc/sysconfig/iptables.

Then configure the iptables script to start at boot for
run-levels 2+.  FYI, I'm not sure what happens to any "saved
changes" if you re-configure /etc/sysconfig/iptables from the
"Firewall Setup" though.  So do that with care.


-- 
Bryan J. Smith                | Sent from Yahoo Mail
mailto:b.j.smith@xxxxxxxx     |  (please excuse any
http://thebs413.blogspot.com/ |   missing headers)

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux