Problem with pbr rule from file

Hi,
I'm trying to provide a IP list from a txt file, but its not working.
PBR is treating it like I left the field empty, it routes all traffic via VPN interface, it ignores the list provided.

config policy
        option name 'whatsapp'
        option src_addr '192.168.5.0/24'
        option dest_addr 'https://raw.githubusercontent.com/HybridNetworks/whatsapp-cidr/main/WhatsApp/whatsapp_cidr_ipv4.txt'
        option interface 'VPN'
        option proto 'tcp udp'

ok I fixed it.
I guess it doesn't like the commented lines (like ###this is a file) and/or the fact IPs are each in new line, not space separated. so I am doing wget, grep the file and format it as space separated values and then getting it with curl from file:///root/whatsapp.txt
now it works as expected

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.