All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <007d01c3a294$919eaa60$de0018ac@admin.monash.edu.my>]
* redirection trouble
@ 2003-11-04  1:53 Martín
  2003-11-04  2:21 ` Alistair Tonner
  0 siblings, 1 reply; 7+ messages in thread
From: Martín @ 2003-11-04  1:53 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

This is the situation:



           Internal LAN machine (192.168.2.5)
                          |
                          |
                          |
(eth1 192.168.2.1) NAT LINUX ( eth0 192.168.1.10 > adsl ppp0 IP dinamic)
                          |
                          |
                          |
             Server 200.45.45.200 (service at port 10000)



This is what I intend to do:
For particular reasons, I need that a soft at 192.168.2.5 comunicate with a 
server with a service at port 10000 (UDP), but this can´t be done through 
normal NAT. So i want to establish a link between both (server and 
192.168.2.5) manually useing the NAT LINUX
So, 192.168.2.5 comunicates to 192.168.2.1 port 10000, the NAT LINUX 
redirect this traffic to the server 200.45.45.200 port 10000. The server 
will respond to the NAT LINUX who will redirect this traffic to 192.168.2.5 
(port 10000 also)
I try to do all this in this way:


iptables -t nat -I PREROUTING 1 -i eth1 -d 192.168.2.1 -p udp --dport 10000 
-j DNAT --to 200.45.45.200

iptables -t nat -I POSTROUTING 1 -o eth0 -p udp --dport 10000 -j SNAT --to 
192.168.2.5


BUT THIS IS NOT WORKING. I GET A MESSAGE FROM THE SOFT AT 192.168.2.5 
TELLING "CONNECTION TIMED OUT"... USEING TCPDUMP i get this as the only 
thing comeing back...:

200.45.45.200.10000 > 168.226.174.184.10000:  udp 8 [tos 0x40]



I would apreciate any help with this trouble
Thanks







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

end of thread, other threads:[~2003-11-28 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <004a01c3a282$a1430cc0$de0018ac@admin.monash.edu.my>
2003-11-04  5:15 ` redirection trouble Martín
2003-11-04 22:17   ` Alistair Tonner
2003-11-28 17:25   ` Alistair Tonner
     [not found] <007d01c3a294$919eaa60$de0018ac@admin.monash.edu.my>
2003-11-04 15:50 ` Martín
2003-11-04  1:53 Martín
2003-11-04  2:21 ` Alistair Tonner
2003-11-04  2:37   ` Martín

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.