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

    Help Port Forward not working

    Scheduled Pinned Locked Moved NAT
    14 Posts 3 Posters 2.4k 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.
    • H
      hungkh
      last edited by

      In Firewall/NAT, I set NAT Reflection mode for port forwards: Enable (Pure NAT) and enable automatic outbound NAT for Reflection

      ![nat config.png](/public/imported_attachments/1/nat config.png)
      ![nat config.png_thumb](/public/imported_attachments/1/nat config.png_thumb)

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        You didn't seem to link the nat to a firewall rule on the interface your wanting to nat from.. Are you testing it via nat reflection or from actual outside.  Your top forward has a link to firewall rule.

        Did you go through the troubleshooting doc - where are you failing?

        https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • H
          hungkh
          last edited by

          I was see link rule in firewall

          ![link rule firewall.png](/public/imported_attachments/1/link rule firewall.png)
          ![link rule firewall.png_thumb](/public/imported_attachments/1/link rule firewall.png_thumb)

          1 Reply Last reply Reply Quote 0
          • H
            hungkh
            last edited by

            I am newbie in Pfsense and i don't know "testing it via nat reflection or from actual outside". Please help me about that

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              are you inside your network hitting your public IP hoping to be reflected back in… Or are you testing from outside your network to your public IP?

              That port does not match any of your forwards.. Your post shows port 3299 but your forwards are 3306

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • H
                hungkh
                last edited by

                When I telnet IP public, its fail

                nat.png
                nat.png_thumb

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  you telnet from where?

                  And what is wanvpnt?  Is that some vpn interface.. Are they forwarding inbound.. Go through the doc..  Validate that the traffic is even hitting pfsense to be able to forward..

                  It really should only take about 30 seconds to figure out what is wrong with a port forward.. Pfsense can not forward what it is not seeing is a very common issue..  Wrong port used, or server has its own firewall blocking the traffic, etc..

                  A 30 second sniff on your wan and then lan interface tells you if the traffic is being seen and forwarded to what you want to forward it to, etc.

                  canyouseeme.org is a handy site to validate a port is open from outside your network..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • H
                    hungkh
                    last edited by

                    I am telnet from Internet
                    WANVNPT is interface WAN. I have two interfaces WAN, and running load balancing. And WANVNPT is not default
                    When I telnet from Internet, port is close in pfsense
                    Before i reboot pfsense, its action normal
                    After reboot, i can't NAT.

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

                      /var/log: pfctl -sn
                      no nat proto carp all
                      nat-anchor "natearly/" all
                      nat-anchor "natrules/
                      " all
                      nat on pppoe1 from <tonatsubnets>to any port = isakmp -> (pppoe1) round-robin static-port
                      nat on pppoe1 from <tonatsubnets>to any -> (pppoe1) port 1024:65535 round-robin
                      nat on pppoe2 from <tonatsubnets>to any port = isakmp -> (pppoe2) round-robin static-port
                      nat on pppoe2 from <tonatsubnets>to any -> (pppoe2) port 1024:65535 round-robin
                      no rdr proto carp all
                      rdr-anchor "relayd/" all
                      rdr-anchor "tftp-proxy/
                      " all</tonatsubnets></tonatsubnets></tonatsubnets></tonatsubnets>

                      Port forwards are rdr rules and will come after that. Did you trim the output? If so you didn't show the rules you are asking about.

                      Your original image did not show port 3299. What specific port forward is not working?

                      Look at - really look at - all of these things:

                      https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

                      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
                      • H
                        hungkh
                        last edited by

                        original image is a part of NAT.
                        I am trying NAT port forward 3299 via WANVNPT (its WAN interface)
                        Its all show when i check nat firewall use command line

                        /var/log: pfctl -sn
                        no nat proto carp all
                        nat-anchor "natearly/" all
                        nat-anchor "natrules/
                        " all
                        nat on pppoe1 from <tonatsubnets>to any port = isakmp -> (pppoe1) round-robin static-port
                        nat on pppoe1 from <tonatsubnets>to any -> (pppoe1) port 1024:65535 round-robin
                        nat on pppoe2 from <tonatsubnets>to any port = isakmp -> (pppoe2) round-robin static-port
                        nat on pppoe2 from <tonatsubnets>to any -> (pppoe2) port 1024:65535 round-robin
                        no rdr proto carp all
                        rdr-anchor "relayd/" all
                        rdr-anchor "tftp-proxy/
                        " all</tonatsubnets></tonatsubnets></tonatsubnets></tonatsubnets>

                        1 Reply Last reply Reply Quote 0
                        • H
                          hungkh
                          last edited by

                          [Solved]

                          I installed pfsense version 2.3.4 and restore config. Its working

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