Linux Netfilter discussions
 help / color / mirror / Atom feed
* port forward using iptables not happening
@ 2002-07-05  6:44 deepali
  2002-07-05  7:24 ` José Alberto Aguilar González
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: deepali @ 2002-07-05  6:44 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

Dear Support
My setup is ..I have one linux box having eth0(valid ip202.140.152.33) and eth1(invalid ip-local lan192.168.220.250) .I have one more machine in my Local Lan (192.168.220.90) which is a mail server in my local LAN.Now I want to 
1.enable port forwarding ie any request comming on 202.140.152.33 port 285 should get forwarded to 192.168.220.90 port 25 my mail server.

2.Also any request comming from my lan ie 192.168.220.0/24 to invalid ip of linux box ie 192.168.220.90 285 should also forwarded to my Mail server in lan ie 192.168.220.30 port 25.

My first synario is also not working.

my rules are

iptables -t nat -A PREROUTING -i eth0  -p tcp -d 202.140.136.90 --dport 285 -j DNAT 182.168.220.90:25

iptables -t nat -A POSTROUTING  -o eth0 -j MASQURADE
iptables -t nat -A POSTROUTING -s 192.168.220.0/24 -j MASQURADE

Pls help


Thanks and Regards
Deepali


[-- Attachment #2: Type: text/html, Size: 1772 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-06  2:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-05  6:44 port forward using iptables not happening deepali
2002-07-05  7:24 ` José Alberto Aguilar González
2002-07-05  7:48 ` Stewart Thompson
2002-07-05 11:20 ` Jan Humme
2002-07-06  2:34   ` deepali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox