All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables abilities
@ 2004-01-22 12:21 Sven Burgener
  2004-01-22 12:33 ` Antony Stone
  2004-01-22 12:36 ` David Cannings
  0 siblings, 2 replies; 15+ messages in thread
From: Sven Burgener @ 2004-01-22 12:21 UTC (permalink / raw)
  To: netfilter

Hello

I'm looking for a way to connect two parties (computers) that both have 
a private IP address.

          (Internet)       (Internet)
      A <------------> X <------------> B

A: 192.168.1.13
B: 192.168.1.99
X: public IP address

In other words, can iptables act as a "relay" between two computers 
which both have a private IP address?

Cheers
Sven



^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: iptables abilities
@ 2004-01-23 19:48 bmcdowell
  2004-01-23 20:02 ` Antony Stone
  0 siblings, 1 reply; 15+ messages in thread
From: bmcdowell @ 2004-01-23 19:48 UTC (permalink / raw)
  To: netfilter


Are you by any chance referring to the phenomenon where everyone in the
world uses 192.168.1.0/24 as their internal subnet?  Wherein even if you
can get the two private subnets linked together routing fails to happen?

If so, I don't think there's a solution.  Or not a good one at any rate.
If you could guarantee unique addresses at each end, you might be able
to pull something off with a bridge.  Or, perhaps you could use some
NAT-magic to add 100 to the foreign IP's while in transit.  (By that I
mean make .1 equal to .101 on the other network.)  Still though, this is
a bad idea.  One out-of-scope IP would kill a setup of this type.  And,
since changing one subnet or the other is probably the first idea people
get when faced with this, I'd guess you can't control the scopes.

Or, maybe I misunderstood.


Bob

-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Sven Burgener
Sent: Friday, January 23, 2004 4:24 AM
To: netfilter@lists.netfilter.org
Subject: Re: iptables abilities


Antony Stone wrote:
> The only reason you can't route private addresses across the Internet
is that 
> all ISP routers drop packets sent to these address ranges.

Right.

> You would set up your VPN system to forward these packets, just the
same as 
> you can set up your own firewalls and routers to forward them if you
want to.
> 
> A VPN with two RFC1918 ranges at each end is a very common setup.

Yes, indeed.

My question, though, is how can a connection be established between two 
parties where one of them has a private address (A) and where you want 
to connect _to_ the server having the private address (A, see below).

The problem is, you can't establish a connection to the private address 
(A), so there has to be a means of 'hijacking' the established session 
(from X, see diagram below).


         (Internet)       (Internet)
     A <------------> X <------------> B

A: 192.168.X.X
B: 192.168.X.X
X: public IP address

The end result is to get from B to A, securely.

Cheers
Sven


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

end of thread, other threads:[~2004-01-23 20:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22 12:21 iptables abilities Sven Burgener
2004-01-22 12:33 ` Antony Stone
2004-01-22 13:50   ` Sven Burgener
2004-01-22 14:47     ` John A. Sullivan III
2004-01-23  8:59       ` Sven Burgener
2004-01-23  9:11         ` Antony Stone
2004-01-23 10:23           ` Sven Burgener
2004-01-23 10:38             ` Antony Stone
2004-01-23 13:33             ` John A. Sullivan III
2004-01-23 16:09               ` Antony Stone
2004-01-23 16:39                 ` Sven Burgener
2004-01-23 16:48                   ` Antony Stone
2004-01-22 12:36 ` David Cannings
  -- strict thread matches above, loose matches on Subject: below --
2004-01-23 19:48 bmcdowell
2004-01-23 20:02 ` Antony Stone

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.