July 6, 2007

Can a linux server host a server over a router?

I have 3 compuers (2 mine, 1 families), one of my computer I hve SUSE Linux 9.3 (I think) Prof installed, and was wonder if I could host a server off that computer through my router/gateway?

  1. ok now I have another question:
    I have DSL
    would I have to have 2 Network cards on the Linux computer if hosted it as a server? one card for the DSL connection and then one card going to the router? or can I get away with having one netwok card and then configure the router to forward everything to the linux comuter?
  2. It sounds like your Linux box is before the router then (regards to the second question). Then you wouldn't need to set up port forwarding in the router, but you would need to configure iptables in your Linux box. The server would also be acting like a router, while the router should be acting like a switch. Otherwise all your other machines may be double NAT'ed and not be able to reach the server.
  3. forget the lst detail I added, lol I was being stupid lol, anyways thanks for the help ill chose a Best answer ASAP
  4. yes

    you need to configure your router virtual server to route all port 80 traffic to your linuxbox

  5. Yes. To let people from the internet get to your server, you need to enable port forwarding. However, your isp may not like you hosting servers on your internet connection, just a warning. Some don't care.

    Go to the router configuration and look for a port forwarding section. It will probably ask you what ports you want to forward (port 80 for http, port 443 for https), what protocol to use (http and https use tcp), and what IP to forward them to. So make sure your server has a static IP. If you need a list of what services use what ports, look here:
    http://www.iana.org/assignments/port-num…

    In order for people to get to your server, they can put in the IP of your internet connection, (not the server IP on the network). If your connection IP changes, then you can ask for a static IP from your isp, or use a service like DynDNS. If you have a static IP from your isp, you may be able to get a standard DNS setup.

  6. Yep!

    That is how the Inet works.

    Have fun but be safe!

  7. Bryan A's answer is very good, I could not add much to it,

    But I just wanna say that you will need to forward the port that corresponds to the service that your server will offer.

    Example, If you wanna make an FTP server, You will need to forward port 21 from your router to your server's virtual IP (in case all the 3 computers share the same real IP). If each computer has it's own real IP, You will not need to forward any port to your server.

    That's it.
    Thanks

Tags: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,