From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stanislav Puffler DiS." Subject: tcp packets on 25 port FORWARDING Date: Fri, 12 Mar 2004 10:46:41 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0041_01C4081F.4DB6F1E0" 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_0041_01C4081F.4DB6F1E0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi there, I need to forward all tcp packets with port 25 (SMTP) from Internet to machine in my network. My settings (eth0 =3D internet IP, eth1 =3D = 192.168.200.1 - dmz IP connected to another machine with Postfix, eth2 =3D 192.168.0.1 = - gateway - LAN). Have opened port 25 and setup rule : =20 iptables -t nat -A PREROUTING -p tcp -dport 25 - i eth0 -j DNAT -to 192.168.200.2:85 =20 iptables -A FORWARD -i eth0 -p tcp -d 192:168.200.2 -dport 25 -m state -state NEW,ESTABLISHED,RELATED -j ACCEPT =20 But it still doesn=B4t route tcp packets on port 25 to my Postfix = computer :o( If I try telnet 192.168.200.2 25 from FW it works, if I try this from Internet, it doesn=B4t work :o( Any ideas ? Thanks a lot. Stan. =20 ------=_NextPart_000_0041_01C4081F.4DB6F1E0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable

Hi there,

I need to forward all tcp packets with port 25 (SMTP) = from Internet to machine in my network. My settings (eth0 =3D internet IP, = eth1 =3D 192.168.200.1 - dmz IP connected to another machine with Postfix, eth2 = =3D 192.168.0.1 – gateway - LAN). Have opened port 25 and setup rule = :

 

iptables –t nat –A PREROUTING –p = tcp –dport 25 – i eth0 –j DNAT –to = 192.168.200.2:85

 

iptables –A FORWARD –i eth0 –p tcp –d 192:168.200.2 –dport 25 –m state –state NEW,ESTABLISHED,RELATED –j ACCEPT

 

But it still doesn=B4t route tcp packets on port 25 = to my Postfix computer :o( If I try telnet 192.168.200.2 25 from FW it works, = if I try this from Internet, it doesn=B4t work :o( Any ideas ? Thanks a = lot…

Stan.

 

------=_NextPart_000_0041_01C4081F.4DB6F1E0--