Re: open port to specific ip address

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

 



On Monday 10 November 2003 1:08 pm, Chris Brenton wrote:

> On Mon, 2003-11-10 at 07:01, Lohan Spies wrote:
> > Antony,
> >
> > I tried this but it is not working!
>
> I'm not so sure you can actually get this to work.
>
> > It is TCP
> >
> > I want to map (internal) 10.10.10.41 port 15000 to (external)
> > 196.2.147.208 port 80.
> > And then if anything from ip 196.2.147.208 port 80 comes back it must be
> > forwarded to 10.10.10.41 port 15000.
>
> This second half of the equation is the problem.
>
> The traffic come in from the Internet to your internal IP.

Come in from the Internet?   No, that wouldn't work.   You can't route a 
packet to 10.10.10.41 across the Internet.

I assumed (maybe wrongly?) that because Lohan specified an internal IP 
address, the access was required from the internal network.

> You then
> rewrite the destination IP to go back to some other host on the
> Internet. The host on the Internet then replies with a SYN/ACK to the
> source IP address, which is the original host on the Internet.

Well, so long as the SYN packet arrived in the first place, yes.

I hope this is not an accurate model of what Lohan is trying to do :)

Antony.

-- 

All matter in the Universe can be placed into one of two categories:

1. things which need to be fixed
2. things which will need to be fixed once you've had a few minutes to play 
with them
                                                     Please reply to the list;
                                                           please don't CC me.


[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