LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-04-2007, 12:24 AM   #1
cluelessnewb
Member
 
Registered: Jul 2006
Posts: 35

Rep: Reputation: 15
Bridge serial ppp0 to eth0


Unlike most of the the threads relating to this, I'm not trying to connect a local network on eth0 to the internet on ppp0, but rather the opposite; I have a computer which connects to the internet through my router on eth0, and another computer that connects to the first via a serial cable (ppp0). I know that brctl can't handle ppp0, and I am clueless about iptables, so I was wondering if anyone could tell me how to forward all packets (or even better, just the ones going to it) to the computer connected via serial cable. I don't really need IP masquerading, as it will be connected through my home router, which does this job. Any advice is much appreciated.
 
Old 04-04-2007, 03:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
can you fill us in a bit on the topology here? this ppp0 link is meant to be a different subnet i take it, it being a serial link, that's be the norm. looks most like you'd just want to enable routing on the box in the middle and apply relevant routes to know what lives on the ppp link.
 
Old 04-05-2007, 01:38 AM   #3
cluelessnewb
Member
 
Registered: Jul 2006
Posts: 35

Original Poster
Rep: Reputation: 15
The ppp0 link isn't meant to be a different subnet, I basically just want to bridge it to eth0. I can't use brctl, and if I have to use iptables or something similar, I'd rather it just forward packets which are destined to one of the two IP addresses which will be connected through the serial link.

Topology:
Code:
             WWW
              |
Othersys1--Router--Othersys2
              | (eth0)
            Syst1
              | (ppp0)
            Syst2
              | (irda0)
            Syst3
 
Old 04-05-2007, 03:06 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
ok well doing it by the book, google suggests that you'd need BCP support within pppd and the kernel, somethign not included by default, so you'd need a patch applying to your current kernel. most references to this are from 2005 though, so could have come in mainline since then on the kernel side at least. have a good look around i guess...
 
Old 04-05-2007, 10:08 AM   #5
cluelessnewb
Member
 
Registered: Jul 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Is there some other way to get it to connect to the network, such as iptables or IP masquerading? I'd rather not recompile the kernel.

Last edited by cluelessnewb; 04-05-2007 at 10:13 AM.
 
Old 04-05-2007, 10:47 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well iptables isn't going to help you do bridging. it could allow you to use the linux server as a port forwarding point, or alternatively to use the box as a router between two seperate networks. fancy the idea of either of these? neither appear to actually do what you really want.
 
Old 04-05-2007, 09:22 PM   #7
cluelessnewb
Member
 
Registered: Jul 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Setting it up as two separate networks with the box set up as a router would work for me, I think. I don't know anything about how I would have to set the IP addresses, and subnet info though. I'm sure I would also have to put this info into my existing router, also. The current network is 192.168.1.0, with subnet 255.255.255.0. Anyone have any advice? BTW, thanks very much for your help acid_kewpie.

Last edited by cluelessnewb; 04-06-2007 at 09:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to bridge a ppp0 connection? SentralOrigin Linux - Networking 1 02-03-2007 01:22 PM
eth0 / eth1 and ppp0 ikarus Mandriva 8 11-26-2005 09:49 PM
ETH0 and PPP0 interaction ? drakeman Linux - Networking 7 12-29-2004 03:37 PM
ppp0 uses eth0... but eth0 never activates joshuapurcell Linux - Networking 3 12-17-2003 01:52 AM
eth0 and ppp0 fight motyl Linux - Networking 3 05-23-2003 05:16 PM


All times are GMT -5. The time now is 11:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration