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

    Ssh tunnel ?

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    2 Posts 2 Posters 1.6k 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.
    • S
      singerie
      last edited by

      Is there any way to make an ssh tunnel on a specific wan interface ?

      i'm trying to make this tutorial to work on pfsense 2.0.

      https://community.acanac.com/acanac/viewtopic.php?f=21&t=11264

      Regards,
      Alex

      1 Reply Last reply Reply Quote 0
      • G
        Gloom
        last edited by

        assuming you are trying to setup an incoming tunnel just forward the port (on the desired interface or virtual IP) through to the ssh server.
        All that the tutorial is doing is the equivalent of running something like

        ssh  -D 8080  username@address-of-ssh-server

        in a *nix terminal and then you just alter whatever program you want to tunnel to use a socks5 proxy on 127.0.0.1:8080

        If what you are trying to do is use the firewall as your ssh proxy I'd strongly advise against it as the system is not designed for it. Far better to get an older PC and set it up with FreeBSD behind the firewall.

        FYI this post is being done from an Ubuntu laptop down an ssh tunnel through a PFSense firewall and into a FreeBSD server.

        Should have also said don't use the default port of 22 on the public interface unless you want the world trying to brute force a connection, pick something obscure like 1222 and do a redirect.

        Never underestimate the power of human stupidity

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