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

    How to use pfsense as SSH client

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 784 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.
    • A
      accidentallyadmin
      last edited by

      Hello,

      Is it possible to use pfsense as SSH client to outside network/router to create an SSH tunnel? Bear in mind that the tunnel is not for general internet access but for certain services on external network only. I'm trying to set up a secure SSH tunnel so the clients on the LAN side will be re-routed through this SSH tunnel without the need to set it up on each client.
      Hope I'm making any sense there.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @accidentallyadmin
        last edited by

        @accidentallyadmin said in How to use pfsense as SSH client:

        use pfsense as SSH client ....

        I can :

        ......
         6) Halt system                       15) Restore recent configuration
         7) Ping host                         16) Restart PHP-FPM
         8) Shell
        
        Enter an option: 8
        
        Command history storage is enabled. Clear history with: history -c; history -S.
        [23.09.1-RELEASE][root@pfSense.bhf.tld]/root: ssh
        usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address]
                   [-c cipher_spec] [-D [bind_address:]port] [-E log_file]
                   [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file]
                   [-J destination] [-L address] [-l login_name] [-m mac_spec]
                   [-O ctl_cmd] [-o option] [-P tag] [-p port] [-Q query_option]
                   [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
                   destination [command [argument ...]]
        

        It has the ssh client (and server - as I'm using it to connect to it ).
        Or I didn't understand the question.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          Hmm, policy routing traffic over an SSH tunnel would be a lot more complex though. There's no way to do that in the GUI.

          1 Reply Last reply Reply Quote 0
          • A
            accidentallyadmin @Gertjan
            last edited by

            @Gertjan Thank you, I will try your approach and report back as soon as I can

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