Community discussions

MikroTik App
 
User avatar
gerhard
newbie
Topic Author
Posts: 30
Joined: Mon Dec 24, 2012 10:08 pm
Contact:

Incorrect WAN routing - new PPPoE interface

Thu Oct 28, 2021 3:08 pm

My starting point is a vanilla RB2011UAS running RouterOS v6.49:
# oct/28/2021 12:48:08 by RouterOS 6.49
# software id = 0YXJ-NGJP
#
# model = 2011UAS
# serial number = 3747022BB7F7

The PPPoE connection to my ISP works fine:
/interface vlan
add interface=ether1 name=Vodafone vlan-id=911
/interface pppoe-client
add add-default-route=yes disabled=no interface=Vodafone keepalive-timeout=disabled name="Vodafone PPPoE" password=XXX user=XXX

What am I missing in my config for all WAN traffic to be routed through this new interface?

This is the rest of my config (skipped the less relevant sections, like wireless, dhcp, ipv6, etc.):
/interface bridge
add admin-mac=D4:CA:6D:79:23:12 auto-mac=no comment=defconf name=bridge
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=ether10
add bridge=bridge comment=defconf interface=sfp1
/interface detect-internet
set detect-interface-list=all internet-interface-list=all lan-interface-list=all wan-interface-list=all
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN

Thank you!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Incorrect WAN routing - new PPPoE interface  [SOLVED]

Thu Oct 28, 2021 4:29 pm

(1) Unless absolutely required for some reason set this to NONE
/interface detect-internet
set detect-interface-list=all internet-interface-list=all lan-interface-list=all wan-interface-list=all

(2) Ensure ppoe is added to the appropriate locations....
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface= "Vodafone PPPoE" list=WAN
 
User avatar
gerhard
newbie
Topic Author
Posts: 30
Joined: Mon Dec 24, 2012 10:08 pm
Contact:

Re: Incorrect WAN routing - new PPPoE interface

Thu Oct 28, 2021 8:24 pm

(1) I have set wan-interface-list=none and now have:
/interface detect-internet
set detect-interface-list=all internet-interface-list=all lan-interface-list=all

(2) I have added the pppoe interface:
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface="Vodafone PPPoE" list=WAN

After the PPPoE connection is established, routing started to work:
[admin@MikroTik-RB2011UAS] > /ping 8.8.8.8
  SEQ HOST                                     SIZE TTL TIME  STATUS
    0 8.8.8.8                                    56 119 13ms
    1 8.8.8.8                                    56 119 13ms
    2 8.8.8.8                                    56 119 13ms
    3 8.8.8.8                                    56 119 11ms
    4 8.8.8.8                                    56 119 12ms
    5 8.8.8.8                                    56 119 13ms
    6 8.8.8.8                                    56 119 13ms
    7 8.8.8.8                                    56 119 13ms
    8 8.8.8.8                                    56 119 13ms
    sent=9 received=9 packet-loss=0% min-rtt=11ms avg-rtt=12ms max-rtt=13ms

The last thing left was to configure dns:
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

Everything works now, thank you very much!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Incorrect WAN routing - new PPPoE interface

Thu Oct 28, 2021 9:57 pm

Oops two things
Sorry I missed the allow external DNS

As for the detect internet I mean all the selections set to NONE, not just WAN.
I dont think this functionality has any purpose perhaps other than use with the MT smartphone app???
 
User avatar
gerhard
newbie
Topic Author
Posts: 30
Joined: Mon Dec 24, 2012 10:08 pm
Contact:

Re: Incorrect WAN routing - new PPPoE interface

Fri Oct 29, 2021 12:31 pm

Thank you, I now have:
[admin@MikroTik-RB2011UAS] > /interface detect-internet print
    detect-interface-list: none
       lan-interface-list: none
       wan-interface-list: none
  internet-interface-list: none

Who is online

Users browsing this forum: Bing [Bot], hasan, pfturner and 55 guests