by adrien » Sep 09 04 5:52 pm
It comes down to subnetting.
If everything is going through a single gateway, then this gateway needs a single external IP.
However, since you have a bunch of IP addresses, there must be a router provided by your ISP in your premises (or is there a card that plugs into your machine for this?).
Basically the router that connects to the external interface of your WinGate machine either needs to be configured to route to your IPs through the single IP of the gateway, OR if that router thinks all those IPs are local, you can use the ARP responder in WinGate to fool the router into sending the packets for the entire subnet to WinGate's MAC address.
WinGate then will route them to the DMZ as required. This is why we added the ARP responder, for the case where you cannot change routing on the local router (i.e. Whoosh here in New Zealand provides a customer premises router, which the customer cannot configure).
So, in our case here, what we would have is the following.
Internet -> Router (IP 210.55.214.97 mask 255.255.255.240).
So this router thinks all our IP addresses are available locally on its customer-side interface. This means when it gets a packet destined for an IP, it does an ARP request for that IP (as opposed to if it thought it would need to route it, it would just forward it to the MAC of the router).
So, our WinGate is configured with external address 210.55.214.98, mask 255.255.255.255. On newer "smarter" OSes, you can't set the netmask to this, so we had to edit the registry to set the network mask and reboot.
On this interface, we set ARP responder to the address 210.55.214.97 with mask 255.255.255.240. This means that for any address the router does a lookup for, WinGate will say "hey that's me". It is effectively like telling the router to route through us, without having to configure the router (which requires access).
On our DMZ interface, we give it a bogus IP address, say 1.2.3.4, mask can be anything. On this adapter in WinGate, we set an ARP responder to 210.55.214.98, MASK 255.255.255.255.
Then on the DMZ machines, we give them addresses in the range 210.55.214.99 - 210.55.214.107 with mask 255.255.255.240, and default gateway 210.55.214.98 (the other interface on WinGate, even though theoretically not available). Since these machines therefore think that 210.55.215.98 is local, they will do an ARP lookup for it, WinGate will respond, and the packets will flow through.
Clear as mud?
This way saves on IP addresses. You could go the "normal" way and assign away all your IPs to all the interfaces, and subnet the range into 2 networks, but due to network masking, this isn't efficient on IP addresses.
Adrien
Last edited by
adrien on Sep 09 04 8:19 pm, edited 1 time in total.