LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 05-11-2006, 02:04 PM   #1
Banyon
Member
 
Registered: Nov 2004
Distribution: Ubuntu/Xubuntu
Posts: 37

Rep: Reputation: 15
Private server with main computer as gateway?


Ok, bare with me here, its been years since I've needed to network computers together, let alone do it with mixed OSs.

Computers involved

Server = Old HP pavilion running Xubuntu (Ubuntu Breezy with XFCE desktop enviroment)
Main = Modern mid range computer dual booted with Windows XP Pro and Ubuntu Breezy

Ok, what I want to do, is turn a old low end computer into a webhost server where I can work on my site without risking breaking my live site. I want to put a second NIC in my main computer and connect the server directly to my main and use my main as a gateway to the net (I don't have a router and want to keep my main connected directly to the modem).

Now the server is going to need internet access as well since its Ubuntu, that shouldn't be any harder than setting up connection sharing in WinXP, but never done that before in Linux.

My questions are:

On the server I will need Apache, MySQL, PHP, phpMyAdmin, and some other stuff, besides that, what will I need to get it to play nicely with my main while its booted into Windows?

How can I give the server internet when my main is booted to linux... pretty sure I remember how to setup my main as a gateway computer when in Windows, but I'm still a linux noob.

Any problems you see with what I'm trying to do? Something not gonna work right? Tips? Comments? I'll take anything right now.

Thanks for any help
 
Old 05-11-2006, 03:02 PM   #2
Samoth
Member
 
Registered: Apr 2005
Distribution: Ubuntu dapper(2.6.17.4-custom), Gentoo 2006.1 amd64(2.6.17-r8-custombuild)
Posts: 472
Blog Entries: 1

Rep: Reputation: 30
try firestarter....nice GNOME program to set up firewalls/gateways.

This is my 101 post! Cant believe it!
 
Old 05-11-2006, 03:07 PM   #3
Banyon
Member
 
Registered: Nov 2004
Distribution: Ubuntu/Xubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
What about my question about my server? Is samba the only other thing I will need to setup to get it to communicate with my Windows Box correctly?
 
Old 05-12-2006, 10:47 PM   #4
BSchindler
Member
 
Registered: May 2006
Location: Los Angeles, CA USA
Distribution: RHAS3, RHAS4, RHEL4, RH6, RH7.2, FC2-7, Gentoo, DSL
Posts: 49

Rep: Reputation: 15
If I were you, I would build something like this:

[Modem]<--->[eth0 OLD_HP eth1]<--->[MAIN]

I looked at UBuntu some time ago and was not at all impressed. But, so be it. On the OLD_HP you will need 1) DHCP client for configuration of eth0 NIC, 2) iptables for routine, 3) Samba (CIFS) so windows access is available by MAIN. This way, you only setup one set of firewall rules and can run Linux or WinXP on the MAIN.

The only real issue is the routing rules in the OLD_HP box. You will want to be sure that you have locked down access so that your box is not hacked from the net. Overall however, this is a really simple configuration and should take only a couple of hours to setup.

HTH
 
Old 05-12-2006, 10:49 PM   #5
BSchindler
Member
 
Registered: May 2006
Location: Los Angeles, CA USA
Distribution: RHAS3, RHAS4, RHEL4, RH6, RH7.2, FC2-7, Gentoo, DSL
Posts: 49

Rep: Reputation: 15
Oops, iptables for routing.
 
Old 05-12-2006, 11:30 PM   #6
Banyon
Member
 
Registered: Nov 2004
Distribution: Ubuntu/Xubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
Yeah, thats what I've decided to do, I'll be using Xubuntu on my old HP and will be using Firestarter for the firewall and Internet sharing.

Not sure what you mean by routing rules... I'm still kinda linux noob. As far as DHCP for Eth0, Ubuntu pretty much configures all that right off the fly and I have internet access as soon as Ubuntu is installed.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mythtv frontend can't play recorded shows from main computer LiquidSlumber Linux - Software 2 02-11-2006 11:25 PM
Setting up gateway to share internet for private LAN muru Linux - Networking 6 09-17-2005 08:08 PM
private address internet gateway jinan Linux - Networking 1 02-08-2005 11:16 AM
Configuring redhat 9 to pass traffic betwen 2 private networks (gateway) menonrr Linux - Networking 2 09-14-2004 07:38 PM
Want to have a computer be gateway w\xp clients chingasman Linux - Networking 4 10-06-2003 02:28 AM


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