• February 23, 2025, 10:01:44 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: DFL-800 access two local lans via vpn  (Read 3747 times)

nielsprins

  • Level 1 Member
  • *
  • Posts: 1
DFL-800 access two local lans via vpn
« 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
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: DFL-800 access two local lans via vpn
« Reply #1 on: March 03, 2012, 10:34:22 PM »

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
Code: [Select]
@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
Logged
BR, Alexandr Danilov