Navigation

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

    Remote port forwarding

    NAT
    port forwarding ssh
    1
    3
    109
    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.
    • S
      samto last edited by

      Hello,

      I am trying to establish access to pfSense GUI via a remote public server (both my desktop and pfSense firewall are in NAT without public IP).

      I am able to establish a remote port forwarding from the firewall to the public server and local port forwarding from my desktop to the public server. When setting it up via SSH client, it is working as expected.

      The problem is if I run the "ssh -R" command from GUI/Command Prompt or Cron. The output is the same as in the terminal and it looks like the SSH tunnel is established, but it is not.

      Do you have any idea, what's wrong?

      Thanks

      S 1 Reply Last reply Reply Quote 0
      • S
        samto @samto last edited by

        @samto Update: The remote server auth.log is :

        Jan 26 08:50:00 sshd[9696]: Accepted publickey for XXXX from XXX.XXX.XXX.XXX port XXXXX ssh2: RSA SHA256: xxxxxxxxx
        Jan 26 08:50:00 sshd[9696]: pam_unix(sshd:session): session opened for user XXXX by (uid=0)
        Jan 26 08:50:00 systemd: pam_unix(systemd-user:session): session opened for user XXXX by (uid=0)
        Jan 26 08:50:01 systemd-logind[458]: New session 107 of user XXXX.
        Jan 26 08:50:01 sshd[9794]: Received disconnect from XXX.XXX.XXX.XXX port XXXXX:11: disconnected by user
        Jan 26 08:50:01 sshd[9794]: Disconnected from user XXXX XXX.XXX.XXX.XXX port XXXXX
        Jan 26 08:50:01 sshd[9696]: pam_unix(sshd:session): session closed for user XXXX
        Jan 26 08:50:01 systemd-logind[458]: Session 107 logged out. Waiting for processes to exit.
        Jan 26 08:50:01 systemd-logind[458]: Removed session 107.
        

        So it seems that the connection was successfully set up, but right after that it was disconnected.

        Do you have any idea, how to keep it running?

        S 1 Reply Last reply Reply Quote 0
        • S
          samto @samto last edited by

          @samto I found a root cause of the problem. It is well described here: https://www.everythingcli.org/ssh-tunnelling-for-fun-and-profit-tunnel-options/

          So, the combination ssh -f -T -N -R works fine

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Products

          • Platform Overview
          • TNSR
          • pfSense Plus
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy