SSH No Ports

Comments

4 comments

  • Avatar
    Colin Constable

    If you want to try this for yourself then there are a couple of things to be aware of as you do the SSH No Ports install.

    https://noports.com 

    I will be writting this all up and creating and install video but in the meantime these are the small differences as you install SSH No Ports on a Firewalla box.

     

    Install using No Sudo this uses a tmux session and tmux is installed as default.

    ./universal.sh --no-sudo

    Once installed a cronjob is setup but that does not survive a reboot so follow the instructions here to add a cronjob that does survive the reboot..

    https://help.firewalla.com/hc/en-us/articles/360054056754-Customized-Scripting 

    The line you want to put into /home/pi/.firewalla/config/user_crontab is

    */5 * * * * tmux new-session -d -s sshnpd 2>/dev/null && tmux send-keys -t sshnpd /home/pi/.local/bin/sshnpd.sh C-m

    This will start the tmux session and if for any reason it dies it will restart. I normally use a @reboot but that does not work currently with the way firewalla starts cron. This is fine as it is belt and braces !

    If you get stuck or have questions let me know.

    0
    Comment actions Permalink
  • Avatar
    Client Support

    Hey @Colin, 

    Thank you! Very interesting. 

    You can also put a script in /home/pi/.firewalla/config/post_main.d/ which will fire anytime the box boots, if that's helpful. 

     

    See https://help.firewalla.com/hc/en-us/articles/360054056754-Customized-Scripting

    0
    Comment actions Permalink
  • Avatar
    Colin Constable

    That was my preference and I did try it but for some reason the background tmux session dies and I could not figure out why. Would love to fault find that with you. So for the moment the cron line works.

     

    I am a Starlink user and it so nice to be able to dial home via my firewalla box ! Using SSH No Ports also allows me to VNC/RDP to my Mac and Windows machines at home when I am on the road. This is without any NAT rules (as Starlink does not give you a routable IPV4 address) or a port that is always open via Ngrok or other port forwarding service.

    0
    Comment actions Permalink
  • Avatar
    Client Support

    Hi Colin,

    I'd be happy to work with you on this. I'm creating a ticket for you. 

    0
    Comment actions Permalink

Please sign in to leave a comment.