Static IP:
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to <server_ip>
if you have a dynamic ip, it would be:
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
Rob
-----Original Message-----
From: Douglas "F." Elznic
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Sent: 4/10/01 6:23 AM
Subject: iptables question
Hello,
Sorry for the stupid question. Kernelnotes.org is down and i can not
get to the iptable docs. What is the iptables equiv of the following
command?
ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0/0
I need this for tcp and udp so -p tcp and -p udp
Thanks in advance.
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-*~
| Douglas F. Elznic
|
| <dfelznic (at) syr.edu>
|
|
|
| O r g
|
| e. Anize.org
|
| z i n
|
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-*~
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|