Hello,
I am running VyOS 1.5-rolling-202407241122 with the below configuration.
I have 2 WAN interfaces, with DHCP. I have configured the failover, but after doing this, I don’t get an outbound connection from the PBR rule. So connections to those set destination ports don’t work.
Also, which is weird. From my client, I am also not able to ping 1.1.1.1, but 8.8.8.8 works just fine. My client sits in the 192.168.1.0/24 subnet. Funny enough, the traceroute works though.
set firewall global-options state-policy established action 'accept'
set firewall global-options state-policy invalid action 'drop'
set firewall global-options state-policy related action 'accept'
set firewall group interface-group LAN interface 'eth1'
set firewall group interface-group WAN interface 'eth0'
set firewall group interface-group WAN interface 'eth0.70'
set firewall group interface-group WAN interface 'eth0.70,eth0'
set firewall group network-group NET-LAN-v4 network '192.168.1.0/24'
set firewall group network-group NET-LAN-v4 network '172.27.63.0/24'
set firewall ipv4 forward filter rule 100 action 'jump'
set firewall ipv4 forward filter rule 100 destination group network-group 'NET-LAN-v4'
set firewall ipv4 forward filter rule 100 inbound-interface group 'WAN'
set firewall ipv4 forward filter rule 100 jump-target 'OUTSIDE-IN'
set firewall ipv4 input filter default-action 'drop'
set firewall ipv4 input filter rule 20 action 'jump'
set firewall ipv4 input filter rule 20 destination port '22'
set firewall ipv4 input filter rule 20 jump-target 'vyos_mgmt'
set firewall ipv4 input filter rule 20 protocol 'tcp'
set firewall ipv4 input filter rule 30 action 'accept'
set firewall ipv4 input filter rule 30 icmp type-name 'echo-request'
set firewall ipv4 input filter rule 30 protocol 'icmp'
set firewall ipv4 input filter rule 30 state 'new'
set firewall ipv4 input filter rule 40 action 'accept'
set firewall ipv4 input filter rule 40 destination port '53'
set firewall ipv4 input filter rule 40 protocol 'tcp_udp'
set firewall ipv4 input filter rule 40 source group network-group 'NET-LAN-v4'
set firewall ipv4 input filter rule 50 action 'accept'
set firewall ipv4 input filter rule 50 source address '127.0.0.0/8'
set firewall ipv4 name OUTSIDE-IN default-action 'drop'
set firewall ipv4 name vyos_mgmt default-action 'return'
set firewall ipv4 name vyos_mgmt rule 15 action 'accept'
set firewall ipv4 name vyos_mgmt rule 15 inbound-interface group 'LAN'
set firewall ipv4 name vyos_mgmt rule 20 action 'drop'
set firewall ipv4 name vyos_mgmt rule 20 inbound-interface group 'WAN'
set interfaces ethernet eth0 address 'dhcp'
set interfaces ethernet eth0 description 'WAN1'
set interfaces ethernet eth0 dhcp-options default-route-distance '10'
set interfaces ethernet eth0 hw-id '00:1b:21:38:50:3d'
set interfaces ethernet eth0 offload gro
set interfaces ethernet eth0 offload gso
set interfaces ethernet eth0 offload sg
set interfaces ethernet eth0 offload tso
set interfaces ethernet eth0 vif 70 address 'dhcp'
set interfaces ethernet eth0 vif 70 description 'WAN2'
set interfaces ethernet eth0 vif 70 dhcp-options default-route-distance '200'
set interfaces ethernet eth1 address '192.168.1.1/24'
set interfaces ethernet eth1 description 'LAN'
set interfaces ethernet eth1 hw-id '00:1b:21:38:50:3c'
set interfaces ethernet eth1 offload gro
set interfaces ethernet eth1 offload gso
set interfaces ethernet eth1 offload sg
set interfaces ethernet eth1 offload tso
set interfaces ethernet eth1 vif 2763 address '172.27.63.1/24'
set interfaces ethernet eth1 vif 2763 description 'VLAN2763-IOT'
set interfaces loopback lo
set load-balancing wan flush-connections
set load-balancing wan interface-health eth0 failure-count '1'
set load-balancing wan interface-health eth0 nexthop 'dhcp'
set load-balancing wan interface-health eth0 success-count '1'
set load-balancing wan interface-health eth0 test 0 resp-time '3'
set load-balancing wan interface-health eth0 test 0 target '8.8.8.8'
set load-balancing wan interface-health eth0 test 0 ttl-limit '1'
set load-balancing wan interface-health eth0 test 0 type 'ping'
set load-balancing wan interface-health eth0.70 failure-count '1'
set load-balancing wan interface-health eth0.70 nexthop 'dhcp'
set load-balancing wan interface-health eth0.70 success-count '1'
set load-balancing wan interface-health eth0.70 test 0 resp-time '3'
set load-balancing wan interface-health eth0.70 test 0 target '1.1.1.1'
set load-balancing wan interface-health eth0.70 test 0 ttl-limit '1'
set load-balancing wan interface-health eth0.70 test 0 type 'ping'
set load-balancing wan rule 9 destination address '172.27.63.0/24'
set load-balancing wan rule 9 exclude
set load-balancing wan rule 9 inbound-interface 'eth1'
set load-balancing wan rule 9 source address '192.168.1.0/24'
set load-balancing wan rule 10 failover
set load-balancing wan rule 10 inbound-interface 'eth1'
set load-balancing wan rule 10 interface eth0 weight '100'
set load-balancing wan rule 10 interface eth0.70 weight '10'
set load-balancing wan rule 10 protocol 'all'
set nat source rule 100 outbound-interface name 'eth0'
set nat source rule 100 source group network-group 'NET-LAN-v4'
set nat source rule 100 translation address 'masquerade'
set nat source rule 110 outbound-interface name 'eth0.70'
set nat source rule 110 source group network-group 'NET-LAN-v4'
set nat source rule 110 translation address 'masquerade'
set policy route PBR interface 'eth1'
set policy route PBR rule 1 destination port '3724,1119,6012'
set policy route PBR rule 1 protocol 'tcp_udp'
set policy route PBR rule 1 set table '11'
set protocols static route 0.0.0.0/0 dhcp-interface 'eth0'
set protocols static route 1.1.1.1/32 dhcp-interface 'eth0.70'
set protocols static route 8.8.8.8/32 dhcp-interface 'eth0'
set protocols static table 10 route 0.0.0.0/0 dhcp-interface 'eth0'
set protocols static table 11 route 0.0.0.0/0 dhcp-interface 'eth0.70'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 lease '86400'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 option default-router '172.27.63.1'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 option domain-name 'vyos.iot'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 option name-server '172.27.63.1'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 range 0 start '172.27.63.50'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 range 0 stop '172.27.63.100'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping iRobot ip-address '172.27.63.201'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping iRobot mac '4c:b9:ea:39:53:72'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping shelly-bad ip-address '172.27.63.205'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping shelly-bad mac '48:55:19:d9:4c:31'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping shelly-plug ip-address '172.27.63.204'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping shelly-plug mac 'b0:b2:1c:19:fd:00'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping shelly-schlaf ip-address '172.27.63.203'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping shelly-schlaf mac '48:55:19:d9:9e:83'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping sonoff-aqua ip-address '172.27.63.206'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 static-mapping sonoff-aqua mac '3c:e9:0e:8a:38:50'
set service dhcp-server shared-network-name IOT subnet 172.27.63.0/24 subnet-id '2'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 lease '86400'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 option default-router '192.168.1.1'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 option domain-name 'vyos.lan'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 option name-server '192.168.1.1'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 range 0 start '192.168.1.100'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 range 0 stop '192.168.1.200'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 static-mapping docker ip-address '192.168.1.220'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 static-mapping docker mac 'ba:66:cf:44:8a:34'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 static-mapping homeass ip-address '192.168.1.115'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 static-mapping homeass mac '02:c9:8b:b9:29:5f'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 static-mapping kiwork ip-address '192.168.1.90'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 static-mapping kiwork mac 'f8:b4:6a:87:ec:46'
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 subnet-id '1'
set service dns forwarding allow-from '192.168.1.0/24'
set service dns forwarding allow-from '172.27.63.0/24'
set service dns forwarding cache-size '0'
set service dns forwarding listen-address '192.168.1.1'
set service dns forwarding listen-address '172.27.63.1'
set service ntp allow-client address '127.0.0.0/8'
set service ntp allow-client address '169.254.0.0/16'
set service ntp allow-client address '10.0.0.0/8'
set service ntp allow-client address '172.16.0.0/12'
set service ntp allow-client address '192.168.0.0/16'
set service ntp allow-client address '::1/128'
set service ntp allow-client address 'fe80::/10'
set service ntp allow-client address 'fc00::/7'
set service ntp server time1.vyos.net
set service ntp server time2.vyos.net
set service ntp server time3.vyos.net
set service ssh listen-address '192.168.1.1'
set service ssh port '22'
set system config-management commit-revisions '100'
set system console device ttyS0 speed '115200'
set system host-name 'vyos'
set system option keyboard-layout 'de'
set system syslog global facility all level 'info'
set system syslog global facility local7 level 'debug'
set system time-zone 'Europe/Vienna'