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

    Port Forwarding Issue

    Scheduled Pinned Locked Moved NAT
    13 Posts 6 Posters 5.6k 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.
    • S
      sintar
      last edited by

      try this not sure if it will work

      pfsensenatrules.jpg
      pfsensenatrules.jpg_thumb
      pfsensenatrules.jpg_thumb

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

        Don't use external adress "any". You need to bind it to the WAN-Adress. any is only for some special application (for example when redirectring traffic to any external adress on port x back to a proxy for example).

        1 Reply Last reply Reply Quote 0
        • S
          sunny
          last edited by

          Hoba, do you mind walk me thru the process please?

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

            Can you paste your setings for the firewallrule and the portforwarding that you created please?

            1 Reply Last reply Reply Quote 0
            • M
              mobilemrice
              last edited by

              Hi Hoba,

              I am also encountering issues with my NAT settings.  Can you please look at the attached settings?  Thank you.

              ![NAT settings.gif](/public/imported_attachments/1/NAT settings.gif)
              ![NAT settings.gif_thumb](/public/imported_attachments/1/NAT settings.gif_thumb)
              ![NAT settings.gif_thumb](/public/imported_attachments/1/NAT settings.gif_thumb)

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

                The NAT entry looks ok from the first sight. If you have an appropriate firewallrule in place that is allowing this traffic it should work. Also make sure you are at 1.0.1.

                1 Reply Last reply Reply Quote 0
                • M
                  mobilemrice
                  last edited by

                  What type of rule would allow visitors from the WAN to the OPT1 net with the host using the NAT I set above?

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

                    Interface WAN
                    protocol tcp/udp
                    source any
                    destination <private ip="" of="" forwarded="" client="">port <destination port="" at="" the="" client="">gateway default</destination></private>

                    1 Reply Last reply Reply Quote 0
                    • P
                      PinoVero
                      last edited by

                      i have the same itentical problem, except for…

                      i set 2 firewall rules:

                      prot: * from: * port: * to: 192.168.0.40 port: * gate: *    (windows machine)
                      prot: * from: * port: * to: 192.168.0.200 port: * gate: *    (linux machine)

                      so i'll be sure that i can transfer any packets from and to any ports to these 2 machines

                      now, i need to open only 1 or 2 single port to forward to, so i make a nat rule like this:
                      if: wan prot: tcp port: 4889 nat: 192.168.0.40 (ext: 2.247.bla.bla) port: 4889  (correctly WORK!!)
                      if: wan prot: tcp port: 4889 nat: 192.168.0.200 (ext: 2.247.bla.bla) port: 4889  (DON'T WORK!!)

                      So, why nat don't like to linux port forward???

                      1 Reply Last reply Reply Quote 0
                      • P
                        PinoVero
                        last edited by

                        oky, the reason is that

                        on the linux machine i have not jet configured the proper gateway!

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