Localhost services - how to use policy routing?
-
Hi all :-)
By default it looks like localhost services use default gateway on the WAN-side.
I need to enable policy routing for the local services - how can I achieve that? I have tried a floating rule, but without success. I am using curl locally to check for WAN IP-address change in a script, and need to use policy routing instead of default gateway.
Thanks in advance for any help!
-
@jarlel said in Localhost services - how to use policy routing?:
Hi all :-)
By default it looks like localhost services use default gateway on the WAN-side.
I need to enable policy routing for the local services - how can I achieve that? I have tried a floating rule, but without success. I am using curl locally to check for WAN IP-address change in a script, and need to use policy routing instead of default gateway.
Thanks in advance for any help!
Has anyone solved this in some way?
-
There is some issues:
https://redmine.pfsense.org/issues/5476You can select only the outgoing interface for the Squid Proxy package:

-
@jarlel Traffic is policy routed when it enters an interface.
Traffic sourced from localhost never enters an interface so it cannot be policy routed.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy