LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-30-2007, 01:00 PM   #1
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Rep: Reputation: 15
WebServer and LocalServer setup...


Hopefully this will be an easy question for the Server wizards...

I want to run a webserver and a localserver on the same machine, so first off I know I need 2 NIC's in the box but one private and one public but I'm a little confused on how to setup /etc/hosts, /etc/hostname, DNS and the firewall, I think that's all I'd need to modify...

Does anyone have any guidelines I could follow or suggestions that would help get this going?

Thanks,
 
Old 03-31-2007, 07:42 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
why do you need two nics? what do you even want to actually provide? you'd only have two nics if you wish to route traffic through the box normally, which is not what a server does normally.
 
Old 03-31-2007, 08:31 PM   #3
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
I'm used to a windows enviroment so I made the assumption it was needed...

So, this is what I would like to do, host virtual websites, no mail, FTP, SAMBA and keep my local secure form the outside world...

Thanks,

Last edited by tiger.woods; 04-01-2007 at 07:34 AM.
 
Old 04-01-2007, 03:15 AM   #4
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
what kind of internet connection are you using? if you've got an adsl router or similar then that is the device with the public ip, and the server would architecturally just connect like any other pc on the network.
 
Old 04-01-2007, 07:34 AM   #5
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Static IP via DSL...
 
Old 04-01-2007, 11:03 AM   #6
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
yeah but what kind of device is this terminated on?
 
Old 04-01-2007, 09:15 PM   #7
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
It's on a Linksys Router...
 
Old 04-02-2007, 01:48 AM   #8
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
right, so as above, only one nic, connects like a bog standard pc.
 
Old 04-02-2007, 05:27 AM   #9
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
"how to setup /etc/hosts, /etc/hostname, DNS and the firewall..."

So, now that that's out of the way any insight or thoughts on how to achieve the setup as in the original question?

Thanks,
 
Old 04-02-2007, 06:09 AM   #10
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
well there's nothgin in particular you need to configure. if you setup apache and port forward to it on your adsl router then it'll be globably reachable by default and such like.
 
Old 04-02-2007, 08:20 PM   #11
tiger.woods
Member
 
Registered: Mar 2006
Posts: 122

Original Poster
Rep: Reputation: 15
That seems to easy... can it really be that easy?

How about security issues? I mean out the box has to be wide open, are there any good guides for a newb such as myself looking to learn but not wanting to read a manual full of details and intracacies and fall into all the pitfalls of newbness?

Thanks,
 
Old 04-03-2007, 01:51 AM   #12
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
well it's only as wide open as the services you're running on it, and if you 1) don't run services you are not interested in and 2) don't expose unnecessary services to the internet (i.e. don't port forward them) then they can't be exploited. naturally it's good practise to firewall the individual server with iptables, but if attacks from places you don't trust can't reach that machine it's laregly just a best practise affair. now if you don't trust your own lan, then certainly a server specific firewall would be the order of the day.
 
  


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
Can someone help me setup webserver? kuplo Linux - Software 2 11-05-2005 06:24 PM
How to setup wifi Webserver-only Tenox Linux - Wireless Networking 1 04-04-2005 08:52 PM
Webserver setup question? RecoilUK Linux - Networking 1 08-05-2003 04:14 AM
Webserver Setup bytebrowser Linux - Networking 6 06-21-2003 04:34 AM
simple webserver setup on 7.2 need help fsshl Linux - General 1 01-15-2002 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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