3
1
I had created a VPN income connection in windows 7. Everyone connected can see my local files and all, but I would like them to also be able to use my internet as well.
my computer IP is 192.168.1.254, connected to a router 192.168.1.1, and the VPN interface I made it into 192.168.11.150~192.168.11.160.
So now the last step is to add to routing table, which this is what I typed:
route add 192.168.11.150 mask 255.255.255.0 192.168.1.1
and the command line returns:
The route addition failed: The parameter is incorrect.
I spent hours of research on this problem and cant seems to find the answer, unless this is not the way to let VPN users use my internet...
Any help is welcome.
Edit: After changeing the mask to 255.255.255.255, the routing goes through with
OK!
However, the user who connected to the VPN still has no access to my internet... Does anyone know where I go wrong?
Not sure if this will help, but try routing from the .11 subnet to the IP of your computer on the .1 subnet (192.168.1.254). Then maybe you'll need another routing rule on the host. Anyway, if you only have 150 through 160 on the VPN subnet, your mask probably isn't a /24, so you might need to decrease that a bit. – allquixotic – 2014-08-13T04:43:42.673
I ran the above command again but this time replacing 192.168.1.1 with 192.168.1.254 and still gives same error... I am not too sure what /24 means, the 150 through 160 is just what I set it to be like this: http://royalbunny.tk/ips.png
– DearMusic – 2014-08-13T05:00:53.073what about perhaps 255.255.0.0 in the route add? or why not all 192.168.1.X and 255.255.255.0? and and why are you doing
route add
? I did a VPN without that – barlop – 2014-12-27T00:37:49.250