LinuxQuestions.org
Review your favorite Linux distribution.
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 09-09-2005, 04:50 AM   #1
silver05
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
Building a Debian router


Hi Guys,

I wonder if anyone can advise or at least point me in the right direction please. I want to build a router from a box that i have Debian 3 running on.

I have an ADSL modem and one nic card on the machine. I just really need to know where i have to start i know that iptables have to be used and some how i need to get the drivers for the BT adsl modem on there as well.

I have looked on Google but its all a bit vague.

I already have a dlink router but it has nat on on there so everytime i go to disable that the internet doesn't work ie resloving ips and websites etc. The reason for this is so i can access my domain name which has the dns server of my static ip address. I don't want to access the serve thats running what i need for the domain via a local ip or hostname.

Everytime i go and try and access the domain name it goes to my routers configuration page and this is because of the NAT regardless whether you have disbled allow remote admin on the router or not.

I know quite a bit about networking etc, but this is something i haven't done in the past.

Cheers

Silver
 
Old 09-09-2005, 05:57 AM   #2
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Hi,

I'm having difficulties undertanding your post. The order of the words is confusing me. But anyway.

Which version of debian are you using? 3.0 (Woody) or 3.1 (Sarge)? Which kernel? 2.4 or 2.6?

Where exactly do you get stuck? Are you having problems connecting to the modem? Configuring the network card? Dhcp server? nat? firewall?

What is it you want to achieve? You say you already have a router. It should be working properly. You mention turning of NAT. I think that's only possible if your internet provider is providing you multiple IP addresses. Most of them don't. So if you turn off NAT, you won't get an address, or everyone in your network gets the same one, or all other kinds of strange behaviour.

Quote:
The reason for this is so i can access my domain name which has the dns server of my static ip address. I don't want to access the serve thats running what i need for the domain via a local ip or hostname.
This is the part I have most difficulty with. Could you try to clarify?

Groetjes,

Kees-Jan
 
Old 09-09-2005, 06:02 AM   #3
silver05
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hi kees-jan,

Sorry for my confusing post

Anyhow i am looking for some information on what i need to do in order to build a debian router. I already have a adsl modem usb and 1 nic card in the machine.

I was looking for advice really on what config and things i would need to start.

As for the dlink modem i know ti doesn't work when you take NAT off so thats the reason for building this debian router.

Cheers

Silver05
 
Old 09-09-2005, 06:05 AM   #4
silver05
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Forgot to mention,

Its debian 3 and the kernel is 2.6.

What i meant about the domain name is at the moment the dlink router has port forwarding to the a local server inside my lan. But i would like to be able to access the domain name inside of the lan. Instead i have to access the server via the local ip or hostname of it.
 
Old 09-09-2005, 06:21 AM   #5
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Well, yes...

But my point is that if a dlink router doesn't work when you take nat of, then most likely a debian based router won't either. So I don't really see the point of building one.

Having said that, I can't really help you with the USB modem. Exact configuration, I also don't know, because you probably have 3.1, and I'm still at 3.0, which is vastly different.

Is your isp providing you multiple ip addresses?

Groetjes,

Kees-Jan
 
Old 09-09-2005, 09:17 AM   #6
Slim_Pikins
LQ Newbie
 
Registered: Jul 2004
Location: Manchester UK
Posts: 21

Rep: Reputation: 15
Hi
I have a setup similar to what I think you are after, I think...
if you want you adsl router to pass you wan ip to your debian router you will need to use transparent bridging (sometimes called half bridging) on the adsl router.
I use shorewall for firewall/routing
 
Old 09-09-2005, 09:19 AM   #7
silver05
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hi Guys,

I've worked it out. What i was looking at was not a good idea.
 
Old 12-22-2005, 12:56 AM   #8
kcbanner
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
www.aboutdebian.com has some GREAT tutorials for routing and firewalls!
 
  


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
Building a router... THE RADICAL Linux - Networking 10 11-21-2005 07:33 PM
Advice on Router-Building JamesGolick Linux - Wireless Networking 1 05-17-2005 08:22 PM
Building a router, need to buy a little router case. gian2oo1 Linux - Hardware 4 04-22-2005 02:18 PM
Building an OpenBSD 3.6 firewall/router... Erik Thorsson *BSD 6 02-11-2005 03:27 PM
Building a linux router ra5467 Linux - Networking 1 09-17-2003 05:22 PM


All times are GMT -5. The time now is 07:01 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