Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Localhost services - how to use policy routing?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 3 Posters 1.1k Views 3 Watching
    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

            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 Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy