View previous topic :: View next topic |
Author |
Message |
blueaura n00b
Joined: 05 Sep 2005 Posts: 66
|
Posted: Wed Sep 27, 2006 4:39 pm Post subject: Server Advice |
|
|
This is my first attempt at building a server so you might have to excuse my ignorance.
I have just finished installing the base system and have started emerging a few services. Here's what I would like from the server:
- Web Server with 3 subdomains(for testing at the moment)
- Mysql database service
- Some kind of smtp and pop3 mail service
- FTP to upload files to the web sites
What programs do you recommend? Of course apache will be my number one choice of webserver but the others I have no idea about.
My main concern is my network at the moment though, I need to have the server accessible from outside the network which is centred around a NAT router. The network is looking like this at the moment.
Router: 192.168.0.1[/i]
Desktop: 192.168.0.2
Laptop: 192.168.0.3
Laptop: 192.168.0.4
...
Server: 192.168.0.20
The router is annoying though and will hog port 80 on the external IP (no way of assigning it to another port). How can I get around this huge problem and make my server accessable?
I have the same problem with accessing the server from an external IP via SSH also because the router hogs that port also. I have tried changing the ports on the server but it doesn't seem to work still. |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Wed Sep 27, 2006 5:37 pm Post subject: |
|
|
Lets if I can cover everything you ask. I run a few servers as a hobby, I don't make much money and at times I lose money on it, so it is truly a hobby
Anyways, Apache is the most common web server, another one would be lighthttpd, it seems to be becomming more popular. Not sure the pro/cons to either as I use apache, and have no desire to switch. When setting up apache, I would set the vhost use flag and set each subdomain as a virutal host.
For mysql, I would install php and phpmyadmin to help adminsitor the database, i use mysql cli but having the web interface is nice at times.
For pop and smtp ... pick your flavor, everyone has their favorite, I have used qmail, courier, postfix, sendmail ... I haven't any issues with any of them. I am currently using courier-imap, courier-pop, and qmail. I am using roundcube and squirrelmail for webmail. It is truly just about picking which one you want to administor and go with it. If this is going to be a fairly small user base, you might want to read the gentoo doc on setting up a home mail server.
FTP - i am currently using vsftp, and it works great. I see it as mainly for servers where the users have an actuall account on the machine. I don't like the way it implements virtual users and handles the virtual domains. I am looking to move to proftpd in the future ... just need get off my lazy ass
As for your network, I would normally suggest to just set your server to a static IP, and set that IP as your DMZ, but your router creates an intresting problem. What type of router is it, most off-the-shelves don't listen to the external IP for anything, a home built one can do whatever you want it to, and either disable that option, or have it listen to atlernate ports (2222?, 8080?). Lets start here with what brand router do you have? and/or what software do you have doing the routing? _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
blueaura n00b
Joined: 05 Sep 2005 Posts: 66
|
Posted: Wed Sep 27, 2006 5:48 pm Post subject: |
|
|
USR SureConnect 9106, not the best router in the world but it's better than an old Belkin I had
Infact I just figured out that it has a linux distro running on it. I have all these commands http://www.usr.com/support/9105/9105-files/cli_reference.html first thing to get the router allowing my server to have port 80 is to kill the current http process, which is done
Now I need to figure out how to use iptables to allow port forwarding from the router 192.168.0.1 to 192.168.0.20 on port 80. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|