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

    Update to 2.2 new SSH NAT not working.

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    28 Posts 4 Posters 2.8k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      More details please. Screenshots of working/not working rules if possible.  :)

      Steve

      1 Reply Last reply Reply Quote 0
      • R
        rdnd
        last edited by

        @stephenw10:

        More details please. Screenshots of working/not working rules if possible.  :)

        Steve

        Screenshot of rules…

        pfsense-fw-rules.PNG
        pfsense-fw-rules.PNG_thumb

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          You are trying to NAT one port to two different boxes (.182 and .251) and in addition run it locally on the same port on the pfsense box itself. No idea how you suppose this to work really.  ::)

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            These are firewall rules, I assume you are forwarding on different incoming ports? Can we see your port forward table also?
            Which rule isn't working here?

            Steve

            1 Reply Last reply Reply Quote 0
            • R
              rdnd
              last edited by

              @stephenw10:

              These are firewall rules, I assume you are forwarding on different incoming ports? Can we see your port forward table also?
              Which rule isn't working here?

              Steve

              I am forwarding on different incoming public IPs.  The last rule is not working.  The NAT Port forward entry is on a different public IP.  I have similar NAT from public IP to LAN that are working fine.

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Post the port forward tab screenshot.

                1 Reply Last reply Reply Quote 0
                • R
                  rdnd
                  last edited by

                  @rdnd:

                  @stephenw10:

                  These are firewall rules, I assume you are forwarding on different incoming ports? Can we see your port forward table also?
                  Which rule isn't working here?

                  Steve

                  I am forwarding on different incoming public IPs.  The last rule is not working.  The NAT Port forward entry is on a different public IP.  I have similar NAT from public IP to LAN that are working fine.

                  pfsense-fw-NAT.PNG
                  pfsense-fw-NAT.PNG_thumb

                  1 Reply Last reply Reply Quote 0
                  • KOMK
                    KOM
                    last edited by

                    You have an IP Alias set up for  .36?

                    1 Reply Last reply Reply Quote 0
                    • R
                      rdnd
                      last edited by

                      @KOM:

                      You have an IP Alias set up for  .36?

                      Yep.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        You have logging enabled on that firewall rule, I take it you're not seeing anything being logged?

                        Since you're not using the .36 VIP for anything else it's function seems in doubt.

                        Any reason you chose not to use a linked firewall rule for this last entry?

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • R
                          rdnd
                          last edited by

                          @stephenw10:

                          You have logging enabled on that firewall rule, I take it you're not seeing anything being logged?

                          Since you're not using the .36 VIP for anything else it's function seems in doubt.

                          Any reason you chose not to use a linked firewall rule for this last entry?

                          Steve

                          .36 is working, it's part of a block of public IPs.  I have now linked the rule.  Still no SSH to LAN from WAN.  Do I need to restart system?

                          1 Reply Last reply Reply Quote 0
                          • R
                            rdnd
                            last edited by

                            @rdnd:

                            @stephenw10:

                            You have logging enabled on that firewall rule, I take it you're not seeing anything being logged?

                            Since you're not using the .36 VIP for anything else it's function seems in doubt.

                            Any reason you chose not to use a linked firewall rule for this last entry?

                            Steve

                            .36 is working, it's part of a block of public IPs.  I have now linked the rule.  Still no SSH to LAN from WAN.  Do I need to restart system?

                            Yes no log for .36.

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              You shouldn't have to reboot (though it won't hurt) but you should clear the state table if there's a chance you've got an existing state.

                              If you still see nothing try running a packet capture on WAN to make sure traffic is actually arriving.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • R
                                rdnd
                                last edited by

                                @stephenw10:

                                You shouldn't have to reboot (though it won't hurt) but you should clear the state table if there's a chance you've got an existing state.

                                If you still see nothing try running a packet capture on WAN to make sure traffic is actually arriving.

                                Steve

                                I cleared the state table and still unable to make SSH connection.  Will run packet capture.

                                Thanks!

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rdnd
                                  last edited by

                                  After running a packet capture on public IP .36 there is no activity.  I can ping the public IP .36 from within the LAN.  The virtual IP .36 has been correctly configured in the Firewall > Virtual IP Addresses.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    rdnd
                                    last edited by

                                    @rdnd:

                                    After running a packet capture on public IP .36 there is no activity.  I can ping the public IP .36 from within the LAN.  The virtual IP .36 has been correctly configured in the Firewall > Virtual IP Addresses.

                                    Thinking that it may be the LAN/System blocking the SSH connection I changed the 10.0.0.45 to .249 on a VM.  Then attempted outside access on .36 no go.  On the LAN not a problem to SSH to .45 or .249.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      rdnd
                                      last edited by

                                      @rdnd:

                                      @rdnd:

                                      After running a packet capture on public IP .36 there is no activity.  I can ping the public IP .36 from within the LAN.  The virtual IP .36 has been correctly configured in the Firewall > Virtual IP Addresses.

                                      Thinking that it may be the LAN/System blocking the SSH connection I changed the 10.0.0.45 to .249 on a VM.  Then attempted outside access on .36 no go.  On the LAN not a problem to SSH to .45 or .249.

                                      I have changed the SSH Port number on the server to something other than 22.  Changed the public IP to .35 and now am able to access the server from outside the LAN.  Still need to know why the .36 is not functioning.

                                      Thanks!

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        You're seeing no traffic coming into the WAN side at all for the .36 VIP? If that's really the case then it has nothing to do with the LAN side in fact it's more likely some upstream routing issue, a stale ARP cache perhaps.
                                        How exactly did you run the packet capture?

                                        Steve

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          rdnd
                                          last edited by

                                          @stephenw10:

                                          You're seeing no traffic coming into the WAN side at all for the .36 VIP? If that's really the case then it has nothing to do with the LAN side in fact it's more likely some upstream routing issue, a stale ARP cache perhaps.
                                          How exactly did you run the packet capture?

                                          Steve

                                          I went to Diagnostice then Packet Capture.  Then initiated a SSH session from outside on the public IP of .36.  Nothing.  Did the same packet capture via LAN IP .45 and the packet capture showed all packets.

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            If you run a packet capture on the WAN you should see packets arriving for the .36 VIP. If you don't then either the VIP isn't setup correctly or the traffic simply isn't arriving to be forwarded in the first place.

                                            Steve

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