LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2010, 01:12 PM   #1
PlancksCnst
Member
 
Registered: Sep 2006
Posts: 34

Rep: Reputation: 15
Transparent router/bridge


The challenge:
I am trying to setup a piece of hardware that is transparent to the network that transfers ip packets between two interfaces without adding a "hop".

Details
The particular problem I'm having is that one interface is ppp, the other is ethernet. It is trivial to setup a bridge between two ethernet devices but I am having trouble finding anything for ppp<->ethernet.

Here, the ppp link is an internet connection, and the ethernet connection has exactly one device attached. Once the ppp link is negotiated, I want the ppp peer to think it's talking directly with the device on my ethernet interface and I want the device on my ethernet interface to think it's talking directly to the ppp peer.

Current solution:
The best solution I currently have is to alter the routing table. When the ppp link is negotiated, I am given an ip address. I add a route that directs everything to that ip address to the eth0 device. I also set a default route to the ppp device. Now, anything that comes from the ethernet side gets forwarded to the ppp side, and anything directed towards my ip address gets forwarded to the eth0 side.
 
Old 07-28-2010, 06:57 AM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
ppp isn't ethernet; it doesn't support any kind of bus but ONLY end-to-end communication. So, bridging won't work. You CAN create a bridged virtual network (using for example openvpn), but that's a lot of overhead. Why do you want your ppp peer appear bridged into your local ethernet segment? Maybe there is a better way to solve the problem.
 
Old 07-28-2010, 09:14 AM   #3
PlancksCnst
Member
 
Registered: Sep 2006
Posts: 34

Original Poster
Rep: Reputation: 15
What I want is to be completely transparent at layer 3. I want the box to only touch things from layer 2 down - that is, handle ppp<>ethernet interface, but leave IP alone completely.
 
Old 07-28-2010, 09:27 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It would be much easier to configure the device as router and use it as a gateway device. Plus, if you don't have an internet IP assigned for each host, you need to use NAT anyway. Plus, now you can configure the device as a firewall for your network.
 
Old 07-28-2010, 01:39 PM   #5
PlancksCnst
Member
 
Registered: Sep 2006
Posts: 34

Original Poster
Rep: Reputation: 15
I only have one host, and it should be assigned the address that comes from the ppp negotiation. The whole point is that I don't want a gateway - I want it to be invisible.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transparent bridge for snooping traffic LasseBob Linux - Networking 2 02-01-2008 07:06 AM
how to configure non transparent bridge? mehuljv Linux - General 1 04-25-2005 09:45 AM
how to configure non transparent bridge? mehuljv Linux - Newbie 0 04-25-2005 08:30 AM
Snort on a transparent bridge? kemplej Linux - Security 2 09-15-2004 05:09 PM
Passing DHCP over a transparent bridge wildefire Linux - Networking 2 11-24-2003 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration