From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Linux" Subject: Re: Forward all traffic to another Public address Date: Sat, 7 Dec 2002 10:15:59 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001301c29e57$d9307490$992826d8@bfons> References: <002b01c29b16$58d97fb0$d318b2a1@IBMCMDCTR004> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0051_01C29DD9.A36C4100" 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_0051_01C29DD9.A36C4100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Does anyone have any imput on this? Also, would iptables be the best = way to redirect the traffic? I don't have access to the router. Linux ----- Original Message -----=20 From: Linux=20 To: netfilter@lists.netfilter.org=20 Sent: Tuesday, December 03, 2002 2:52 PM Subject: Forward all traffic to another Public address 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_0051_01C29DD9.A36C4100 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Does anyone have any imput on = this?  Also,=20 would iptables be the best way to redirect the traffic?  I don't = have=20 access to the router.
 
Linux
----- Original Message -----
From:=20 Linux
To: netfilter@lists.netfilter.o= rg=20
Sent: Tuesday, December 03, = 2002 2:52=20 PM
Subject: Forward all traffic to = another=20 Public address

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=20 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=20 DNAT --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_0051_01C29DD9.A36C4100--