Community discussions

MikroTik App
 
parsaee
just joined
Topic Author
Posts: 14
Joined: Sat Jul 04, 2009 3:35 pm

Forward All Traffic From L2TP-Client

Tue Jul 07, 2009 8:13 am

hi to all

i have a problem
my RouterOS is RB433 and version is 3.25

my configuration :

ether1=local
address=1.1.1.1/24

wlan1=internet
address= 2.2.2.2/24
gateway=2.2.2.1

nat :

ip firewall nat add chain=srcnat action=masquerade

everything is ok and no problem

i have one vpn account for bypass filtering

l2tp-client :

interface l2tp-client add user=xxx password=yyy connect-to="static valid ip address of my vpn provider" disabled=no add-default-route=yes

connected properly

now i need bypass all internet trafic by lt2p
but can not found any way for this

example :
now : desktop pc-> mikrotik-> internet

i want : desktop pc -> mikrotik -> l2tp ->internet
please help me
thanks
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Forward All Traffic From L2TP-Client

Thu Jul 09, 2009 4:15 pm

set up routes to go through your tunnel, and add additional, specific routes, so other end of tunnel is reachable from router.

also, please fix your masquerade rule, because now you are masking everything, and that is not necessary, add to that rule out interface for example, so there is no unnecessary translation.
 
parsaee
just joined
Topic Author
Posts: 14
Joined: Sat Jul 04, 2009 3:35 pm

Re: Forward All Traffic From L2TP-Client

Thu Jul 09, 2009 4:26 pm

set up routes to go through your tunnel, and add additional, specific routes, so other end of tunnel is reachable from router.

also, please fix your masquerade rule, because now you are masking everything, and that is not necessary, add to that rule out interface for example, so there is no unnecessary translation.
dear janisk

thanks
i find a way for route and nat l2tp by mangle and work it properly
thanks alot :)
 
aftabali897
just joined
Posts: 1
Joined: Tue Jul 14, 2020 9:16 am

Re: Forward All Traffic From L2TP-Client

Tue Jul 14, 2020 9:29 am

Hi can you share the Configuration it's urgent

Who is online

Users browsing this forum: No registered users and 13 guests