Pbr through luci-pbr

im trying to get pbr to work so i can access my isps login page which i need to do from time to time when it gets disconnected to reconnect to internet but i cant seem to get it to dodge the wireguard vpn im running by default for all outgoing.

pbr settings:

root@stretchy:/home/strange# uci show pbr
pbr.config=pbr
pbr.config.verbosity='2'
pbr.config.strict_enforcement='1'
pbr.config.resolver_set='none'
pbr.config.ipv6_enabled='0'
pbr.config.ignored_interface='vpnserver' 'wgserver'
pbr.config.boot_timeout='30'
pbr.config.rule_create_option='add'
pbr.config.procd_reload_delay='1'
pbr.config.webui_supported_protocol='all' 'tcp' 'udp' 'tcp udp' 'icmp'
pbr.config.enabled='1'
pbr.config.resolver_ipset='none'
pbr.config.webui_show_ignore_target='1'
pbr.@include[0]=include
pbr.@include[0].path='/usr/share/pbr/pbr.user.aws'
pbr.@include[0].enabled='0'
pbr.@include[1]=include
pbr.@include[1].path='/usr/share/pbr/pbr.user.netflix'
pbr.@include[1].enabled='0'
pbr.@policy[0]=policy
pbr.@policy[0].name='whatsmyip'
pbr.@policy[0].dest_addr='checkip.dyndns.com'
pbr.@policy[0].src_addr='checkip.dyndns.com'
pbr.@policy[0].interface='wan'
pbr.@policy[1]=policy
pbr.@policy[1].name='gwave '
pbr.@policy[1].dest_addr='103.29.249.243 1.254.254.254'
pbr.@policy[1].interface='wan'
pbr.@policy[1].src_addr='103.29.249.243 1.254.254.254'

i am using the checkip.dyndns.com so i can see if it shows me my wan ip or vpn ip so far i only see vpn ip everywhere
help would be greatly appreciated

Remove the source domains and IPs from each policy.

1 Like

same result

pbr.config=pbr
pbr.config.verbosity='2'
pbr.config.strict_enforcement='1'
pbr.config.resolver_set='none'
pbr.config.ipv6_enabled='0'
pbr.config.ignored_interface='vpnserver' 'wgserver'
pbr.config.boot_timeout='30'
pbr.config.rule_create_option='add'
pbr.config.procd_reload_delay='1'
pbr.config.webui_supported_protocol='all' 'tcp' 'udp' 'tcp udp' 'icmp'
pbr.config.enabled='1'
pbr.config.resolver_ipset='none'
pbr.config.webui_show_ignore_target='1'
pbr.@include[0]=include
pbr.@include[0].path='/usr/share/pbr/pbr.user.aws'
pbr.@include[0].enabled='0'
pbr.@include[1]=include
pbr.@include[1].path='/usr/share/pbr/pbr.user.netflix'
pbr.@include[1].enabled='0'
pbr.@policy[0]=policy
pbr.@policy[0].name='whatsmyip'
pbr.@policy[0].dest_addr='checkip.dyndns.com'
pbr.@policy[0].interface='wan'
pbr.@policy[1]=policy
pbr.@policy[1].name='gwave '
pbr.@policy[1].dest_addr='103.29.249.243 1.254.254.254'
pbr.@policy[1].interface='wan'