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

    How to handle Telnet access to industrial control appliance

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 155 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.
    • N
      NGUSER6947
      last edited by

      I need to have remote access to a piece of industrial control hardware that utilizes Telnet to access its user interface. Currently I have this on my LAN (only). The device is pretty recent but will not receive firmware updates from the manufacturer any longer.

      Minimally, I need read access; to that end I may explore some PuTTY scripting to have it run a report at some interval (with the info I need to view, less than 20 data points) and save it in my network where it would be picked up by my automatically-synced cloud storage and I could view the information that way. That's a real roundabout way though.

      I would really like read/write (command) access though via Telnet. Is nginx something I could use here? Or what should I do?

      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P
        patient0 @NGUSER6947
        last edited by

        @NGUSER6947 can't you get VPN access to that LAN, that's the most secure way.

        N 1 Reply Last reply Reply Quote 0
        • N
          NGUSER6947 @patient0
          last edited by

          @patient0 If I create a VPN on my pfSense does that force everything on my network to run through that VPN? I've only used VPNs from tbe client end (i.e. proton on all of my devices), so I don't have a good sense of how it would work on my oun router.

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

            @NGUSER6947 no creating a vpn does not force traffic through it.. so you are remote to this pfsense right - just vpn into pfsense, and then telnet to what you want to telnet to.

            You can setup your vpn to be as restrictive or open as you want - you could allow access to anything, or you could limit to only this telnet devices IP on telnet port.

            Another way less config needed would be to port forward to this telnet IP on pfsense wan, but only allow your specific source IP.. If you know the IP where you will be coming from.. This would be secure, but not as elegant of a solution. And the traffic over the internet would not be encrypted inside a vpn tunnel.

            Another way to skin the cat would be to ssh to pfsense wan, then telnet from pfsense to the telnet box. This would be encrypted over the internet.. And if you only allow public key auth to ssh on pfsense, this would be pretty secure.. Still not as good a vpn setup, you could limit to your source IP as well, etc. To prevent spam noise of boxes hitting ssh, changing the port would cut down on log spam as well.

            But the best solution is setup vpn to pfsense.

            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.7.2, 24.11

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

              Yup setup a VPN server and use it remotely. Solved!

              https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-ra.html

              N 1 Reply Last reply Reply Quote 0
              • N
                NGUSER6947 @stephenw10
                last edited by NGUSER6947

                Ok appreciate the feedback. Looks like the VPN is the right way to go.

                Follow up question, can my SG-1100 handle this additional application? Currently I'm running pfBlockerNG.

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

                  Yes. It doesn't really use any significant resources just to run the server. It will when the VPN is connected but that depends on the traffic over the VPN. If that's just some telnet traffic it's not a problem.

                  N 1 Reply Last reply Reply Quote 0
                  • N
                    NGUSER6947 @stephenw10
                    last edited by

                    @stephenw10 Excellent thank you.

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