You are not logged in.

#1 2009-06-15 16:49:36

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

forward all ports using ssh - is this possible?

consider the following situation: port 22 and 80 are open but most of the other more or less useful ports are closed.
i'd like to automatically route all traffic through my ssh connection (preferably without having to mess around with proxy settings).

is this possible using ssh?

Offline

#2 2009-06-15 17:23:51

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: forward all ports using ssh - is this possible?

sounds like you are asking for a layer 3 vpn over ssh.
so yes, you can do it (it takes a bit of work).

quick google result: https://help.ubuntu.com/community/SSH_VPN


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-06-15 18:11:42

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: forward all ports using ssh - is this possible?

You could also setup a local SOCKS proxy. Read about the -D flag in man ssh.


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#4 2009-06-25 06:36:11

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: forward all ports using ssh - is this possible?

thanks for your replies and sorry for my late answer smile

i did know about the -D flag (using it regularly to login to ICQ/MSN from my workplace), but i don't want to alter proxy settings for all apps using the internet.

i did read up on vpn over ssh, but it seemed a bit too much work, considering i'm not strictly limited to ssh. it's my own server so i could set up openvpn/xxx on it.

Offline

Board footer

Powered by FluxBB