UbuntuThis 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.
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.
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?
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.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.