Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Localhost services - how to use policy routing?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 3 Posters 486 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jarlel
      last edited by

      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!

      J DerelictD 2 Replies Last reply Reply Quote 0
      • J
        jarlel @jarlel
        last edited by

        @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?

        1 Reply Last reply Reply Quote 0
        • viktor_gV
          viktor_g Netgate
          last edited by

          There is some issues:
          https://redmine.pfsense.org/issues/5476

          You can select only the outgoing interface for the Squid Proxy package:

          Screenshot from 2021-05-04 10-55-03.png

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate @jarlel
            last edited by

            @jarlel Traffic is policy routed when it enters an interface.

            Traffic sourced from localhost never enters an interface so it cannot be policy routed.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.