Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

WinGate between cable modem and router

Aug 25 10 6:38 pm

Hello,

i'm interested in WinGate and testing it now. But until now i don't get what i want to achieve.

The idea is to put a WinGate PC with cFosSpeed between my cable modem and the Fritz!Box for traffic shaping.
I don't know if WinGate is the right product cause normaly i don't need dhcp and all the other stuff. I just look for something to pass the internet trough one PC and Windows ICS is not really good.
I still want to use the dhcp of the Fritz!Box, cause i think its easier to handle, especially the WLan thing.

Ok, here we go.
Normaly the Fritz!Box is setup like this:

Internet access:
Connection: Internet connection over Lan1 (use this if the box is connected to a Lan, cable modem or router)
Operating type: Selfconnect to internet (NAT-Router with PPPoE or IP)
Access data: Not required (IP)
Connection settings: Get IP-adress automatically over DHCP (Hostname: fritz.fonlan.box)

Network settings:
IP-Fritz!Box: 192.168.178.1
Subnet: 255.255.255.0
DHCP-Server assigns IP-addresses from 192.168.178.20 to 192.168.178.200

The cable modem's IP is 192.168.100.1
All network cards are set to automatic.

Other settings i have at choice:
Operating type: share existing internet access in network (IP-Client)
Connection settings: set IP-Adress manual

For the manual IP-Adress setting i have:
IP-Adress
Subnet
Standart-Gateway
Primary DNS-Server
Secondary DNS-Server


So, how to i need to configure everything? Manual IP-Adress settings on the network cards in Windows to the modem and Fritz!Box? How to set up WinGate?

I made to pictures. One what i have now and one what i want.

normal.jpg
normal.jpg (32.64 KiB) Viewed 4050 times


wingate.jpg
wingate.jpg (37.63 KiB) Viewed 4049 times


Regards from Germany

Re: WinGate between cable modem and router

Aug 25 10 10:50 pm

Hi

actually in your case if you just want to pass the traffic through a computer between the FritzBox and the cable modem, all you need is a router, which actually Windows will do itself without requiring ICS. WinGate will also act as a router for you, or if you want to exercise even more control, you can intercept connections and pass them through a proxy.

Anyway, the key I think is that the computer needs a manually assigned IP address on the 192.168.178.X subnet. You can't assign this one with DHCP, since this IP will need to be assigned by DHCP to all the other computers as their default gateway (and possibly DNS server - or is there an Active Directory running here?).

Then all you need is to set the default gateway of the eth1 interface on the WinGate server to the Cable modem IP.

There may be one more requirement, depending on how you want the WinGate server to run. If as a router (e.g. not even requiring WinGate), you'll need to add a route to the Cable Modem itself, so it can respond to clients on the 192.168.178.X subnet back through the eth1 interface on the WinGate server.

Otherwise you'll find that the Lan clients can't even ping the Cable modem internal IP address.

Hope this helps

Adrien

Re: WinGate between cable modem and router

Aug 27 10 9:33 am

Thanks Adrien, i was allways looking for internet sharing and after your hint i was looking for windows router. And the magic word is IP-forwarding.
But that does not work. Looks like the problem is that its not working cause i can't set a static IP on the card to the modem.
I use now WinGates DHCP and the FritzBox is connected collateral to the switch.

Re: WinGate between cable modem and router

Aug 27 10 10:31 am

OK so the WAN-side interface on WinGate must be assigned by the cable modem?

In that case you can use ARP spoofing in WinGate, and tell the cable modem that the 192.168.178.x subnet is local to it. Then when the cable modem receives a packet which it must forward to some address on the 192.168.178.x subnet, it will think it is locally connected (on the same physical segment) so will do an ARP lookup for the IP, and WinGAte will respond with its MAC address, and will then receive the packet for forwarding back into your LAN.

So to set this up, you would set ARP spoofing on for the WAN-side interface in WinGate, and add the range 192.168.178.0 MASK 255.255.255.0.

Regards

Adrien

Re: WinGate between cable modem and router

Aug 29 10 5:31 am

Hm, sorry but what is the benefit of the ARP spoofing if i use it? The only thing i found is about the risks of ARP spoofing in german. Sorry, cant find the article in english: microsoft.com/germany/technet/datenbank/articles/600593.mspx

Re: WinGate between cable modem and router

Aug 30 10 10:47 am

ARP spoofing allows you to get a device to send packets to you.

In your case, since your WinGAte external NIC is dynamically assigned, and you need your cable modem to use that interface as a gateway through to your internal network, you need to get the cable modem to address (at an ethernet level) packets for your internal LAN to the WAN interface on the WinGate computer.

ARP spoofing is one way to do this. It means when you set up the route on the cable modem that relates to the internal LAN, you don't need to know what the IP address is of the WinGate WAN adapter (since that can change). Instead you make the route local.
Post a reply