LinuxQuestions.org
Register a domain and help support LQ
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 02-20-2009, 01:00 PM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
how to create this setup ?


I am not sure if "bridging" is the answer here. If you think differently and has another suggestion, you are welcome!

The problem:
We have a firewall with two interfaces: wan/lan. The wan interface is connected to a router, the router to a modem and the modem to a coaxial cable provided by our ISP.
Near to our office a truck crashed badly against a pole on the street and destroyed that coaxial cable. As result we lost our internet connection and the ISP told us the repair could take almost a week.

An alternative:
We have good 3G/HDSPA cellular connection here. To connect to internet we use a USB modem and it connects using PPP as usual. It works in my laptop with fedora 10; NetworkManager auto config it, no problems.

The question:
How to share this connection on my Fedora 10 in a way our firewall could see the laptop as a router ?
(the firewall does not recognizes the USB modem and even so, it does not have PPP)

I have tried with the command "brctl addif br0 eth0" and "brctl addif br0 ppp0" but looks like any host on the same laptop's lan interface could not reach hosts on the wan interface (ppp0), like the default router for that connection for instance.

anyone has some experience with this kind of network ?

any hints or ideas are welcome,
 
Old 02-20-2009, 02:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Well this wouldn't ever be a bridge, I think you should just need to enable ip_forward and ip masquerading then when traffic is routed to that laptop it'll go out to the net as if it were from the laptop itself.

http://tldp.org/HOWTO/html_single/Ma...-Simple-HOWTO/
 
Old 02-20-2009, 04:21 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Wouldn't it be easier to just plug the laptop into the wan port of the existing router, and then just setup the laptop up just like sharing with just one other computer (the router in this case)?
 
Old 02-20-2009, 04:37 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by lazlow View Post
Wouldn't it be easier to just plug the laptop into the wan port of the existing router, and then just setup the laptop up just like sharing with just one other computer (the router in this case)?
I wish !
The WAN port of the router is a serial one with a big connector. I don't remember its name but it is typical on these kind of equipment.
 
Old 02-20-2009, 05:03 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
It will depend massively on what your real router actually is, but generally you shouldn't have a problem routing back into your network for the laptop. Maybe you can add a separate vlan or at least just a separate subnet on the inside to stop asymmetric routing if that becomes a problem for you.
 
Old 02-21-2009, 02:49 PM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by marozsas View Post
I wish !
The WAN port of the router is a serial one with a big connector. I don't remember its name but it is typical on these kind of equipment.
I checked the routerīs manual. It is a V.35 connector.
 
Old 02-21-2009, 03:01 PM   #7
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Original Poster
Rep: Reputation: 63
Thumbs up Solved !

Quote:
Originally Posted by acid_kewpie View Post
Well this wouldn't ever be a bridge, I think you should just need to enable ip_forward and ip masquerading then when traffic is routed to that laptop it'll go out to the net as if it were from the laptop itself.

http://tldp.org/HOWTO/html_single/Ma...-Simple-HOWTO/
T H A N K Y O U V E R Y M U C H !

From the document you suggested it worked on the first attempt, using the setup on section 2, for dial up connections. Very simple. very straight !

Currently, I am writing this from my desktop using the original setup for web proxy, default gateway, etc.

I never thought it could be so easy...

Next monday, the users will never find there was a problem at all !

cheers !
 
Old 02-21-2009, 04:25 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Super. From what you said about your setup there's probably something *theoretically* bad about what's going on, but that's not exactly the point... I was expecting much more of a mess to ensue from this!
 
Old 02-22-2009, 06:50 AM   #9
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by acid_kewpie View Post
It will depend massively on what your real router actually is, but generally you shouldn't have a problem routing back into your network for the laptop. Maybe you can add a separate vlan or at least just a separate subnet on the inside to stop asymmetric routing if that becomes a problem for you.
I guess it is more simple than that. I replaced the router and the Cisco modem by the laptop and pluged the laptop where the router used to be, on the WAN interface of the firewall.
I put on the laptop's iface the same IP the router had, so the firewall didn't notice nothing.

The real test will be on Thursday when the people return from the carnival (for sure, not all Brazilians likes the carnival - I am here working and having fun ) and start to send e-mails with big attachments and surfing on the net.

let's see...

cheers,
 
  


Reply

Tags
bridge


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 create setup file swift2008 Programming 4 11-05-2008 04:04 AM
How to create more than one partition in redhat linux setup? youssef.salah Linux - Newbie 3 07-19-2008 09:10 AM
How can I create setup for my application for Linux sandy1234sa Linux - Software 4 07-01-2007 03:48 AM
Samba - create share, setup ACL?? How? sternfan Linux - Software 1 01-18-2006 07:15 AM
Create a customised ISO with auto setup hcclnoodles Linux - Distributions 2 01-14-2006 05:24 PM


All times are GMT -5. The time now is 01:33 AM.

Main Menu
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