Community discussions

MikroTik App
 
stefnab
just joined
Topic Author
Posts: 17
Joined: Mon Jan 07, 2019 9:53 am

PPPoE client WAN and VPN connection

Fri Jan 18, 2019 12:52 pm

Hi,

My router is connected to the internet using PPPoE client.

I configured L2TP/IPsec VPN service on the router. I dont have internet access when i connect via VPN.
I can ping people in the LAN network (on the router side) etc. but i am unable to browse webpages.

The same config works fine when i connect internet to the router not via PPPoE client (alternative connection). I only change IP when connecting via VPN.
What can be the cause ? I bet it's about PPPoE client in my router.

Do i have to put some routes etc. in my config ?

I am desperated, please help me ;(
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: PPPoE client WAN and VPN connection

Fri Jan 18, 2019 1:17 pm

Hey

With VPN connected, what are the outputs of:

/ip address print detail
/ip route print detail
 
stefnab
just joined
Topic Author
Posts: 17
Joined: Mon Jan 07, 2019 9:53 am

Re: PPPoE client WAN and VPN connection

Fri Jan 18, 2019 2:21 pm

For this config i am currently connected through VPN (from different location than my network) ,PPPoE Wan is connected, ether1 WAN is disconnected and the problem mentioned above occurs.

I consored my public addresses (every xx, yy, zz means different digits).
 /ip address print detail
Flags: X - disabled, I - invalid, D - dynamic 
 0   address=10.2.0.1/24 network=10.2.0.0 interface=bridge-LAN actual-interface=bridge-LAN 

 1   address=10.10.10.1/24 network=10.10.10.0 interface=bridge-Garage actual-interface=bridge-Garage 

 2   address=192.168.10.1/24 network=192.168.10.0 interface=bridge-Guest actual-interface=bridge-Guest 

 3   address=XX:XX:XX.90/30 network=XX:XX:XX.88 interface=ether1 actual-interface=ether1 

 4 D address=YY:YY:YY/32 network=ZZ:ZZ:ZZ.1 interface=PPPoE_Client actual-interface=PPPoE_Client 

 5 D address=10.2.0.1/32 network=10.2.0.196 interface=<l2tp-vpnuser> actual-interface=<l2tp-vpnuser> 

 /ip route print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 
 0   S  dst-address=0.0.0.0/0 gateway=XX:XX:XX.89 gateway-status=XX:XX:XX.89 unreachable distance=1 scope=30 target-scope=10 

 1 ADS  dst-address=0.0.0.0/0 gateway=PPPoE_Client gateway-status=PPPoE_Client reachable check-gateway=ping distance=1 scope=30 target-scope=10 

 2 ADC  dst-address=10.2.0.0/24 pref-src=10.2.0.1 gateway=bridge-LAN gateway-status=bridge-LAN reachable distance=0 scope=10 

 3 ADC  dst-address=10.2.0.196/32 pref-src=10.2.0.1 gateway=<l2tp-vpnuser> gateway-status=<l2tp-vpnuser> reachable distance=0 scope=10 

 4 ADC  dst-address=10.10.10.0/24 pref-src=10.10.10.1 gateway=bridge-Garage gateway-status=bridge-Garage reachable distance=0 scope=10 

 5  DC  dst-address=XX:XX:XX.88/30 pref-src=XX:XX:XX.90 gateway=ether1 gateway-status=ether1 unreachable distance=255 scope=10 

 6 ADC  dst-address=192.168.10.0/24 pref-src=192.168.10.1 gateway=bridge-Guest gateway-status=bridge-Guest reachable distance=0 scope=10 

 7 ADC  dst-address=ZZ:ZZ:ZZ.1/32 pref-src=YY:YY:YY gateway=PPPoE_Client gateway-status=PPPoE_Client reachable distance=0 scope=10 
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: PPPoE client WAN and VPN connection

Fri Jan 18, 2019 2:46 pm

ether1 is your "alternative connection"?

It would be best if you split your lan & vpn. So different ranges for both.
 
stefnab
just joined
Topic Author
Posts: 17
Joined: Mon Jan 07, 2019 9:53 am

Re: PPPoE client WAN and VPN connection

Fri Jan 18, 2019 3:51 pm

yeah, ether1 is an alternative connection (very slow, but everyting works fine through VPN)
I do not split the network, cause i need to access files in shared locations of LAN.

I set local address 10.2.0.1 and remote address list "vpn-pool" (10.2.0.190-10.2.0.199).
 
nitrohydride
newbie
Posts: 29
Joined: Mon Oct 08, 2018 10:37 pm

Re: PPPoE client WAN and VPN connection

Fri Jan 18, 2019 9:10 pm

NAT rules ?
 
stefnab
just joined
Topic Author
Posts: 17
Joined: Mon Jan 07, 2019 9:53 am

Re: PPPoE client WAN and VPN connection

Tue Jan 22, 2019 7:06 pm

Just standard masquarade rules for both links.