Wingate and VPN connection to the Internet provider

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

Moderator: Qbik Staff

Wingate and VPN connection to the Internet provider

Postby SergeK » May 19 05 6:17 am

I connect to my Internet provider through MS VPN due to security reasons, but I can't share this connection using Wingate. I tried to change adapters type to internal/external, but it doesn't help. When I connect to my provider directly, without VPN, WinGate works fine and other computers share the connection.
Is there a way to setup WinGate to share VPN connection ?
I have 2 network cards , 1-st is set for the Internet connection, 2-nd card is the LAN card and it has the following settings :
IP 192.168.0.1
Subnet mask : 255.255.255.0
Defaul gateway : empty
DNS servers : empty

On client computers
IP 192.168.0.X
Subnet mask : 255.255.255.0
Defaul gateway : empty
DNS servers : empty


Thanks,
Serge.
SergeK
 
Posts: 6
Joined: May 18 05 6:40 pm

Postby MattP » May 19 05 9:26 am

Is WinGate on the machine that is running the MS VPN? Could you try moving it to a machine behind the VPN server?
MattP
Qbik Staff
 
Posts: 991
Joined: Sep 08 03 4:30 pm

Postby genie » May 19 05 10:54 am

Try setting default gateway for the client machines through WIngate.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby SergeK » May 19 05 3:52 pm

MattP wrote:Is WinGate on the machine that is running the MS VPN? Could you try moving it to a machine behind the VPN server?

Yes, WinGate is on the machine that connects to the provider through MS VPN, other machines are notebooks, so it's impossible to move WinGate to another machine.
SergeK
 
Posts: 6
Joined: May 18 05 6:40 pm

Postby SergeK » May 19 05 3:55 pm

genie wrote:Try setting default gateway for the client machines through WIngate.


I tried :
On client computers
IP 192.168.0.X
Subnet mask : 255.255.255.0
Defaul gateway : 192.168.0.1 ( Wingate server machine address)
DNS servers : empty

it doesn't help - I can't ping any external address from client machines such as DNS.
SergeK
 
Posts: 6
Joined: May 18 05 6:40 pm

Postby genie » May 19 05 4:11 pm

How are the adapters in your system marked (in terms of internal/external)?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby SergeK » May 19 05 4:21 pm

genie wrote:How are the adapters in your system marked (in terms of internal/external)?

Telent - is the name of my internet provider
DLink AP is the name of my LAN

Now in WinGate network tab they are:
DLink AP - Internal

Telenet - External
Telenet VPN - Internal

I tried all combinations for Telenet adapters ( IE, EI, II, EE)
SergeK
 
Posts: 6
Joined: May 18 05 6:40 pm

Postby genie » May 19 05 4:29 pm

OK, then. You have to mark the VPN adapter as external and your LAN adapter as internal. Then, if you want all your network traffic go through VPN link, you have to make sure that the default route noi your Wingate machine points to the VPN pseudo-adapter - not through your real Telenet-connected NIC. Can you send me your Wingate routing table?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby SergeK » May 19 05 4:59 pm

genie wrote:OK, then. You have to mark the VPN adapter as external and your LAN adapter as internal. Then, if you want all your network traffic go through VPN link, you have to make sure that the default route noi your Wingate machine points to the VPN pseudo-adapter - not through your real Telenet-connected NIC. Can you send me your Wingate routing table?

genie;
here it is ( route/print)
===========================================================================
Interface list
0x1 ........................... MS TCP Loopback interface
0x1000003 ...00 80 48 2a 42 a5 ...... Realtek 8139-series PCI NIC
0x1000004 ...00 60 08 91 1a a6 ...... Realtek 8139-series PCI NIC
0x2000005 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Network address Subnet mask Gateway address Interface Metric
0.0.0.0 0.0.0.0 10.0.4.1 10.0.4.5 1
0.0.0.0 0.0.0.0 213.140.121.227 213.140.121.227 1
10.0.4.0 255.255.255.128 10.0.4.5 10.0.4.5 1
10.0.4.1 255.255.255.255 10.0.4.5 10.0.4.5 1
10.0.4.5 255.255.255.255 127.0.0.1 127.0.0.1 1
10.255.255.255 255.255.255.255 10.0.4.5 10.0.4.5 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.1 192.168.0.1 1
192.168.0.1 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.1 192.168.0.1 1
213.140.121.227 255.255.255.255 127.0.0.1 127.0.0.1 1
213.140.121.255 255.255.255.255 213.140.121.227 213.140.121.227 1
224.0.0.0 224.0.0.0 10.0.4.5 10.0.4.5 1
224.0.0.0 224.0.0.0 192.168.0.1 192.168.0.1 1
224.0.0.0 224.0.0.0 213.140.121.227 213.140.121.227 1
255.255.255.255 255.255.255.255 192.168.0.1 192.168.0.1 1
Default gateway: 213.140.121.227
===========================================================================
SergeK
 
Posts: 6
Joined: May 18 05 6:40 pm

Postby genie » May 19 05 5:05 pm

Aye, here's the problem - you have two default gateways - the first one being is your real external NIC default gateway. I would suggest that you try setting metric for your real NIC to some high value (say, 20) and make sure that thre routing table shows the VPN route metric is lower.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby SergeK » May 19 05 5:28 pm

genie wrote:Aye, here's the problem - you have two default gateways - the first one being is your real external NIC default gateway. I would suggest that you try setting metric for your real NIC to some high value (say, 20) and make sure that thre routing table shows the VPN route metric is lower.

genie;
I write this post on the notebook, that works as WinGate client :)
So, the problem is solved.
Thanks a lot for your help !
( Also I removed 224.0.0.0 - route /delete 224.0.0.0)

Regards,

Serge.
SergeK
 
Posts: 6
Joined: May 18 05 6:40 pm

Postby genie » May 19 05 5:29 pm

No worries, Serge - glad it worked out for you.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am


Return to WinGate

Who is online

Users browsing this forum: No registered users and 14 guests