Skip to content

Rage Against the Shell

Linux tips and other things…

  • Home
  • Contact
  • Privacy Policy

SSH vpn with sshuttle

Posted on April 9, 2020 by Mr. Reboot

Tested in ubuntu 18

You can build your own vpn secure and fastly with sshuttle. This powerfull tool permits routing all traffic, trough a remote ssh server, by creating several rules on iptables.

Installing:

~ $ apt-get install sshuttle -y

Using:

~ $ sshuttle -v --dns -r user@myserver.domain.com 0/0

-v: verbose
–dns: dns traffic is sending by ssh tunnel
-r: remote server
0/0: destination to route, here all traffic

To redirect traffic for a specific destination:

~ $ sshuttle -v --dns -r user@myserver.domain.com 192.168.0.0/24
Posted in SSH

Post navigation

Disable swap in systemd
Compile varnish module vmod_vsthrottle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Calendar

April 2020
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Dec   Jan »

Categories

  • Apache
  • Cisco
  • Command line
  • Distros
  • Dovecot
  • File systems
  • Gadgets
  • GlusterFS
  • MySQL
  • Nginx
  • NTP
  • Opendkim
  • Pacemaker + Corosync
  • Postfix
  • Raspberrypi
  • SSH
  • SSL
  • Varnish

RSS RSS

  • Using qrencode January 16, 2022
  • Compile varnish module vmod_vsthrottle April 22, 2020
  • SSH vpn with sshuttle April 9, 2020
  • Disable swap in systemd December 16, 2019
  • Getting the parent process pid October 12, 2018
Proudly powered by WordPress | Theme: micro, developed by DevriX.