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.