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 02-23-2008, 09:22 PM   #1
bobdevis
Member
 
Registered: Nov 2006
Distribution: Ubuntu 64bit
Posts: 49

Rep: Reputation: 15
How to hide my DHCP server?


Ok here is the deal;
I want to setup a home network so I can get on the net with more then one PC.
My ISP requires me to log in though a DHCP using PPPOE and needing a username ad pw every time I wish to connect.
I connect directly to an ethernet socket in the wall. I have no modem. The whole student flat I am in is one big LAN.

When I browse though tutorials describing how to setup my own server, I always come to a part mentioning running my own DHCP server.
The thing is that if I would run a DHCP server of my own, I could disrupt the hole building's ability to dial in.
My own DHCP server could be answering to login calls from anyone in the building before the ISP's server, making their login attempt fail.

I either need a way to route traffic from and to my other computers without a DHCP server, or make ABSOLUTELY SURE my own DHCP server would never respond to PPPOE dial in requests coming from the building's LAN.

I have no problem figuring this stuff out from tutorials, but I need to know beforehand how to exactly NEVER have my DHCP server configured.

edit:

I am only allowed to dial in to the flat's LAN once. One connection, one IP. I am not behind a NAT of any kind though. I have my own, real IP.

Thank you for reading and thank you in advance for trying to help.

Last edited by bobdevis; 02-23-2008 at 09:39 PM.
 
Old 02-23-2008, 10:31 PM   #2
jdavis2
Member
 
Registered: Feb 2007
Distribution: Fedora, Mandrake, Knoppix, Windows XP
Posts: 37

Rep: Reputation: 15
You should have a router connected directly into that socket in the wall. You should have it configured to establish the pppoe connection on the WAN(Internet) network port. Then you would have your router set up to serve DHCP requests through your LAN(local) network port.

Your router could be a regular SOHO device or a PC with more than one network card. As long as you make sure you configure the DHCP server to serve request only on the local network everything will be fine.
 
Old 02-24-2008, 12:19 AM   #3
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Ok, let's say that you're plugging in a 4 port router. The router will have 4 LAN ports, which you will plug your computers into. The router will assign IP addresses to computers plugged into the LAN ports via DHCP, but not to the WAN interface. You will have to log into the router, set the WAN interface to use PPPoE, and enter the username and password. At that point, it will all work.

Note that PPPoE and DHCP are mutually exclusive; PPPoE assigns IP addresses without the use of DHCP; even if you were to plug one of the LAN ports to the wall jack, the upstream PPPoE server would simply try to authenticate against the router, which would be trying to serve an address via DHCP. The authentication would fail, and that would be that.
 
Old 02-24-2008, 01:02 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you assigned only one IP address per outlet? If not couldn't each host run be a client of the buildings DHCP server.

If you are given a single IP address, either use a NAT router or add a second interface. A router would be a DHCP client on the input and a DHCP server on the LAN switch. The NAT function would allow you to share the IP address with the hosts on the lan. Another option is to use your computer as a NAT
 
Old 02-24-2008, 08:16 PM   #5
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 99

Rep: Reputation: 21
This is actually very simple to do. You need a router with a "WAN" port though. A WRT54GL (or WRT54G) is a good example.

Plug the WAN port of the WRT (or similar) router into the wall, and then you can run a DHCP server on the "Local" or "LAN" side of the router. The router has this as an in built function. Below is a screen capture from my WRT54GL (I'm running custom firmware (DD-WRT) on it.)

http://img239.imageshack.us/img239/8138/78675522wm2.png

Last edited by brokenpromises; 02-24-2008 at 08:20 PM.
 
  


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
How can I hide my identity while connected with ssh server kingkazmi1988 Linux - Newbie 2 11-09-2007 05:30 PM
Hide server version info sneakyimp Linux - Software 7 08-21-2007 12:21 AM
trying to hide a server patcito Linux - Networking 7 02-20-2007 06:18 AM
Apache2 + Debian: how to hide information about server? Warp22 Linux - Software 5 04-11-2005 12:27 AM
How to hide server -220 messages ximar Linux - Security 4 04-19-2003 11:41 AM

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

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