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

    External ssh login to LAN computer

    Scheduled Pinned Locked Moved OpenVPN
    27 Posts 4 Posters 1.5k 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.
    • Z
      zkab @johnpoz
      last edited by

      Sorry ... I have 'Version 2.5.2-RELEASE (amd64)'
      I will check the link ...

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User @zkab
        last edited by

        @zkab said in External ssh login to LAN computer:

        can 'ssh login' to (IP 192.168.1.y) and that is the only access to my LAN

        ok, i can help you let's go to your firewall rule and your openvpn configuration please.

        Z ? 2 Replies Last reply Reply Quote 0
        • Z
          zkab @A Former User
          last edited by zkab

          Maybe I have mixed up things with OpenVPN.
          Basically what I want is to 'ssh login' to a LAN computer 192.168.1.x from an external IP from Internet.
          Is there away to set up a rule that allows the connection ... without involving OpenVPN.
          Since ssh is running I have tested to 'ssh login' to my WAN address and it works OK.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @A Former User
            last edited by

            @silence post delete?

            Z 1 Reply Last reply Reply Quote 0
            • Z
              zkab @A Former User
              last edited by

              Pls check post above ...

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @zkab
                last edited by A Former User

                @zkab
                ok. Easy go to NAT

                Firewall >> NAT>>Port Forward

                CONFIGURE YOUR NAT RULE...DO YOU KNOW HOW TO DO IT?

                76c45819-6348-4205-b801-52efbb91318a-image.png

                Z 1 Reply Last reply Reply Quote 1
                • Z
                  zkab @A Former User
                  last edited by

                  @silence Not sure how to do that ... looked at Firewall>>NAT>>POrt Forward

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @zkab
                    last edited by

                    @zkab, use the example of the previous publication and then send a screenshot of how it turned out.

                    Z 1 Reply Last reply Reply Quote 1
                    • Z
                      zkab @A Former User
                      last edited by

                      @silence I have Port=45007 in my systemNAT.png

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zkab @zkab
                        last edited by

                        @zkab Uppdated ...NAT.png

                        Z ? 2 Replies Last reply Reply Quote 0
                        • Z
                          zkab @zkab
                          last edited by

                          Where do specify the incoming 'ssh login' IP-address?

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @zkab
                            last edited by

                            @zkab Everything working?

                            Don't forget to click above if the answer helped you. please

                            1 Reply Last reply Reply Quote 1
                            • ?
                              A Former User @zkab
                              last edited by

                              @zkab en source addres
                              Display Advanced

                              cb62f632-62f1-4303-b4c9-503cc53e1335-image.png

                              7a22a9e8-9e5a-4cef-83ed-57e2d8e90644-image.png

                              Z 1 Reply Last reply Reply Quote 1
                              • Z
                                zkab @A Former User
                                last edited by

                                @silence OK ... I will test it tomorrow when I have access to the computer ... Thanks for you support

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

                                  @zkab I would suggest you test before then, say open it back up to any IP. Then go to can you see me . org and test to that port.. Do you get green, that is open?

                                  If so then lock it back down to your source IP.

                                  Users quite often forget about host firewalls, so I would test that your seeing open from the public internet before locking it down, etc.

                                  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 1
                                  • ?
                                    A Former User @johnpoz
                                    last edited by

                                    @johnpoz said in External ssh login to LAN computer:

                                    I would suggest you test before then, say open it back up to any IP. Then go to can you see me . org and test to that port.. Do you get green, that is open?

                                    good idea.

                                    Z 1 Reply Last reply Reply Quote 0
                                    • Z
                                      zkab @A Former User
                                      last edited by

                                      @silence What do you think of this ... will it work? Should I disable OpenVPN rule or will port forwarding still work?

                                      nat.png nat-1.png

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

                                        @zkab said in External ssh login to LAN computer:

                                        Should I disable OpenVPN rule or will port forwarding still work?

                                        Do you still want to use openvpn connection for other stuff? If your not using openvpn, then I wouldn't run openvpn. If your not running openvpn then there is little need for the rule.

                                        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

                                        Z 1 Reply Last reply Reply Quote 0
                                        • Z
                                          zkab @johnpoz
                                          last edited by zkab

                                          @johnpoz This action is temorary so the support guy can 'ssh login' to my 192.168.1.13.
                                          After the problem is solved I will disable port forward for this incoming IP.
                                          I still need OpenVPN now and in the future ... question is will OpenVPN rule interfear & disturb to 'ssh login'?
                                          Should I disable it until the support problem is solved?

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

                                            @zkab no it wont interfere

                                            And yeah your ssh access for some tech support guy is prob much better then giving them vpn access that is for sure. And much easier to setup.

                                            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

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