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

    Port forwarding with two WAN

    Routing and Multi WAN
    2
    7
    519
    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.
    • N
      n_oandasan
      last edited by n_oandasan

      Hello Experts,

      I would like to know how to port forwarding in two different wan.

      Let me give you a brief outlook of my network.

      I have to Wan (source of Internet) 1. static ip. 2. dynamic. I combine them in gateway groups. Now i want to forward port with the static ip. How can i do that. Is that possible. Is that the good Idea?

      1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by Rico

        Just forward your port on WAN1 with the static IP and done. What's the problem or concern?
        https://www.netgate.com/docs/pfsense/book/multiwan/multi-wan-and-nat.html#multi-wan-and-port-forwarding

        -Rico

        1 Reply Last reply Reply Quote 0
        • N
          n_oandasan
          last edited by

          i tried but when the local computer used the ip of the dynamic wan it cannot connect to the services like mysql.

          1 Reply Last reply Reply Quote 0
          • RicoR
            Rico LAYER 8 Rebel Alliance
            last edited by

            So you have problems when connecting to your portforward from the internal network?
            Setup port reflection or better split DNS: https://www.netgate.com/docs/pfsense/nat/accessing-port-forwards-from-local-networks.html

            -Rico

            1 Reply Last reply Reply Quote 0
            • N
              n_oandasan
              last edited by

              thank you sir let me try.

              1 Reply Last reply Reply Quote 0
              • N
                n_oandasan
                last edited by

                great.. thanks... now how can i route all traffic on WAN1(dynamic) except certain protocols to WAN2(static)?

                1 Reply Last reply Reply Quote 0
                • RicoR
                  Rico LAYER 8 Rebel Alliance
                  last edited by

                  Match your traffic in firewall rules and switch the gateway (display advanced) to any gateway or gateway group you like.
                  0_1549392414639_pfSense_Policy-routing.png
                  https://docs.netgate.com/pfsense/en/latest/routing/directing-traffic-with-policy-routing.html

                  -Rico

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