Goal: Trying to get one single device to connect through to Wireguard.
Issue: PBR is not listening to my settings whatsoever no matter what configuration I give it. I even opened up the Firewall entirely for wg0 to see if it was the problem, however, no. For context, I am using odhcpd for my DHCP; dnsmasq is not installed, and DNS goes to AdguardHome automatically by DHCP.
/etc/config/dhcp:
config dhcp 'lan'
option interface 'lan'
option start '2'
option limit '250'
option leasetime '12h'
option dhcpv4 'server'
option force '1'
config odhcpd 'odhcpd'
option maindhcp '1'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config host
option name 'PC'
option ip '10.0.0.2'
option mac 'xxx'
config host
option name 'AP'
option ip '10.0.0.3'
option mac 'xxx'
/etc/config/firewall:
config defaults
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option synflood_protect '1'
option drop_invalid '1'
option flow_offloading '1'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config forwarding
option src 'lan'
option dest 'wan'
config include 'pbr'
option fw4_compatible '1'
option type 'script'
option path '/usr/share/pbr/firewall.include'
config zone
option name 'wg0'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
list network 'wg0'
config zone
option name 'wan'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
list network 'wan'
config forwarding
option src 'lan'
option dest 'wg0'
/etc/config/network:
config interface 'loopback'
option device 'lo'
option proto 'static'
list ipaddr '127.0.0.1/8'
config globals 'globals'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
option ipv6 '0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
list ipaddr '10.0.0.1/24'
list dns '10.0.0.1'
option delegate '0'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
option hostname '*'
option peerdns '0'
list dns '10.0.0.1'
config interface 'wg0'
option proto 'wireguard'
option private_key 'xxxx'
list addresses 'xxxx'
list dns '10.0.0.1'
option mtu '1420'
config wireguard_wg0
option description 'Imported peer configuration'
option public_key 'xxxx'
option endpoint_host 'xxxx'
option endpoint_port '51820'
list allowed_ips '0.0.0.0/0'
option route_allowed_ips '0' # Yes I have tried both whitelisting my entire LAN and whitelisting only the device with this, neither works.
/etc/config/pbr:
config pbr 'config'
option debug_dnsmasq '0'
option enabled '1'
option verbosity '2'
option strict_enforcement '1'
option resolver_set 'none'
list resolver_instance '*'
option ipv6_enabled '0'
option boot_timeout '30'
option rule_create_option 'add'
option procd_boot_trigger_delay '5000'
option procd_reload_delay '1'
option webui_show_ignore_target '0'
option nft_rule_counter '0'
option nft_set_auto_merge '1'
option nft_set_counter '0'
option nft_set_flags_interval '1'
option nft_set_flags_timeout '0'
option nft_set_policy 'performance'
list webui_supported_protocol 'all'
list webui_supported_protocol 'tcp'
list webui_supported_protocol 'udp'
list webui_supported_protocol 'tcp udp'
list webui_supported_protocol 'icmp'
config policy
option name 'PC'
option src_addr '10.0.0.2/32'
option interface 'wg0'
config policy
option name 'Other Requests'
option src_addr '10.0.0.0/24'
option interface 'wan'