Re: Problems with Portforwarding -- Loopback problems---

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 16 March 2004 4:49 pm, Ronny Fauth wrote:

> Antony Stone wrote:
> >>Test --> Router/Gateway ---> Inet --> Router/Gateway --> Test2
>
>        192.168.0.2 ---> 192.168.0.1 ---> dynamicIP, the IP i'm using at
> the Internet ---> 192.168.0.1 ---> 192.168.0.3
>
> i want to forward some ports, port 192.168.0.1:4711 should be forwarded
> to 192.168.0.2:4711, well this works, but i want to try it..... so i'm
> typing on a browser on 192.168.0.3 "http://xxx.dyndns.org:4711/"; and this
> doesn't work, if i'm typing "http://192.168.0.2:4711"; it works, this is the
> major problem i have.

Think about the replies.

192.168.0.3 sends a packet to xxx.dyndns.org, that gets translated by 
192.168.0.1 into 192.168.0.2

192.168.0.2 receives the packet, sees that the sender is 192.168.0.3, and 
replies.

Therefore 192.168.0.3 sent a packet to xxx.dyndns.org and got a reply from 
192.168.0.2.   It can't handle this, so fails.

(I'm assuming in all the above that xxx.dyndns.org does not resolve to 
192.168.0.2, of course).

Also see http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-10.html

Regards,

Antony.

-- 
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux