LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2013, 11:05 PM   #1
Danice123
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Rep: Reputation: Disabled
DHCP inside DHCP setup, is it possible?


I want to set up a 'private' DHCP for serving internet within another network. I am inside a college network with a HTTP proxy being the only way out into the internet. The idea is to setup a DHCP server within this network that would connect directly to a ssh tunnel running on the server so that computers on the network could setup their connection to connect through my server instead of through the college's.

EG: Computer -> Server -> Tunnel Through Proxy -> Home Computer -> Internet.

I understand that there are many better ways for achieving this end goal for most machines, (I already have the ssh tunnel so my computers are already setup) but a Xbox 360 does not allow for any type of proxy settings that would be needed to route it normally through the tunneling server.

I have done some research into this, but nothing that really applies to what I want to set up. It seems that setting up two DHCP servers within a network can cause problems, and if that is the case this isn't an option, but I want to know for sure. And I don't really know what setup is unnecessary, do I need a DNS server too? I have played around with some software, but nothing has really stuck out yet.

My server computer is running Tiny Core Linux, headless with ssh.
 
Old 01-23-2013, 02:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
It sounds like you're a little unclear about the role of DHCP here. DHCP wouldn't relate to any of your solution at all. You right that you wouldn't run two DHCP servers in a single subnet (not network mind, just a single L2 zone) but allocating your own addresses shouldn't bare any relation to making machines use a proxy. Xbox360 appears to support an http proxy just fine, so I dont see quite what the issue is there either.

Also note... We are not here to help you circumvent security mechanisms at your college / work place. You agree to follow their rules when you use it, and we will not promote ways of getting around them.
 
Old 01-23-2013, 07:33 AM   #3
Danice123
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
The Xbox 360 supports an HTTP proxy? That is a new one to me. And from your answer I see that I am obviously barking up the wrong tree with DHCP.
 
Old 01-27-2013, 07:47 PM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Sounds more like you want to set up your Linux machine as a gateway Router with NAT.
 
Old 01-27-2013, 10:35 PM   #5
Danice123
LQ Newbie
 
Registered: Jan 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yes, but a gateway to a ssh tunnel. Is this possible? What software would I need?

EDIT: After some research it looks like I would need another network card to do this. Which is something I would do. So my main question is can I use the same network for both cards (the one accepting the connections and the one sending them through the tunnel.

Last edited by Danice123; 01-27-2013 at 10:40 PM.
 
Old 01-27-2013, 11:15 PM   #6
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Yes if they are bridged, you'd handle traffic flow with iptables and possibly iproute2
 
  


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 to install dhcp inside the linux router ? ? ? ? chamath Linux - Server 1 09-30-2011 04:06 AM
How to install DHCP inside the Linux (Zebra) Router ???????? chamath Linux - Networking 1 09-29-2011 09:10 PM
how to setup dhcp logs in dhcp server hareen729 Linux - Server 1 01-24-2011 08:21 PM
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Please interpret the DHCP server log entries I have mentioned inside the message yuvika Linux - Newbie 4 01-16-2008 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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