-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pbr] issue: PBR intermittently ineffective after a few hours and all traffic routed over VPN #193
Comments
I made some tweaks to my |
Thanks for being proactive on this. What's the reason for the Also, if you're already on the full nft version you may want to switch to a newer |
Reopening because this is still an issue for me.
I'm not sure I understand this. Are you saying that there is overlap of IPs among
I tried following your advice and now appear to be in a worse spot. More specifically, I added your repo per these instructions. Then I did
|
The only reason I've seen nft file fail to install is the IP overlap which nft doesn't handle gracefully. You can make the new version work same as before by setting You can get additional information on the failure by keeping pbr in |
Okay, I think these came from me fiddling with stuff between my original observation of this issue. I filed #194 as a result of that investigation. I've now removed/corrected my entries to comply with the work-around described in that issue, so no more
... and ...
... all with the same effect. Once in that state, the only cure seems to be rebooting the router. As an aside, after rebooting, and routing has been reestablished, doing |
/etc/init.d/pbr stop
# wait for completion
/etc/init.d/network restart
# wait for completion; now all traffic is routed through `wan`
/etc/init.d/openvpn restart
# manually wait for "Initialization Sequence Completed" in logs and verify all traffic now routed to `vpn0`
/etc/init.d/pbr start
# wait for completion What's the output of the start command you ran last and the |
@mtompkins this issue is about pbr not working a few hours after start, you're mentioning something about immediately after reboot, those are not the same issues. If you want me to have a look at what's happening on your system, then:
|
@stangri While I was not clear in that there is also a failure after start in my most recent post, I was trying to provide some information in the event of commonality between the previous poster and my own as I expressed I have the same experience over time. Thank you for offering to look at my issue, but my only intent was to try and help you root cause this one. |
Describe the bug
I have a router configured to connect three LANs (
lan
,lan2
, andguest
) to two OpenVPN clients (vpn0
andvpn1
). I usepbr
to whitelist some domains and subdomains to be routed over my WAN or my second VPN. Since upgradingpbr
recently (from about a year ago) and changing myresolve_set
argument fromdnsmasq.ipset
todnsmasq.nftset
after domain resolution stopped working, it seemspbr
now stops having an effect after a short time (1-2 hours), and only rebooting the router (sometimes/etc/init.d/network restart
) will help. Restartingpbr
does not. It's unclear to me why/when this happens.Your configs
/etc/config/dhcp
/etc/config/network
/etc/config/firewall
/etc/config/pbr
To Reproduce/Expected Behavior
After a reboot, everything works as expected:
After some period of time (usually 1-2 hours) without intervention, things deteriorate, and all traffic is routed through
vpn0
and/etc/init.d/pbr restart
does not fix it:I can't find anything of note in the logs after I notice this happening.
Policy Routing run-time information
/etc/init.d/pbr reload
withverbosity
set to 2:/etc/init.d/pbr status
:The text was updated successfully, but these errors were encountered: