How do I route my internet through a SSH tunnel?

Oxwivi

Old Q How do I setup an OpenVPN server without root privileges?

Is there a way to setup an OpenVPN server without root privileges? E.g. with configuration files in my home directory? If yes, how do I set it up?

I'm trying to SSH into a system and set up an OpenVPN server over there for personal use.

EDIT

Since it's apparent that OpenVPN needs root privileges, I am changing the question to routing my internet using SSH which I can easily set up.

André Paramés

sshuttle is a transparent proxy server that forwards over a SSH connection and sets up a proxy by running Python scripts on the remote server. sshuttle can be run under the following conditions:

  • client machine or router is Linux-based, FreeBSD or Mac OS
  • administrative privileges on client
  • access to remote network via SSH
  • no administrator privileges on remote network
  • availability of Python on remote server

Install sshuttle enter image description here from the Software Center or the Terminal:

sudo apt-get install sshuttle

The basic command for running sshuttle with routing all traffic is:

sshuttle -r username@sshserver:port 0/0

Upon the execution of the command, a sudo password prompt will appear and subsequently the password to SSH account. No other details will appear except for a short message and return to shell upon failure. For more status messages, run sshuttle in verbose mode with the -v flag.

In this example all internet traffic except DNS is routed through the VPN. -r flag denotes the remote hostname and optional username and port that follows in the above example. 0/0 is short for 0.0.0.0/0 that represents the subnets to route over the VPN. The usage of 0/0 routes all the traffic except DNS requests to the remote server. DNS tunelling is possible with the usage of -H flag.

Please read the man page (man sshuttle) for the details of options and modes under which sshuttle can run. For information about the concept and more examples, refer to the project page.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How do to bind x11vnc to localhost only and tunnel through SSH?

분류에서Dev

Route Client Traffic Through VPN Tunnel

분류에서Dev

Route Client Traffic Through VPN Tunnel

분류에서Dev

How can I configure such that I can always SSH to my system over the internet on a dynamic IP?

분류에서Dev

How to connect to Internet through a remote server via SSH connection

분류에서Dev

How can I reach a remote ssh server through my http proxy (80 port)?

분류에서Dev

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

분류에서Dev

RDP over SSH Tunnel through intermediate Linux server

분류에서Dev

Tunnel all remote ports through SSH to local hostname

분류에서Dev

How to make an SSH tunnel publicly accessible?

분류에서Dev

How do I isolate WiFi on second router from LAN on first router while providing internet through first router?

분류에서Dev

How do I set up SSH to transfer files from my local machine to a shared server with rsync?

분류에서Dev

If I use my external IP to talk to a device on the LAN, will the traffic go through the outside internet?

분류에서Dev

How do I set up a server for SSH?

분류에서Dev

How do I allow SFTP with a password BUT not SSH?

분류에서Dev

How do I remove an SSH forwarded port

분류에서Dev

How can I tell how many bits my ssh key is?

분류에서Dev

SSH tunnel with different ssh port

분류에서Dev

How do I copy the URL contained in the Internet shortcut?

분류에서Dev

How do I keep a Checkbox disabled in Internet Explorer

분류에서Dev

create tunnel over server through reverse tunnel

분류에서Dev

How can I audit users and access attempts to SSH on my server?

분류에서Dev

How do I add this jQuery into my Javascript?

분류에서Dev

How do I display millisecond in my stopwatch?

분류에서Dev

How do I use "<<" with my own struct?

분류에서Dev

How do I convert my string?

분류에서Dev

how do i make my code shorter

분류에서Dev

How to release ports on the SSH server when a reverse ssh tunnel disconnects abruptly/uncleanly?

분류에서Dev

Logging into my desktop from SSH says I have no updates, but I do

Related 관련 기사

  1. 1

    How do to bind x11vnc to localhost only and tunnel through SSH?

  2. 2

    Route Client Traffic Through VPN Tunnel

  3. 3

    Route Client Traffic Through VPN Tunnel

  4. 4

    How can I configure such that I can always SSH to my system over the internet on a dynamic IP?

  5. 5

    How to connect to Internet through a remote server via SSH connection

  6. 6

    How can I reach a remote ssh server through my http proxy (80 port)?

  7. 7

    How do I set up a local SOCKS proxy that tunnels traffic through SSH?

  8. 8

    RDP over SSH Tunnel through intermediate Linux server

  9. 9

    Tunnel all remote ports through SSH to local hostname

  10. 10

    How to make an SSH tunnel publicly accessible?

  11. 11

    How do I isolate WiFi on second router from LAN on first router while providing internet through first router?

  12. 12

    How do I set up SSH to transfer files from my local machine to a shared server with rsync?

  13. 13

    If I use my external IP to talk to a device on the LAN, will the traffic go through the outside internet?

  14. 14

    How do I set up a server for SSH?

  15. 15

    How do I allow SFTP with a password BUT not SSH?

  16. 16

    How do I remove an SSH forwarded port

  17. 17

    How can I tell how many bits my ssh key is?

  18. 18

    SSH tunnel with different ssh port

  19. 19

    How do I copy the URL contained in the Internet shortcut?

  20. 20

    How do I keep a Checkbox disabled in Internet Explorer

  21. 21

    create tunnel over server through reverse tunnel

  22. 22

    How can I audit users and access attempts to SSH on my server?

  23. 23

    How do I add this jQuery into my Javascript?

  24. 24

    How do I display millisecond in my stopwatch?

  25. 25

    How do I use "<<" with my own struct?

  26. 26

    How do I convert my string?

  27. 27

    how do i make my code shorter

  28. 28

    How to release ports on the SSH server when a reverse ssh tunnel disconnects abruptly/uncleanly?

  29. 29

    Logging into my desktop from SSH says I have no updates, but I do

뜨겁다태그

보관