From: "Morgan" Subject: DNAT Help Date: Mon, 21 Oct 2002 01:28:31 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <004f01c27890$69ce59b0$8b1c000a@raven> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0050_01C278A1.2D5729B0" 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_0050_01C278A1.2D5729B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Can anyone help me with this? I'm trying to telnet to 1.2.3.4 port 25 Where I'm DNATing 1.2.3.4 to 1.2.3.5 telnet is still trying to connect to 1.2.3.4 but it never get any connections. Here is my nat table. mailserv:/etc# /sbin/iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT all -- anywhere 1.2.3.4 to:1.2.3.5 Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination DNAT all -- anywhere 1.2.3.4 to:1.2.3.5 Thanks Morgan ------=_NextPart_000_0050_01C278A1.2D5729B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

Can anyone help me = with this?

 

I’m trying to = telnet to 1.2.3.4 port 25

 

Where I’m DNATing 1.2.3.4 to = 1.2.3.5

 

teln= et is still trying to connect to 1.2.3.4 but it = never get any connections.

 

Here is my nat table.

 

 

mail= serv:/etc# /sbin/iptables -L -t nat

Chain PREROUTING (policy ACCEPT)

targ= et     prot opt source       &nbs= p;       destination

DNAT=        = all  = --  anywhere       &nbs= p;     1.2.3.4    = to:1.2.3.5

 

Chain POSTROUTING (policy ACCEPT)

targ= et     prot opt source       &nbs= p;       destination

 

Chain OUTPUT (policy = ACCEPT)

targ= et     prot opt source       &nbs= p;       destination

DNAT=        = all  = --  anywhere       &nbs= p;    1.2.3.4     = to:1.2.3.5

 

 

Thanks

Morgan =

------=_NextPart_000_0050_01C278A1.2D5729B0--