Computing.Net > Forums > Linux > IP MASQ with IPTABLES/NAT

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IP MASQ with IPTABLES/NAT

Reply to Message Icon

Name: Sebas
Date: October 21, 2002 at 07:38:17 Pacific
OS: LInux Red Hat 8
CPU/Ram: AMD XP 1800 - 256 DDR
Comment:

My server-Gateway: (Cable modem)
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0 -j SNAT --to myExtIP

My Client:
# route add default gw 192.168.0.1

Both Server and Client:

/etc/sysconfig/network-scripting/ifcfg-eth1 on client and...
/etc/sysconfig/network-scripting/ifcfg-eth0 on server are EQUALS except static IP

Also tried using

#iptables -A OUTPUT -o eth0 ... -j MASQUERADE

and added several modified gateway scripts that I found surfing the net but that didn't work either.

When i try surfing the net on the client side I see the hub twinkles so the client has nothing wrong but the server.
I don't know what it's wrong if I tried everything I said and all is fine.
Will be waiting for some help. Thanks.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Run process on other tty php apache mysql on Redha...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: IP MASQ with IPTABLES/NAT

iptables-nat configuration problems www.computing.net/answers/linux/iptablesnat-configuration-problems/6372.html

Masquerading problem with iptables www.computing.net/answers/linux/masquerading-problem-with-iptables/25107.html

IP Masq www.computing.net/answers/linux/ip-masq/183.html