Page 1 of 1
Iternet access via VPN
Posted: Sat Feb 11, 2012 12:56 am
by arsenm
I have 2 mikrotik routers connected to different ISP's
for example:
Mikrotik_Server connected to ISP1 with IP: 250.*.*.*
Mikrotik_Client connected to ISP1 with IP: 75.*.*.* (Mikrotik_Client has users connected to LAN side)
I need to connect Mikrotik_Client to Mikrotik_Server via PPTP and use ISP1 for Mikrotik_Client clients
Re: Iternet access via VPN
Posted: Sat Feb 11, 2012 3:43 am
by javedshotline
###########Mikrotik_Server Configration############
/ppp profile
add name="pptp" local-address=176.16.0.1 remote-address=176.16.0.2 use-compression=default use-vj-compression=default use-encryption=yes only-one=default change-tcp-mss=no
/ppp secret
add name=username password=password profile=pptp
/ip interface pptp-server server
set enabled=yes authentication=pap,chap,mschap1,mschap2 keepalive-timeout=15 default-profile=default
##########Mikrotik_Client Configration##############
/interface pptp-client
add name="pptp-out1" connect-to=250.*.*.* user=username password=password profile=default add-default-route=no allow=pap,chap,mschap1,mschap2 disabled=no
Now Mark your LAN traffic with firewall mangle & add a route 176.16.0.1 to marked trafic
/ip firewall mangle
add chain=prerouting src-address=192.168.1.0/24 action=mark-routing new-routing-mark=Lan_traffic passthrough=no
/ip route
add dst-address=0.0.0.0/0 gateway=176.16.0.1 routing-mark=Lan_traffic
Re: Iternet access via VPN
Posted: Sat Feb 11, 2012 1:13 pm
by arsenm
thank you for help, javedshotline
i don't know why, but traffic from my LAN cant go through
Re: Iternet access via VPN
Posted: Sun Feb 12, 2012 12:22 pm
by arsenm
any idea?
Re: Iternet access via VPN
Posted: Sun Feb 12, 2012 2:46 pm
by TheWiFiGuy
have you added a return route for the 192.168.x.x network on the other end of the network so it knows how to route traffic back across the pptp link?
Re: Iternet access via VPN
Posted: Tue Feb 14, 2012 3:28 am
by arsenm
I have route:
3 ADC 192.168.1.0/24 192.168.1.1 LAN
Re: Iternet access via VPN
Posted: Tue Feb 14, 2012 10:22 pm
by arsenm
what's the wrong ?
Re: Iternet access via VPN
Posted: Sun Feb 19, 2012 12:53 pm
by arsenm
???