[SOLVED] PBR question with Wireguard

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
howard@sci1.com
DD-WRT Novice


Joined: 11 Jul 2022
Posts: 44

PostPosted: Tue Mar 21, 2023 5:35    Post subject: [SOLVED] PBR question with Wireguard Reply with quote
DD-WRT build 50474 Netgear R9000

Successfully running Wireguard VPN. Thank you, DD-WRT.

Question about PBR configuration on Tunnel page:

Route selected sources via WAN automatically adds iptables rules that work correctly. Route selected destinations via WAN does not automatically add iptables rules, and does not seem to work until I manually create iptables rules. Maybe I'm missing something?

Is this expected behavior or a bug?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Tue Mar 21, 2023 7:23    Post subject: Reply with quote
Route selected destinations via WAN uses routing rules and not iptables rules.

For each destination you add a routing rule will be added to route that destination via the WAN.

Edit: before you go trouble shooting upgrade to the most recent build as there have been a lot of changes

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
howard@sci1.com
DD-WRT Novice


Joined: 11 Jul 2022
Posts: 44

PostPosted: Tue Mar 21, 2023 21:07    Post subject: Reply with quote
Upgraded just now to r52081.

Routes for PBR destinations are now auto-added to the route table when configured on the tunnels page. Didn't do that on r50474. Deleted the iptables configurations and everything still works great.

Yippee! and thank you.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum