Change your IP without VPN

eshad89(33)
Published in
#howto
Words
95
Reading
1 min
Listen
Play
8y

bildschirm-brille-577585.jpg


In my daily life as a developer, i sometimes want to use a different IP to test some access etc. Using a free online proxy is mostly annoying and slow. A VPN is often overkill and actually i do not have any.

For this purpose i like to recommend sshuttle.

If your ssh command would be: ssh [email protected]
Your sshuttle command is: sshuttle --dns -r [email protected] 0/0

After you run the sshuttle command check your ip on WhatIsMyIp

The best practice is to store your ssh login in the ssh config. The config alias can be used with sshuttle.

# ~/.ssh/config
Host eg
  HostName 12.34.65.78
  Port 2274
  User test
  IdentityFile ~/.ssh/test-id_rsa

Then simply use: sshuttle --dns -r eg 0/0

Change your IP without VPN | Ecency