Community discussions

MikroTik App
 
arsenm
just joined
Topic Author
Posts: 11
Joined: Wed Feb 08, 2012 12:18 am
Contact:

Iternet access via VPN

Sat Feb 11, 2012 12:56 am

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
 
javedshotline
newbie
Posts: 26
Joined: Mon Jan 23, 2012 9:09 pm

Re: Iternet access via VPN

Sat Feb 11, 2012 3:43 am

###########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
Last edited by javedshotline on Sun Feb 12, 2012 10:42 am, edited 1 time in total.
 
arsenm
just joined
Topic Author
Posts: 11
Joined: Wed Feb 08, 2012 12:18 am
Contact:

Re: Iternet access via VPN

Sat Feb 11, 2012 1:13 pm

thank you for help, javedshotline
i don't know why, but traffic from my LAN cant go through
 
arsenm
just joined
Topic Author
Posts: 11
Joined: Wed Feb 08, 2012 12:18 am
Contact:

Re: Iternet access via VPN

Sun Feb 12, 2012 12:22 pm

any idea?
 
User avatar
TheWiFiGuy
Member
Member
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

Re: Iternet access via VPN

Sun Feb 12, 2012 2:46 pm

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?
 
arsenm
just joined
Topic Author
Posts: 11
Joined: Wed Feb 08, 2012 12:18 am
Contact:

Re: Iternet access via VPN

Tue Feb 14, 2012 3:28 am

I have route:
3 ADC 192.168.1.0/24 192.168.1.1 LAN
 
arsenm
just joined
Topic Author
Posts: 11
Joined: Wed Feb 08, 2012 12:18 am
Contact:

Re: Iternet access via VPN

Tue Feb 14, 2012 10:22 pm

what's the wrong ?
 
arsenm
just joined
Topic Author
Posts: 11
Joined: Wed Feb 08, 2012 12:18 am
Contact:

Re: Iternet access via VPN

Sun Feb 19, 2012 12:53 pm

???
:?

Who is online

Users browsing this forum: No registered users and 55 guests