Вы можете использовать tsocks и встроенную поддержку клиента OpenSSH для создания туннелей SOCKS.Это требует немного конфигурации, но работает нормально.Ниже рассказывается, как я начал работать с Ubuntu 10.04.
# Install the tsocks library and shell script.
sudo apt-get install tsocks
# Configure the range of IP addresses you need access to.
sudo nano /etc/tsocks.conf
# Use the OpenSSH client to create a socks proxy (stepping
# stones are hosts used to gain access to private subnets).
ssh -D 1080 stepping.stone
# Now connect to any given address in your configured range.
# tsocks will intercept the connection and route it using
# the SOCKS proxy we created with the previous command.
tsocks ssh 1.2.3.4
Тот факт, что Fabric не работает без VPN-подключения, стал для меня преградой, так что это отличное решение;все, что требуется, это доступ по SSH к одному хосту.