Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.