-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 17 Nov 2002 02:05:34 +0800, [EMAIL PROTECTED] wrote:

> How to set the NAT, then Internet Users they don't know the client is
> using Private IP address ?
> 
> This is my NAT setting :
> 
> /etc/rc.d/rc.local :
> .....
> echo '1' > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -A POSTROUTING -o eth0 -s 172.2.0.0/24 -j MASQUERADE
> .....
>
> So, how to modify the config ?

The Red Hat way of applying this configuration would be to use

  a) /etc/sysctl.conf           for IP Forwarding
  b) /etc/sysconfig/iptables    for the firewall/NAT rules

rc.local is likely to interfere with those two files.

Btw, if you have an non-dynamic IP address, you might want to look
into SNAT instead of Masquerading. See "man iptables" towards the
lower half, TARGET EXTENSIONS > SNAT.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE91p0s0iMVcrivHFQRAr+/AJ41G1ZFKWMP7yF5oBtrLcUNvKBGXQCfdzUI
QehNYqEw41Pp+p18dJj53cE=
=uidC
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to