Wireguard allow IP range is too numerous

Dear all, I want to route traffic to a specific country through wireguard. I have this IP range file that is about 10k lines. It is unrealistic to put it in the allow IP config. Plus it changes from time to time so I periodically update the file.

Can someone points me a direction please? I am out of ideas.

Thank you!

You could use policy based routing and a custom user file

This allows, for example, to add large numbers of domains/IP addresses to ipsets without manually adding all of them to the config file.

1 Like

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