LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Building a Debian router (https://www.linuxquestions.org/questions/linux-networking-3/building-a-debian-router-361696/)

silver05 09-09-2005 04:50 AM

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
:confused:

kees-jan 09-09-2005 05:57 AM

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

silver05 09-09-2005 06:02 AM

Hi kees-jan,

Sorry for my confusing post :confused:

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

silver05 09-09-2005 06:05 AM

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.

kees-jan 09-09-2005 06:21 AM

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

Slim_Pikins 09-09-2005 09:17 AM

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

silver05 09-09-2005 09:19 AM

Hi Guys,

I've worked it out. What i was looking at was not a good idea.

kcbanner 12-22-2005 12:56 AM

www.aboutdebian.com has some GREAT tutorials for routing and firewalls!


All times are GMT -5. The time now is 07:31 PM.