• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 734 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 Jan 17, 2024, 5:32 AM

    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.

    G 1 Reply Last reply Jan 17, 2024, 7:06 AM Reply Quote 0
    • G
      Gertjan @accidentallyadmin
      last edited by Jan 17, 2024, 7:06 AM

      @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 Jan 17, 2024, 4:08 PM Reply Quote 1
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 17, 2024, 2:43 PM

        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 Jan 17, 2024, 4:08 PM

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

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received