M
M
Minusator2016-11-22 20:51:24
Mikrotik
Minusator, 2016-11-22 20:51:24

PPTP (VPN) over L2TP on a Mikrotik hAP router?

Good evening!
Internet is up on the wifi router - l2TP statics. (Akado provider)
It is necessary to start up all traffic on PPTP (VPN) connection. When the connection is broken, block all traffic.
Tried to follow these instructions . Nothing works.
How did you do it? Turned off add-default-route on l2TP
Created a PPTP client, entered the data:
Connect - pptp.vpn.ru (ip - 176.222.245.22)
Login - login
Password - password
unchecked add-default-route
In the terminal entered sequentially
/ ip route add dst-address=0.0.0.0/0 gateway=pptp distance=10
/ip route add dst-address=0.0.0.0/0 gateway=l2tp distance=20
/ip route add dst-address=176.222.245.22 gateway=l2tp

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Diman89, 2016-11-22
@Diman89

/ip route
add distance=1 gateway=vpn_l2tp routing-mark=l2tp
add distance=1 gateway=vpn_pptp routing-mark=pptp
add distance=1 gateway=PPPoE_DOMRU
/ip route rule
add action=lookup-only-in-table dst-address=8.8.8.8/32 table=l2tp
add action=lookup-only-in-table dst-address=8.8.4.4/32 table=l2tp
add action=lookup-only-in-table dst-address=IP_pptp_server table=l2tp

the default route is nowhere
and 3 nata (in order):
main
l2tp
pptp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question