Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-30-2007, 01:00 PM
|
#1
|
Member
Registered: Mar 2006
Posts: 122
Rep:
|
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,
|
|
|
03-31-2007, 07:42 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-31-2007, 08:31 PM
|
#3
|
Member
Registered: Mar 2006
Posts: 122
Original Poster
Rep:
|
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.
|
|
|
04-01-2007, 03:15 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
04-01-2007, 07:34 AM
|
#5
|
Member
Registered: Mar 2006
Posts: 122
Original Poster
Rep:
|
Static IP via DSL...
|
|
|
04-01-2007, 11:03 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
yeah but what kind of device is this terminated on?
|
|
|
04-01-2007, 09:15 PM
|
#7
|
Member
Registered: Mar 2006
Posts: 122
Original Poster
Rep:
|
It's on a Linksys Router...
|
|
|
04-02-2007, 01:48 AM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
right, so as above, only one nic, connects like a bog standard pc.
|
|
|
04-02-2007, 05:27 AM
|
#9
|
Member
Registered: Mar 2006
Posts: 122
Original Poster
Rep:
|
"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,
|
|
|
04-02-2007, 06:09 AM
|
#10
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
04-02-2007, 08:20 PM
|
#11
|
Member
Registered: Mar 2006
Posts: 122
Original Poster
Rep:
|
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,
|
|
|
04-03-2007, 01:51 AM
|
#12
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
All times are GMT -5. The time now is 10:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|