D-Link Forums
The Graveyard - Products No Longer Supported => D-Link NetDefend Firewalls => Topic started by: nielsprins on February 29, 2012, 02:26:06 AM
-
Hi
I have a dfl-800. On the lan side I have 2 lans 192.168.110.x and 192.168.111.x
I connect from my mac with L2TP vi IPsec.
My connection to 192.168.110.x works without problems, but I can't acces the other lan.
When I am in the office on the local net I have access from x.x.110.x to x.x.111.x - but not on the VPN connection.
Any suggestions to how I get this to work?
Thanks for any help.
Niels
-
After connection, manually add route to 192.168.111.0/255.255.255.0 over accured PPP address
To automate this process you can use script like below
@echo off
title PPP VPN caller and routing script
set VPN=RRAS_Name
set VPN_USER=user
set VPN_PASS=pass
echo Calling %VPN%...
rasdial %VPN% %VPN_USER% %VPN_PASS%
echo Removing old routing...
route delete 192.168.222.0
echo Applying routing...
ipconfig > temp1.txt
findstr "192.168.223." temp1.txt > temp2.txt
for /F "tokens=2 delims=:" %%f in (temp2.txt) do echo VPN client address %%f
for /F "tokens=2 delims=:" %%f in (temp2.txt) do route add 192.168.222.0 mask 255.255.255.0 %%f
if exist temp1.txt del temp1.txt
if exist temp2.txt del temp2.txt
echo Done
pause