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

    Forcing port 21 traffic over a specific WAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 3 Posters 650 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.
    • hugoeyngH
      hugoeyng
      last edited by hugoeyng

      Hello, Friends.

      I want to force traffic to/from 21 port over one specific WAN.

      My pfSense has two WAN, one LAN, two Gateways (WAN1 and WAN2) and one Gateway Group (WAN1 Priority 1 + WAN2 Priority 1).

      I wish all traffic from/to port 21 over only one WAN.

      What is the better option? Static Route? a Firewall Rule?

      Thanks in advance for any tip.

      I love pfSense!

      Hugo Eyng
      Datamais Sistemas

      V NogBadTheBadN 2 Replies Last reply Reply Quote 0
      • V
        viragomann @hugoeyng
        last edited by

        @hugoeyng said in Forcing port 21 traffic over a specific WAN:

        I wish all traffic from/to port 21 over only one WAN.

        On the local pfSense you can only affect outgoing traffic, not incoming.
        For incoming you have to configure the public DNS accordingly.

        What is the better option? Static Route? a Firewall Rule?

        Static routes cannot be applied to certain ports, so you will have to go with policy routing.

        1 Reply Last reply Reply Quote 1
        • NogBadTheBadN
          NogBadTheBad @hugoeyng
          last edited by

          @hugoeyng FTP uses 2 ports 20 & 21, if it's running in active mode.

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          hugoeyngH 1 Reply Last reply Reply Quote 1
          • hugoeyngH
            hugoeyng @NogBadTheBad
            last edited by

            @NogBadTheBad what solution would you apply to my question? Firewall rule/policy routing or is there something better?

            I love pfSense!

            Hugo Eyng
            Datamais Sistemas

            NogBadTheBadN 1 Reply Last reply Reply Quote 0
            • NogBadTheBadN
              NogBadTheBad @hugoeyng
              last edited by

              @hugoeyng Where are the connections originating from, just your local lan ?

              If it was just the local lan, policy route port 20 & 21 on the local lan.

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              hugoeyngH 1 Reply Last reply Reply Quote 0
              • hugoeyngH
                hugoeyng @NogBadTheBad
                last edited by

                @NogBadTheBad All connections origin from local lan.

                I love pfSense!

                Hugo Eyng
                Datamais Sistemas

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