LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: iptables question

To: "'Douglas \"F.\" Elznic '" <dfelznic@xxxxxxx>, "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx '" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: iptables question
From: Robert Zwissler <RZwissler@xxxxxxxxxxxxxxx>
Date: Thu, 12 Apr 2001 13:21:06 -0500
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


<Prev in Thread] Current Thread [Next in Thread>