Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Sshuttle A VPN-based transparent proxy that uses ssh     - HBase cluster installation and deployment (Server)

- Linux create and delete user step (Linux)

- Zabbix monitoring different versions of RAID installation and monitoring and MySQL master-slave monitor (Server)

- top command causes the system load increases (Linux)

- Oracle to start to solve the error ORA-27102 (Database)

- TypeScript basic grammar (Programming)

- How to Install Telegram instant messaging software on Ubuntu (Linux)

- Mac OS X 10.10 Yosemite compiling OpenJDK 9 (Linux)

- DataGuard Standby backup error RMAN-06820 ORA-17629 to solve (Database)

- Linux / proc directory Comments (Linux)

- Linux Command Line Art (Linux)

- Install Java 8 on Ubuntu using PPA (Linux)

- Fedora 20, Fedora 19, CentOS 6 and RHEL6 users how to install Wine 1.7.15 (Linux)

- Use the dd command to the hard disk I / O performance test (Linux)

- Command line tool Tmux (Linux)

- Linux Routine Task Scheduler (Linux)

- SUSE Firewall Configuration (Linux)

- VirtualBox virtual machine can not start to solve under Ubuntu (Linux)

- Linux Security Setup Guide (Linux)

- How to Install Cantata MPD 1.3.3 for Ubuntu and Derived Version Users (Linux)

 
         
  Sshuttle A VPN-based transparent proxy that uses ssh
     
  Add Date : 2017-08-31      
         
       
         
  Sshuttle allows you to create a VPN connection from your computer to any remote server via ssh, as long as your server supports python2.3 or later. You must have local root privileges, but you can have a regular account on the server side.

You can run multiple sshutles on one machine at the same time to connect to different servers, so you can use multiple VPNs at the same time, and sshuttle can forward all traffic from your subnet to the VPN.

Install sshuttle in Ubuntu

Enter the following command in the terminal

Sudo apt-get install sshuttle
 

Use sshuttle

Sshuttle syntax

Sshuttle [options ...] [- r [username @] sshserver [: port]] [subnets]
 

Option Details

-r, -remote = [username @] sshserver [: port]

The remote host name and optional user name, used to connect to the remote server ssh port number. Such as example.com, testuser @ example.com, testuser @ example.com: 2222 or example.com:2244.

Sshuttle example

In the machine using the following command:

Sudo sshuttle -r username @ sshserver 0.0.0.0/0-vv
When started, sshuttle creates an ssh session to the server specified by -r. If -r is lost, it runs the client and server locally, which is sometimes useful in tests.

After connecting to the remote server, sshuttle will upload its (python) source code to the remote server and execute. Therefore, you do not need to install sshuttle on the remote server, and there is no sshuttle version conflict between the client and the server.

More examples in the manual

Proxy All local connections for local testing, not using ssh:

$ Sudo sshuttle -v 0/0
Starting sshuttle proxy.
Listening on ( '0.0.0.0', 12300).
[Local sudo] Password:
Firewall manager ready.
C: connecting to server ...
S: available routes:
S: 192.168.42.0/24
C: connected.
Firewall manager: starting transproxy.
C: Accept: '192.168.42.106': 50035 -> '192.168.42.121': 139.
C: Accept: '192.168.42.121': 47523 -> '77 .141.99.22 ': 443.
... etc ...
^ C
Firewall manager: undoing changes.
KeyboardInterrupt
C: Keyboard interrupt: exiting.
C: SW # 8: 192.168.42.121: 47523: deleting
C: SW # 6: 192.168.42.106: 50035: deleting
Test connections to remote servers, automatically guessing hostnames and subnets:

$ Sudo sshuttle -vNHr example.org
Starting sshuttle proxy.
Listening on ( '0.0.0.0', 12300).
Firewall manager ready.
C: connecting to server ...
S: available routes:
S: 77.141.99.0/24
C: connected.
C: seed_hosts: []
Firewall manager: starting transproxy.
Hostwatch: Found: testbox1: 1.2.3.4
Hostwatch: Found: mytest2: 5.6.7.8
Hostwatch: Found: domaincontroller: 99.1.2.3
C: Accept: '192.168.42.121': 60554 -> '77 .141.99.22 ': 22.
^ C
Firewall manager: undoing changes.
C: Keyboard interrupt: exiting.
C: SW # 6: 192.168.42.121: 60554: deleting
     
         
       
         
  More:      
 
- How to Install 3.16.7 CKT2 kernel in Ubuntu 14.10, Ubuntu 14.04 and its derivative versions (Linux)
- Oracle Client Easy Connection error ORA-12154, TNS-03505 (Database)
- Linux Defensive / mitigate DDOS attacks (Linux)
- Machine Learning: Classification of the curse of dimensionality (Programming)
- Install and use automated tools Ansible in CentOS 7 (Linux)
- Oracle through the alarm log view and inspect the main library, physical and snapshot standby database (Database)
- A step by step teach have to install multi-node cluster configuration Hadoop (Server)
- Use FFmpeg processing high quality GIF (Programming)
- Linux yum command Detailed (Linux)
- The basic method RHEL6 (CentOS6) used in the source package compiled RPM: Upgrade OpenSSH articles (Linux)
- Let your PHP 7 faster (GCC PGO) (Linux)
- About MongoDB query method according to fuzzy field (Database)
- To setup a ftp server under Linux (Server)
- Linux compiler installation Redis (Database)
- Configuring a Linux operating system against syn attack (Linux)
- To install JDK1.7 and compiler Hadoop-2.7.1 under CentOS7 (Server)
- How to understand Python yield keyword (Programming)
- Linux five security TIPS (Linux)
- How to use the beta / unstable version of the software in Debian library (Linux)
- CentOS6.5 install SVN & visual management tools iF.SVNAdmin (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.