This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I need help setting up a SSH Tunnel (SOCKS 5)

Before I switched to Astaro, I used a piece of crap Linksys router. I had port 8080 forwarded to a dedicated SSH box using Cygwin for Windows. I used this to establish a SSH tunnel using both Putty and FireFox (stand-alone). The sole intention for this is to allow me and 3-4 other users the ability to surf the internet privately. I could carry a thumb drive around and connect anytime/anywhere without installing drivers. I could also use port forwarding to RDP/VNC to other machines on the network (thru the tunnel).

I don’t want to use a VPN solution. I only want browser traffic (or a few select forwarded ports) to use the localhost tunnel. I want ALL other traffic to work like normal.

I also want to state that will never use the built-in SSH server to administer Astaro. Ok, I'm guessing I have two different ways I figure it could be setup:

First and preferred, I could reconfigure the built-in SSH server and configure it to use port 8080 and setup the 5 users that need to connect via the tunnel.

Second, I could keep the built-in SSH server disabled and just forward port 8080 to my extra SSH box.

Here is where I'm stuck, I have tried the second method without success. I tried could never get connected, and all my traffic was getting blocked or filtered out. I even used an off the wall port so there wouldn’t be any conflicts with port 8080. I have setup the port forwarding and packet filter rules to allow all traffic. Still nothing.

I’m not sure what else to try. Actually, I would like to use Astaro as my SSH server, just not sure what steps I use to get it there. Also, would there be any security risks using Astaro opposed to forwarding to an internal box.

Any suggestions? Thanks in advance!


This thread was automatically locked due to age.
  • Hi,

    try configuring a DNAT and activating "automatic packet filter rules" for the DNAT:
    Should work then.

    If not, provide screenshots of: 

    - Packet Filter log
    - NAT configuration
    - Packet Filter configuration

    Try turning off the Web Proxy also, since this by default listens on port 8080. You can however reset this port to e.g. 3128 which should help avoiding any internal rule violations.

    C.
  • Have you ever figured out how to do this?  I had this working under pfsense until I recently switched to Sophos (formerly Astaro) and seem to only be able to:

    1.) connect via putty on ssh port 22
    2.) authenticate w/ public key authentication
    3.) browse the web thru web filter port 8080

    but I cannot for example RDP via a tunnel: L5910 pointing to 192.168.0.5:3389 as I could with pfsense.  Thanks.
  • Bob, unfortunately - no.

    Also, I've noticed that since I had updated my PROXY profile from ANY to INTERNAL NETWORK, INTERNAL ADDRESS, etc., I no longer can browse outward to the internet.  I now realize ANY was a security risk, but my logic was traffic over SSH originates from the Sophos UTM (IP on my network is 192.168.0.1) so INTERNAL ADDRESS as the SOURCE NETWORK would've worked?  Sorry learning.
  • Hi, you probably need to create firewall rules allowing the firewall's interfaces to make connections for RDP, etc.
    I'm not sure how you'd get the http proxy working though. Maybe a NAT, but I wouldn't mess with it.

    However, have you considered using one of the (free) VPN clients instead of the SSH tunnel?

    Barry
  • Hey, Miles,

    That makes sense. I have to agree with Barry, and you will want to use something other than ssh for remote access. 

    Cheers Bob

    Sorry for any short responses.  Posted from my iPhone.
  • Did you ever get the socks tunnel working, I'm trying to do the same