Hello friends, I hope you can help me with the following problem. Sorry for any errors, English is not my first language.
I have OPENWRT installed on a mikrotik rb750gr3, which has worked excellent for me along with mwan3 and pbr. I have two ISPs.
We recently installed a fiber provider, so we decided to remove our second backup (ADSL 4mbps). However, since day one, we have not been able to use the connection.
PPPOE authentication works correctly, I am assigned a public IP address. Using tcpdump I have been able to see that the authentication works correctly, however, I cannot ping anything, including the gateway.
Currently my router is configured as follows:
As you can see, the authentication works correctly. The 5 packets that appear are authentication, but from there, no further response was received.
Using "tcpdump -e -i pppoe-wan2" while pinging, I can see packets going out but get no response.
root@router:/tmp# tcpdump -e -i pppoe-wan2
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on pppoe-wan2, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
18:17:02.529260 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 41, length 64
18:17:03.539264 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 42, length 64
18:17:04.549256 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 43, length 64
18:17:05.559258 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 44, length 64
18:17:06.569262 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 45, length 64
18:17:07.579269 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 46, length 64
18:17:08.589263 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 47, length 64
18:17:09.599277 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 48, length 64
18:17:10.609280 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 49, length 64
18:17:11.619265 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 50, length 64
18:17:12.629272 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 51, length 64
18:17:13.639265 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 52, length 64
18:17:14.649264 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 53, length 64
18:17:15.659265 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 54, length 64
18:17:16.669254 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 55, length 64
18:17:17.679278 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 56, length 64
18:17:18.689437 Out ethertype IPv4 (0x0800), length 100: [mypublicip] > 8.8.8.8: ICMP echo request, id 17477, seq 57, length 64
^C
17 packets captured
17 packets received by filter
0 packets dropped by kernel
Using "tcpdump -e -i lan2" while pinging, I can see some others packets and I do get a response on "lan2" but on "pppoe-wan2" I get nothing.
root@router:/tmp# tcpdump -e -i lan2
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lan2, link-type EN10MB (Ethernet), capture size 262144 bytes
18:19:52.669145 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 30: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Request (0x09), id 58, length 10
18:19:52.673336 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype PPPoE S (0x8864), length 60: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Reply (0x0a), id 58, length 10
18:19:52.849271 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 106: PPPoE [ses 0x13c] IP (0x0021), length 86: [mypublicip] > 8.8.8.8: ICMP echo request, id 17791, seq 60, length 64
18:19:52.892717 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 110: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 86: 8.8.8.8 > [mypublicip]: ICMP echo reply, id 17791, seq 60, length 64
18:19:53.330433 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 82: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 58: [mygateway] > [mypublicip]: ICMP echo request, id 25352, seq 12743, length 36
18:19:53.416353 80:f7:a6:3e:17:70 (oui Unknown) > Broadcast, ethertype Unknown (0x880a), length 78:
0x0000: 316c 6f6f 7064 6574 6563 7470 6b74 204c 1loopdetectpkt.L
0x0010: 6f6f 7044 6574 6563 7420 5061 636b 6574 oopDetect.Packet
0x0020: 2100 0000 0000 0000 0000 0000 0000 0000 !...............
0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
18:19:53.679142 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 30: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Request (0x09), id 59, length 10
18:19:53.683322 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype PPPoE S (0x8864), length 60: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Reply (0x0a), id 59, length 10
18:19:53.859277 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 106: PPPoE [ses 0x13c] IP (0x0021), length 86: [mypublicip] > 8.8.8.8: ICMP echo request, id 17791, seq 61, length 64
18:19:53.902612 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 110: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 86: 8.8.8.8 > [mypublicip]: ICMP echo reply, id 17791, seq 61, length 64
18:19:54.327231 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 82: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 58: [mygateway] > [mypublicip]: ICMP echo request, id 25352, seq 13255, length 36
18:19:54.426376 80:f7:a6:3e:17:70 (oui Unknown) > Broadcast, ethertype Unknown (0x880a), length 78:
0x0000: 316c 6f6f 7064 6574 6563 7470 6b74 204c 1loopdetectpkt.L
0x0010: 6f6f 7044 6574 6563 7420 5061 636b 6574 oopDetect.Packet
0x0020: 2100 0000 0000 0000 0000 0000 0000 0000 !...............
0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
18:19:54.689156 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 30: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Request (0x09), id 60, length 10
18:19:54.692351 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype PPPoE S (0x8864), length 60: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Reply (0x0a), id 60, length 10
18:19:54.869292 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 106: PPPoE [ses 0x13c] IP (0x0021), length 86: [mypublicip] > 8.8.8.8: ICMP echo request, id 17791, seq 62, length 64
18:19:54.912712 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 110: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 86: 8.8.8.8 > [mypublicip]: ICMP echo reply, id 17791, seq 62, length 64
18:19:55.329647 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 82: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 58: [mygateway] > [mypublicip]: ICMP echo request, id 25352, seq 13511, length 36
18:19:55.436427 80:f7:a6:3e:17:70 (oui Unknown) > Broadcast, ethertype Unknown (0x880a), length 78:
0x0000: 316c 6f6f 7064 6574 6563 7470 6b74 204c 1loopdetectpkt.L
0x0010: 6f6f 7044 6574 6563 7420 5061 636b 6574 oopDetect.Packet
0x0020: 2100 0000 0000 0000 0000 0000 0000 0000 !...............
0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
18:19:55.699258 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 30: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Request (0x09), id 61, length 10
18:19:55.703397 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype PPPoE S (0x8864), length 60: PPPoE [ses 0x13c] LCP (0xc021), length 10: LCP, Echo-Reply (0x0a), id 61, length 10
18:19:55.879296 e6:90:ca:6a:00:0a (oui Unknown) > 12:b4:d8:58:6d:9c (oui Unknown), ethertype PPPoE S (0x8864), length 106: PPPoE [ses 0x13c] IP (0x0021), length 86: [mypublicip] > 8.8.8.8: ICMP echo request, id 17791, seq 63, length 64
18:19:55.923018 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 110: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 86: 8.8.8.8 > [mypublicip]: ICMP echo reply, id 17791, seq 63, length 64
18:19:56.330505 12:b4:d8:58:6d:9c (oui Unknown) > e6:90:ca:6a:00:0a (oui Unknown), ethertype 802.1Q (0x8100), length 82: vlan 804, p 0, ethertype PPPoE S, PPPoE [ses 0x13c] IP (0x0021), length 58: [mygateway] > [mypublicip]: ICMP echo request, id 25352, seq 13767, length 36
18:19:56.446445 80:f7:a6:3e:17:70 (oui Unknown) > Broadcast, ethertype Unknown (0x880a), length 78:
0x0000: 316c 6f6f 7064 6574 6563 7470 6b74 204c 1loopdetectpkt.L
0x0010: 6f6f 7044 6574 6563 7420 5061 636b 6574 oopDetect.Packet
0x0020: 2100 0000 0000 0000 0000 0000 0000 0000 !...............
0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
^C
24 packets captured
24 packets received by filter
0 packets dropped by kernel
Here is my /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
option ula_prefix 'fda6:2943:a0f7::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
config device
option name 'lan3'
option macaddr '48:a9:8a:19:8e:7f'
config device
option name 'lan4'
option macaddr '48:a9:8a:19:8e:7f'
config device
option name 'lan5'
option macaddr '48:a9:8a:19:8e:7f'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ip6assign '60'
option ipv6 '0'
option ipaddr '192.168.0.1'
option netmask '255.255.240.0'
option delegate '0'
config device
option name 'wan'
option macaddr '48:a9:8a:19:8e:7e'
option ipv6 '0'
option mtu '1500'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
option metric '1'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config interface 'wan2'
option pppd_options 'noipv6'
option proto 'pppoe'
option username '[myuser]'
option password '[mypassword]'
option ipv6 'auto'
option metric '2'
option device 'lan2'
config interface 'wg'
option proto 'wireguard'
option private_key '[mykey]'
list addresses '[myprivateip]'
config wireguard_wg
option description 'wgconnection'
option public_key '[mykey]'
list allowed_ips '0.0.0.0/0'
option endpoint_host '[myserver]'
option endpoint_port '51920'
option persistent_keepalive '25'
config device
option name 'eth0'
config device
option name 'lan2'
And here is my "ip route":
default via [first_isp_gateway] dev wan proto static src [first_isp_ip] metric 1
default via [pppoe_gateway] dev pppoe-wan2 proto static metric 2
[myserver] via 100.64.0.1 dev wan proto static metric 1
[otherserver] dev wan proto static scope link src [first_isp_ip] metric 1
xx.xx.0.0/10 dev wan proto static scope link metric 1
[pppoe_gateway] dev pppoe-wan2 proto kernel scope link src [pppoe_public_ip]
192.168.0.0/20 dev br-lan proto kernel scope link src 192.168.0.1
192.168.100.1 dev wan proto static scope link src [first_isp_ip] metric 1
I don't know if I hide any useful information, please let me know.
Thank you.