Sep 21

written by MG \\ tags: ,

May 14

First you must create your VPN connection in Windows (XP, 2000 or later) using the standard wizard thingy Windows provides. Let’s say your connection is named “My vpn”.

I assumed that my intranet is giving me an address always starting with “192.168.100”  and I want to add route to 10.10.10.0/24 to my VPN gateway.

Now let’s start our script in a .bat file:

@rasdial /disconnect
@rasdial “My vpn” “MyUser” “MyPassword”
@setlocal
@for /f “tokens=1-2 delims=:” %%i in (‘ipconfig ^| find “IP Address” ^| find “192.168.100”‘) do set GETIP=%%j
@route add 10.10.10.0 mask 255.255.255.0 %GetIp%
@endlocal

After you’re done creating the .bat file, simply create a shortcut to it and put it on your desktop. This way you can doubleclick it, connect and start surfing your Intranet

written by MG \\ tags: ,

Apr 15

Just in case anyone else has the same problem – I found the fix.

I had to set the MTU of the listening interface (eth0 in my case) to 1400 (it was set to 1500) on my linux server.

ifconfig eth0 mtu 1400

 

written by MG \\ tags: , ,

Oct 15

Netmasks Expanded (/24 through /32)

Netmask 255.255.255.0 /24 (11111111.11111111.11111111.00000000)
1 subnet
LOW IP HI IP
x.x.x.0 x.x.x.255

Netmask 255.255.255.128 /25 (11111111.11111111.11111111.10000000)
2 subnets
LOW IP HI IP
x.x.x.0 x.x.x.127
x.x.x.128 x.x.x.255

Netmask 255.255.255.192 /26 (11111111.11111111.11111111.11000000)
4 subnets
x.x.x.0 x.x.x.63
x.x.x.64 x.x.x.127
x.x.x.128 x.x.x.191
x.x.x.192 x.x.x.255

Netmask 255.255.255.224 /27 (11111111.11111111.11111111.11100000)
8 subnets
x.x.x.0 x.x.x.31
x.x.x.32 x.x.x.63
x.x.x.64 x.x.x.95
x.x.x.96 x.x.x.127
x.x.x.128 x.x.x.159
x.x.x.160 x.x.x.191
x.x.x.192 x.x.x.223
x.x.x.224 x.x.x.255

Continue reading »

written by MG