LinuxQuestions.org
Help answer threads with 0 replies.
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 04-16-2006, 05:04 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
direct connection w/ a router/modem?


My current setup is a DSL modem/router, that's got wifi and stuff turned on. What I'd like to do is have a linux based firewall, directly connected to the internet(like through the modem, w/out NAT happening), then set up a router behind the firewall, internally. Is there a way to do this? Or do I need to have the firewall set to 192.168.x.x behind the modem, and then the internal NIC on this firewall be on the 10.x.x.x? Is it possible for the modem to just allow everything through, and have the external ip of the firewall be the one that our ISP gives us?
 
Old 04-16-2006, 05:32 PM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
It's the modem/router that's the problem, right? Because it's actually two devices, the modem and the router. It sounds like you just want the modem function to work straight through to the linux firewall. You'd have to take this up with the device. I'm pretty sure this can't be done with my Netgear box, but maybe yours is different.

Can you afford another DSL modem (without a router)? Maybe this could be an internal PCI card? Then you could put that up front, then the firewall, then the old modem/router which you would be using as a switch and wireless access point (as long as it was happy in that role - it might demand a particular IP address for instance, or get upset that it wasn't connected directly to the internet).
 
Old 04-16-2006, 06:54 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
It's an actiontec DSL modem/Router. I don't know about another modem, how much would that cost? We've got enough router's here that finding one wouldn't be a problem. I've looked at all the options, the only one that remotely looked like it'd work, is that you could turn off NAT, but then you have to set your own ip. Could I use NAT twice?
 
Old 04-17-2006, 10:02 AM   #4
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
This is beyond me now, I'm sorry. I use our modem/router as the LAN firewall, because I'm still a bit prone to killing the server while messing about and don't understand routing enough to think I could do a better job than the hardware firewall. I'm sure there is plenty out there on this topic.
 
Old 04-24-2006, 06:35 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
Does anyone else have another suggestion? I was going to use IPCop for the firewall, so as not to have to deal with all of that stuff, but if it's not possible, I don't know what I'm gonna end up doing...
 
Old 04-24-2006, 08:16 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
My ADSL modem allows exactly this. It does the PPPoE thing and lets public IP thru (Siemens SpeedStream 4100). I'm running a FBSD box as firewall/router/webserver right after modem. It also does NAT and I do not have any additional routers on my net, only a switch. This is most flexible and reliable setup I could think of. I got pissed off when my Linksys router crashed regularly under load (overheating?)
In case your modem does not have this option you have to set in bridge mode and do PPPoE in your Linux firewall.
 
Old 04-24-2006, 08:40 PM   #7
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
what does bridge mode mean? My router is currently set to get it's IP from PPoA, but there's a way to set it to Transparent Bridging (RFC1483 Bridged), is that what you mean?
 
Old 04-24-2006, 08:47 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Yes it is. See your modem manual before you switch it into bridge mode, make sure you know how to swich it back. In this mode you probably cannot access it any more over web interface.
 
Old 04-24-2006, 09:04 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
oh, well that's not good. I'll have to check and get back to you. Is there a way to do it without bridging?
 
Old 04-25-2006, 05:54 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
As I wrote, my modem can do it. If yours does not have this capability bridge mode is the only way.
 
Old 04-25-2006, 07:55 AM   #11
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
how do PPPoA and PPPoE differ? Is there some reason linux won't support PPPoA? I know it can do PPPoE, but I've never heard of PPPoA until I started looking into this.
 
Old 04-25-2006, 08:46 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by microsoft/linux
how do PPPoA and PPPoE differ? Is there some reason linux won't support PPPoA? I know it can do PPPoE, but I've never heard of PPPoA until I started looking into this.
Same here
Found this one:PPPoA Architecture
 
Old 04-25-2006, 12:19 PM   #13
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You are possibly over-complicating this. Most of these modem/routers have basic firewall options which can be set or disabled as you desire. Thereafter it's purely a question of forwarding requests for a speicific port eg 80 for http. If you wish to add a more complex firewall such as ipcop then do so at this point. I run my own system like this. It is ideal because you can tune the firewall to filter out specific traffic
 
Old 04-25-2006, 03:08 PM   #14
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
right, but then IPCop does NAT again, which means the addresses would be double translated. My router won't to static routing, and there's no way(as far as I know) to set the range of ip addresses, so I don't think I could set up a static IP, w/out having address conflicts. I can check again, but I'm pretty sure there's not an easy way to do this
 
Old 04-27-2006, 01:52 AM   #15
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here is how it works; The modem/router NAT's the public address from the public ip-address given to a private address eg 192.168.1.0/24. The network card (eth0) on your router/firewall (ipcop) is set to pick up a lease from the modem router in this range. You assign an address on a different subnet to eth1 on the ipcop box eg 192.168.0.1. You can then assign addresses in this range to all the boxes attached to ipcop. If for example you have a box with the apache server at 192.168.0.2 then tell the modem/router to forward all requests for port 80 to 192.168.0.2. The ipcop box should be configured to allow requests on port 80 through.
In my setup my modem/router uses addresses in the range 10.0.0.0/16 and I have set an address of 10.0.0.10 to eth0. The gateway for my router box is the modem/router address 10.0.0.2 and then boxes behind the router box is the ip-address of eth1.

Last edited by TigerOC; 04-27-2006 at 02:03 AM.
 
  


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
mri adsl modem/router connection divali Slackware 3 02-25-2006 03:50 AM
Strange internet connection problem modem vs router jamesgf Mandriva 13 02-11-2006 09:10 AM
Direct modem-to-medem connection Hegemon Linux - Hardware 2 03-04-2004 09:20 PM
Cable modem and router - connection lost koswo Linux - Networking 13 01-09-2004 11:19 AM
sharing cable modem connection using router kbaldor Linux - Networking 3 01-29-2002 05:44 PM

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

All times are GMT -5. The time now is 04:47 AM.

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