VPN without VPN: Get access to networks available from your ssh server and hide behind it

sshuttle -r <username>@<sshserver> 0/0
https://github.com/apenwarr/sshuttle disassembles TCP packets, sends them over SSH, assembles and forwards on the server side, and vice versa.

0
By: AvImd
2013-06-13 19:44:23

These Might Interest You

  • logstalgia must be installed


    0
    ssh -n user@server.tr tail -f /usr/local/nginx/logs/access.log > /tmp/access | tail -f /tmp/access | logstalgia
    aysadk · 2017-08-19 16:55:09 0
  • From a local node, retrieve the date from server A and set that time on server B. When ntpd is not an option and you need to get closest clock sync between two nodes Replace SRC_SRV with yout source server and DST_SRV with your destination server. You must have ssh access to both and sudo access to the the destination to set the date. Show Sample Output


    0
    env TERM="$(ssh SRC_SRV "date"):TERM" ssh -t DST_SRV 'TS=${TERM%:*}; TERM=${TERM##*:}; export TS; date ; sudo date -s "$TS"; date'
    sector6 · 2017-09-06 15:28:26 0
  • This is helpful if you connect to several networks with different subnets such as 192 networks, 10 networks, etc. Cuts first three octets of ip from ifconfig command and runs nmap ping scan on that subnet. Replace wlan0 with your interface. Assumes class c network, if class b use: cut -d "." -f 1-2 and change nmap command accordingly.


    -1
    dhclient wlan0 && sbnt=$(ifconfig wlan0 |grep "inet addr" |cut -d ":" -f 2 | cut -d "." -f 1-3) && nmap $sbnt.0/24 -sP
    wltj · 2010-06-22 21:00:29 1
  • --vrdp on enables VirtualBox RDP server for the VM --vrdpport 3389 ndicates the TCP port that the server will accept RDP connections direct to the VM (for each VM is assigned a different port) --vrdpauthtype external RDP console gives access to the VM Host physical users via authentication In fact, in the 3.1.x version of VirtualBox, the external value for the parameter --vrdpauthtype allows access via RDP only to the user who started the VM. The workaround is to add the user that runs the VM to shadow group, using the command


    -1
    VBoxManage modifyvm "vm-name" --vrdp on --vrdpport 3389 --vrdpauthtype external
    0disse0 · 2012-02-03 18:36:04 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: