From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Linux" Subject: Forward all traffic to another Public address Date: Tue, 3 Dec 2002 14:52:59 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <002b01c29b16$58d97fb0$d318b2a1@IBMCMDCTR004> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0028_01C29ADB.ABD3B950" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C29ADB.ABD3B950 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello All, I am freaking going crazy and pulling my hair out. Here is I want to = do. Forward all traffic (smtp, pop3, web,etc) for one IP address in Server = box located in CA to a Server in TX These boxes are on separate networks. Here is what I did iptables -t nat -A PREROUTING -s 216.x.x.x -d 238.x.x.x -m state --state = RELATED,ESTABLISHED -j MASQ iptables -t nat -A PREROUTING -d 238.x.x.x -j DNAT --to 216.x.x.x Can someone please help me as I cannot figure out what I am doing wrong. Thank you, Linux ------=_NextPart_000_0028_01C29ADB.ABD3B950 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello All,
 
I am freaking going crazy and pulling = my hair=20 out.  Here is I want to do.
Forward all traffic (smtp, pop3, = web,etc) for one=20 IP address in Server box located in CA to a Server in TX
These boxes are on separate = networks.
Here is what I did
 
iptables -t nat -A PREROUTING -s = 216.x.x.x -d=20 238.x.x.x -m state --state RELATED,ESTABLISHED -j MASQ
iptables -t nat -A PREROUTING -d = 238.x.x.x -j DNAT=20 --to 216.x.x.x
 
 
Can someone please help me as I cannot = figure out=20 what I am doing wrong.
 
 
Thank you,
 
Linux


------=_NextPart_000_0028_01C29ADB.ABD3B950--