Hi Vyos experts,
My previous image is 1.5-rolling-202407280023, everything works perfect, when I upgrade to the 1.5-rolling-202411230007, there is a lot of invalid pppoe traffic, if I keep the firewall global state-policy invalid action 'drop', my pppoe connection will not up. here is the details:
vyos@vyos: **monitor log** Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=01:80:c2:00:00:00:60:be:b4:10:7a:6a:00:26 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:57 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:58 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:58 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64 Nov 27 18:17:58 kernel: [STATE-POLICY-INV-A]IN= OUT=eth0 MAC=d4:c1:c8:92:76:b0:52:37:9c:d2:22:eb:88:64
52:37:9c:d2:22:eb is my br0 mac (wan interface ), and the member of br0 is eth0, eth0 connected to my gpon onu.
I can't find which interface has d4:c1:c8:92:76:b0 . I guess it is the mac of ONU interface.
vyos@vyos:~$ **monitor traffic interface eth0 verbose |match d4:c1:c8:92:76:b0** tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 18:28:09.587210 d4:c1:c8:92:76:b0 > 52:37:9c:d2:22:eb, ethertype PPPoE S (0x8864), length 125: PPPoE [ses 0xf602] IP (0x0021), length 105: (tos 0x90, ttl 56, id 4415, offset 0, flags [DF], proto UDP (17), length 103) 18:28:09.597515 d4:c1:c8:92:76:b0 > 52:37:9c:d2:22:eb, ethertype PPPoE S (0x8864), length 74: PPPoE [ses 0xf602] IP (0x0021), length 54: (tos 0x90, ttl 54, id 65203, offset 0, flags [DF], proto TCP (6), length 52) 18:28:09.606693 52:37:9c:d2:22:eb > d4:c1:c8:92:76:b0, ethertype PPPoE S (0x8864), length 74: PPPoE [ses 0xf602] IP (0x0021), length 54: (tos 0x0, ttl 64, id 21640, offset 0, flags [DF], proto TCP (6), length 52) 18:28:09.607215 52:37:9c:d2:22:eb > d4:c1:c8:92:76:b0, ethertype PPPoE S (0x8864), length 184: PPPoE [ses 0xf602] IP (0x0021), length 164: (tos 0x0, ttl 64, id 29965, offset 0, flags [DF], proto TCP (6), length 162) 18:28:09.618476 d4:c1:c8:92:76:b0 > 52:37:9c:d2:22:eb, ethertype PPPoE S (0x8864), length 74: PPPoE [ses 0xf602] IP (0x0021), length 54: (tos 0x90, ttl 54, id 64911, offset 0, flags [DF], proto TCP (6), length 52) 18:28:09.619073 d4:c1:c8:92:76:b0 > 52:37:9c:d2:22:eb, ethertype PPPoE S (0x8864), length 74: PPPoE [ses 0xf602] IP (0x0021), length 54: (tos 0x90, ttl 54, id 65204, offset 0, flags [DF], proto TCP (6), length 52) 18:28:09.655779 d4:c1:c8:92:76:b0 > 52:37:9c:d2:22:eb, ethertype PPPoE S (0x8864), length 142: PPPoE [ses 0xf602] IP (0x0021), length 122: (tos 0x90, ttl 56, id 4419, offset 0, flags [DF], proto UDP (17), length 120) 18:28:09.668675 52:37:9c:d2:22:eb > d4:c1:c8:92:76:b0, ethertype PPPoE S (0x8864), length 184: PPPoE [ses 0xf602] IP (0x0021), length 164: (tos 0x0, ttl 64, id 29966, offset 0, flags [DF], proto TCP (6), length 162) 18:28:09.680520 d4:c1:c8:92:76:b0 > 52:37:9c:d2:22:eb, ethertype PPPoE S (0x8864), length 74: PPPoE [ses 0xf602] IP (0x0021), length 54: (tos 0x90, ttl 54, id 65205, offset 0, flags [DF], proto TCP (6), length 52)
This is my system version:
vyos@vyos:~$** show version** Version: VyOS 1.5-rolling-202411230007 Release train: current Release flavor: generic Built by: autobuild@vyos.net Built on: Sat 23 Nov 2024 00:07 UTC Build UUID: 17e0c561-6d4c-4a06-bea4-185407cdb7fb Build commit ID: 50f8304f920335 Architecture: x86_64 Boot via: installed image System type: bare metal Secure Boot: disabled Hardware vendor: CncTion Hardware model: N4100-4L Hardware S/N: Default string Hardware UUID: 03000200-0400-0500-0006-000700080009 Copyright: VyOS maintainers and contributors
I am using zone-based firewall:
set firewall global-options all-ping 'enable' set firewall global-options apply-to-bridged-traffic invalid-connections set firewall global-options apply-to-bridged-traffic ipv4 set firewall global-options apply-to-bridged-traffic ipv6 set firewall global-options state-policy established action 'accept' set firewall global-options state-policy invalid action 'accept' set firewall global-options state-policy invalid log set firewall global-options state-policy invalid log-level 'debug' set firewall global-options state-policy related action 'accept' set firewall group address-group OpenDns address '208.67.220.220' set firewall group address-group OpenDns address '208.67.222.222' set firewall group address-group OpenDns address '208.67.220.222' set firewall group address-group OpenDns address '208.67.222.220' set firewall group address-group OpenDns address '208.67.222.123' set firewall group address-group OpenDns address '208.67.220.123' set firewall group address-group OpenDns address '208.67.222.2' set firewall group address-group OpenDns address '208.67.220.2' set firewall group ipv6-address-group OpenDNS-IPv6 address '2620:119:35::35' set firewall group ipv6-address-group OpenDNS-IPv6 address '2620:119:53::53' set firewall group ipv6-address-group OpenDNS-IPv6 address '2620:119:35::123' set firewall group ipv6-address-group OpenDNS-IPv6 address '2620:119:53::123' set firewall group ipv6-address-group OpenDNS-IPv6 address '2620:0:ccc::2' set firewall group ipv6-address-group OpenDNS-IPv6 address '2620:0:ccd::2' set firewall ipv4 name BGP_to_LOCAL default-action 'accept' set firewall ipv4 name BGP_to_WAN default-action 'accept' set firewall ipv4 name BGP_to_WG default-action 'accept' set firewall ipv4 name LAN_to_LOCAL default-action 'accept' set firewall ipv4 name LAN_to_WAN default-action 'accept' set firewall ipv4 name LAN_to_WAN rule 10 action 'drop' set firewall ipv4 name LAN_to_WAN rule 10 destination group address-group 'OpenDns' set firewall ipv4 name LAN_to_WAN rule 10 log set firewall ipv4 name LAN_to_WAN rule 10 protocol 'all' set firewall ipv4 name LAN_to_WAN rule 20 action 'return' set firewall ipv4 name LAN_to_WAN rule 20 description 'ipv4 stateful from LAN to WAN' set firewall ipv4 name LAN_to_WAN rule 20 state 'established' set firewall ipv4 name LAN_to_WAN rule 20 state 'related' set firewall ipv4 name LAN_to_WAN rule 20 state 'new' set firewall ipv4 name LAN_to_WAN rule 20 state 'invalid' set firewall ipv4 name LAN_to_WG default-action 'accept' set firewall ipv4 name LOCAL_to_BGP default-action 'accept' set firewall ipv4 name LOCAL_to_LAN default-action 'accept' set firewall ipv4 name LOCAL_to_WAN default-action 'accept' set firewall ipv4 name LOCAL_to_WG default-action 'accept' set firewall ipv4 name LOCAL_to_WG description 'Allow Vyos to HK WG server' set firewall ipv4 name WAN_to_BGP default-action 'drop' set firewall ipv4 name WAN_to_BGP default-log set firewall ipv4 name WAN_to_LAN default-action 'drop' set firewall ipv4 name WAN_to_LAN default-log set firewall ipv4 name WAN_to_LOCAL default-action 'drop' set firewall ipv4 name WAN_to_LOCAL default-log set firewall ipv4 name WG_to_LOCAL default-action 'accept' set firewall ipv6 name LAN_to_LOCAL-ipv6 default-action 'accept' set firewall ipv6 name LAN_to_WAN-ipv6 default-action 'accept' set firewall ipv6 name LAN_to_WAN-ipv6 description 'ipv6 stateful from LAN to WAN' set firewall ipv6 name LAN_to_WAN-ipv6 rule 10 action 'drop' set firewall ipv6 name LAN_to_WAN-ipv6 rule 10 destination group address-group 'OpenDNS-IPv6' set firewall ipv6 name LAN_to_WAN-ipv6 rule 10 log set firewall ipv6 name LAN_to_WAN-ipv6 rule 10 protocol 'all' set firewall ipv6 name LAN_to_WAN-ipv6 rule 20 action 'return' set firewall ipv6 name LAN_to_WAN-ipv6 rule 20 state 'established' set firewall ipv6 name LAN_to_WAN-ipv6 rule 20 state 'new' set firewall ipv6 name LAN_to_WAN-ipv6 rule 20 state 'related' set firewall ipv6 name LAN_to_WAN-ipv6 rule 20 state 'invalid' set firewall ipv6 name LOCAL_to_LAN-ipv6 default-action 'accept' set firewall ipv6 name LOCAL_to_WAN-ipv6 default-action 'accept' set firewall ipv6 name WAN_to_LAN-ipv6 default-action 'drop' set firewall ipv6 name WAN_to_LAN-ipv6 default-log set firewall ipv6 name WAN_to_LOCAL-ipv6 default-action 'drop' set firewall ipv6 name WAN_to_LOCAL-ipv6 default-log set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 10 action 'drop' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 10 icmpv6 type-name 'echo-request' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 10 protocol 'ipv6-icmp' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 20 action 'accept' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 20 protocol 'ipv6-icmp' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 30 action 'accept' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 30 destination port '546' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 30 protocol 'udp' set firewall ipv6 name WAN_to_LOCAL-ipv6 rule 30 source port '547' set firewall zone BGP from LOCAL firewall name 'LOCAL_to_BGP' set firewall zone BGP from WAN firewall name 'WAN_to_BGP' set firewall zone BGP interface 'pod-bgpnetwork' set firewall zone BGP interface 'veth0' set firewall zone LAN default-action 'drop' set firewall zone LAN from LOCAL firewall ipv6-name 'LOCAL_to_LAN-ipv6' set firewall zone LAN from LOCAL firewall name 'LOCAL_to_LAN' set firewall zone LAN from WAN firewall ipv6-name 'WAN_to_LAN-ipv6' set firewall zone LAN from WAN firewall name 'WAN_to_LAN' set firewall zone LAN interface 'br1' set firewall zone LOCAL default-action 'drop' set firewall zone LOCAL from BGP firewall name 'BGP_to_LOCAL' set firewall zone LOCAL from LAN firewall ipv6-name 'LAN_to_LOCAL-ipv6' set firewall zone LOCAL from LAN firewall name 'LAN_to_LOCAL' set firewall zone LOCAL from WAN firewall ipv6-name 'WAN_to_LOCAL-ipv6' set firewall zone LOCAL from WAN firewall name 'WAN_to_LOCAL' set firewall zone LOCAL from WG firewall name 'WG_to_LOCAL' set firewall zone LOCAL local-zone set firewall zone WAN default-action 'drop' set firewall zone WAN from BGP firewall name 'BGP_to_WAN' set firewall zone WAN from LAN firewall ipv6-name 'LAN_to_WAN-ipv6' set firewall zone WAN from LAN firewall name 'LAN_to_WAN' set firewall zone WAN from LOCAL firewall ipv6-name 'LOCAL_to_WAN-ipv6' set firewall zone WAN from LOCAL firewall name 'LOCAL_to_WAN' set firewall zone WAN interface 'br0' set firewall zone WAN interface 'pppoe0' set firewall zone WG default-action 'drop' set firewall zone WG from BGP firewall name 'BGP_to_WG' set firewall zone WG from LAN firewall name 'LAN_to_WG' set firewall zone WG from LOCAL firewall name 'LOCAL_to_WG' set firewall zone WG interface 'wg0
my interfaces configurations of pppoe and wan bridge:
set interfaces pppoe pppoe0 authentication password '***' set interfaces pppoe pppoe0 authentication username ' ***' set interfaces pppoe pppoe0 dhcpv6-options pd 0 interface br1 address '1' set interfaces pppoe pppoe0 dhcpv6-options pd 0 interface br1 sla-id '0' set interfaces pppoe pppoe0 dhcpv6-options pd 0 length '60' set interfaces pppoe pppoe0 ip adjust-mss 'clamp-mss-to-pmtu' set interfaces pppoe pppoe0 ipv6 address autoconf set interfaces pppoe pppoe0 ipv6 adjust-mss 'clamp-mss-to-pmtu' set interfaces pppoe pppoe0 mtu '1480' set interfaces pppoe pppoe0 source-interface 'br0'
It seems that the pppoe traffic is marking invalid, please let me know if you need anything else, Thanks