Gentoo Archives: gentoo-user

From: Saphirus Sage <saphirus497@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Different servers behind the same router
Date: Tue, 03 Feb 2009 18:47:16
Message-Id: F9F128EA-43DC-43A5-ADFF-AEF3F89BACB8@gmail.com
In Reply to: [gentoo-user] Different servers behind the same router by Momesso Andrea
1 On Feb 3, 2009, at 12:43 PM, Momesso Andrea <momesso.andrea@×××××.com>
2 wrote:
3
4 > I have a home server running gentoo for personal use (irc, home
5 > entertainment, file server etc.).
6 >
7 > It is reachable from the internet using a dyamic dns service
8 > (dyndns.org).
9 >
10 > I also have another machine (running gentoo too) that I use as a web
11 > server. This machine uses dyndns.org, with a different name.
12 >
13 > Both machines connect to my modem/router via pppoe so they get 2
14 > different IPs.
15 >
16 > This modem can also be configured to be used as a router so it
17 > connects
18 > directly to the internet and shares the same IP between the clients.
19 >
20 > What happens if I decide to switch to the "router" configuration? If I
21 > have a single IP for all the machines in the LAN, when someone from
22 > the
23 > outside will try to connect to homeserver.foo or to webserver.bar,
24 > will
25 > they be routed to the correct machine?
26 >
27 > Are there other setups I should look into?
28 >
29 > =======
30 > TopperH
31 > =======
32 Configure your router for static IP assignment on the LAN and look at
33 your router's manual for information about "port forwarding." Simply
34 forward the required port from the WAN to the associated LAN IP and
35 port number.

Replies

Subject Author
Re: [gentoo-user] Different servers behind the same router Momesso Andrea <momesso.andrea@×××××.com>