All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Brenton <cbrenton@chrisbrenton.org>
To: Lohan Spies <l.spies@petzetakis.co.za>
Cc: 'Antony Stone' <Antony@Soft-Solutions.co.uk>,
	netfilter@lists.netfilter.org
Subject: RE: open port to specific ip address
Date: 10 Nov 2003 08:08:49 -0500	[thread overview]
Message-ID: <1068469729.1530.15.camel@valhalla> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAHvCSmpkyA0+lP5YKpr7djsKAAAAQAAAAX5TmzymhnkKWYhlmn/VLAwEAAAAA@petzetakis-africa.co.za>

On Mon, 2003-11-10 at 07:01, Lohan Spies wrote:
> Anthony,
> 
> 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. 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. 

Now, unless your internal network lies in the direct path of these two
external system, the SYN/ACK is going to be sent directly to this
original external host. So this host is going to see a SYN/ACK packet
from some host it never sent a SYN packet to. This of course means the
SYN/ACK will be discarded with a RST. 

Would it not be easier to simply change DNS to point to the external
host?

HTH,
C




  parent reply	other threads:[~2003-11-10 13:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10 10:55 open port to specific ip address Lohan Spies
2003-11-10 11:22 ` Antony Stone
2003-11-10 12:01   ` Lohan Spies
2003-11-10 12:15     ` Antony Stone
2003-11-10 13:08     ` Chris Brenton [this message]
2003-11-10 13:26       ` Antony Stone
2003-11-10 14:57         ` Chris Brenton
2003-11-10 15:44           ` Antony Stone
2003-11-11  7:41           ` Lohan Spies
  -- strict thread matches above, loose matches on Subject: below --
2003-11-10  9:58 Lohan Spies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1068469729.1530.15.camel@valhalla \
    --to=cbrenton@chrisbrenton.org \
    --cc=Antony@Soft-Solutions.co.uk \
    --cc=l.spies@petzetakis.co.za \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.