netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bridge between ppp and ethernet - 1 IP address and assign it to another host
@ 2005-03-05 22:04 bert hubert
  2005-03-16  2:37 ` Horms
  0 siblings, 1 reply; 11+ messages in thread
From: bert hubert @ 2005-03-05 22:04 UTC (permalink / raw)
  To: netdev

Hi people,

I have an application that wants a Real IP Address, but for a variety of
good reasons, I can't connect the machine to the internet directly.

So, I need this:

DSL - Linux - Windows PC

Where I need the Windows PC to think it has the real single IP addres
assigned to me by the DSL provider. I run PPTP on the Linux box, which
should not touch traffic for that IP address.

Now I know that several DSL routers are capable of this stunt, so we should
be able to do this too. But how?

Linux is pretty stubborn in routing packets for its own IP address elsewhere
(rightfully so). I previously spent some time on this with a lot of
SNAT/DNAT trickery but it is not very pleasing, nor did it work.

What we're trying to do is a lot like building a bridge between ethernet and
ppp, but not quite.

Anybody have ideas? If we find something I'll post it on http://lartc.org.

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services

^ permalink raw reply	[flat|nested] 11+ messages in thread
* bridge between ppp and ethernet - 1 IP address and assign it to another host
@ 2005-03-06  5:01 Mark Smith
  2005-03-07 12:39 ` jamal
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Smith @ 2005-03-06  5:01 UTC (permalink / raw)
  To: ahu; +Cc: netdev

Hi Ben,

(sorry for not preserving the message thread id, I'm not subscribed to netdev)

"What we're trying to do is a lot like building a bridge between ethernet and
ppp, but not quite."

I've thought doing this sort of thing would be quite useful, in
particular if the Linux box could also perform firewalling on the
"bridged" traffic. 



Regards,
Mark.

-- 

    The Internet's nature is peer to peer.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: bridge between ppp and ethernet - 1 IP address and assign it to another host
@ 2005-03-09 20:01 Remco van Mook
  2005-03-10  0:30 ` jamal
  0 siblings, 1 reply; 11+ messages in thread
From: Remco van Mook @ 2005-03-09 20:01 UTC (permalink / raw)
  To: netdev; +Cc: jamal, ahu


I've been toying with the suggestion to do something with routing table 0 to
accomplish this, and I can report it works, standard 2.6.10 kernel. Here's how
I did it:

Assuming a linux system, connected to a local network 172.16.0.0/24, own
address 172.16.0.13, 'ppp' ip address to be assigned to a system that has
ip address 172.16.0.4

On the box that establishes the PPP connection:
1) establish ppp connection, get IP address, say 192.168.0.2
2) ip route del local 192.168.0.2
3) ip route add 192.168.0.2 via 172.16.0.4

On the other box, 172.16.0.4:

1) ip addr add 192.168.0.2 dev eth0
2) ip route add 0/0 via 172.16.0.13

I didn't bother assigning the IP address for the other box dynamically; that
might still pose a challenge - outside the scope of netdev IMHO.

Optionally you might want to SNAT outbound traffic on the PPP interface to
enforce the correct IP address. Of course the solution doesn't actually
'bridge' the traffic, you get another visible hop, but the effect is almost
the same.

Kind regards,

Remco van Mook

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

end of thread, other threads:[~2005-03-16  2:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-05 22:04 bridge between ppp and ethernet - 1 IP address and assign it to another host bert hubert
2005-03-16  2:37 ` Horms
  -- strict thread matches above, loose matches on Subject: below --
2005-03-06  5:01 Mark Smith
2005-03-07 12:39 ` jamal
2005-03-07 13:56   ` Mark Smith
2005-03-07 21:32     ` bert hubert
2005-03-07 23:33       ` jamal
2005-03-08  1:27         ` Mark Smith
2005-03-08 14:10           ` jamal
2005-03-09 20:01 Remco van Mook
2005-03-10  0:30 ` jamal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).