Re: how to configure Gateway func between 2 ifaces, one with static IP, other with DHCP
- From: Agryppa <ja@xxxxx>
- Date: Thu, 31 Jul 2008 02:18:10 +0200
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 thisHmm... It seems someone had set port forwarding on the firewall so that
machine over the Dynamic IP from anywhere.
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,Nothing unusual. It is a default route taken from th DHCPD server that
allows it to connect to the Internet via a firewall (& http proxy
etc.).
tells the gatekeeper about the right path to the Net.
I also have a network which is also assigned a dynamic IP viaDo not forget to tells us that this DHCP is YOURS, not Theirs. Theirs
DHCP, which can connect to the internet, and also to "gatekeeper".
sets the default route, ip, netmask, broadcast of the gatekeeper's
interfaces. That's all.
I'dIf you have a full control over the gatekeeper you should be able to
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 ?
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
- References:
- Prev by Date: Re: Please help - How do I install Netem
- Next by Date: Modem trouble
- Previous by thread: Re: how to configure Gateway func between 2 ifaces, one with static IP, other with DHCP
- Next by thread: Need to buy a new wireless USB adapter, but which one to get?
- Index(es):
Relevant Pages
|