Re: how to configure Gateway func between 2 ifaces, one with static IP, other with DHCP



b_dutta pisze:
Hi,

I have a private network on 10.0.2.x network on one hand (all linux
boxes running CentOS4.6) -- all of these hosts have a single LAN card,
barring 1, called "gatekeeper" which has 2. On "gatekeeper" one of the
interfaces has the IP=10.0.2.254 (gateway for all other hosts on the
private network), and the other interface is configured for DHCP.

So its IP address is alocated from a DHCPD server. You do not have
control over this process. You say so in the following post.

Also, I've setup DynDNS on this machine s.t. I could reach this
machine over the Dynamic IP from anywhere.
Hmm... It seems someone had set port forwarding on the firewall so that
you can use at least port 80 to access your gatekeeper. Thank him for
that. Or perhaps there is no firewall there at all...?


The interface with DHCP IP,
allows it to connect to the Internet via a firewall (& http proxy
etc.).
Nothing unusual. It is a default route taken from th DHCPD server that
tells the gatekeeper about the right path to the Net.



I also have a network which is also assigned a dynamic IP via
DHCP, which can connect to the internet, and also to "gatekeeper".
Do not forget to tells us that this DHCP is YOURS, not Theirs. Theirs
sets the default route, ip, netmask, broadcast of the gatekeeper's
interfaces. That's all.


I'd
like to know, how I could configure "gatekeeper" to act as a Gateway
for the 10.0.2.x private LAN machines, s.t. they can also be reached
from the internet (via a middle-hope on "gatekeeper") and vice-versa ?
If you have a full control over the gatekeeper you should be able to
further redirect the packets destined for your 10.0.2.x network machines.
Methinks iptables and iproute2 should be of great help in this field.
You could match packets destined for specific ports coming in on an
dhcp_ip gatekeeper's interface, mark them, then route to one of your
LAN's computers.

Being more specific is beyond of my expertise, however.

Agryppa

The intended topology is available in this image-link here (http://
c.imagehost.org/0781/topo.gif)

Nice picture, done with DIA?

thanks & regards,
bani
.



Relevant Pages

  • Configuring another interface via DHCP
    ... I'm setting up a cluster of machines, each of which is connected to a ... I would like all the interfaces to be configured ... the only DHCP server is on the private (eth0) network. ... interfaces in one DHCP database on the server on the private network. ...
    (comp.os.linux.networking)
  • Dhcp server does not start
    ... I have a problem with dhcp server. ... router and eth1 is connected with the private network. ... There is the message "No subnet declaration for eth1 ... Not configured to listen to any interfaces!" ...
    (alt.os.linux.suse)
  • Re: SBS 2003 VPN
    ... you will want two interfaces. ... the other should connect to your private network. ... This posting is provided "AS IS" with no warranties, ... we have Windows 2003 Small Business Server. ...
    (microsoft.public.windows.server.networking)
  • Re: Thousands of interfaces
    ... These are being used to tunnel traffic from remote ... routers, over a private network, and handed off to a third party. ... has a several N^2 searches for interfaces. ...
    (Linux-Kernel)