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

    Port based routing question

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 2.2k 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.
    • D
      djmatze
      last edited by

      one Question:

      I have an pfsense setup 1x wan (10.64.1.101, gw 10.64.1.1) and 1xlan (192.168.x.x)

      now I need to route traffic from lan interface (only from one port) to another gateway on the wan interface (10.64.1.163)
      the rest should go trough the standard gw.
      Is there an easy way to do this? ???

      thanks for your reply(s)

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        This is kind of a hack but it works:

        Create a loadbalancing-pool with only one entry: your WAN.

        Download the config.xml, find the loadbalancing-part and replace the WAN-part with your other gateway.
        Restore the modified config.xml.
        Now if you use in a firewall-rule as gateway this balancing-pool, traffic handled by this rule will be directed to your second gateway.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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