tonia wrote:
> Hi,
>
> Im behind a firewall that allows certains outgoing connections but
> blocks incoming ones. As I can connect from work to my house through
> ssh, Im thinking on the way of keep that connection alive and when I
> get home, keep in touch with it. But cant figure out how to do it. I
> was thinking on netcat or vpn, but I cant guess how to do it.
> Any clue?
>
>
I think you can do it via ssh port forwarding. You'd need to configure
your home ssh server to allow port forwarding then from your ssh client
map a remote port on your home machine to a port on your office
network. Note that the destination port can be any machine reachable
from your office machine.
Example1: Use the current ssh tunnel to allow you to reverse ssh back
to your office machine. Map remote port 10000 to local ssh port:
.from office ssh client:
ssh -R 10000:localhost:22
(E-Mail Removed)
then from your home (note that you need root access to ssh to
nonstandard ports):
ssh -D 10000 officeusername@127.0.0.1
Example2: Same as above but ssh back to another server on your office
network, for example 192.168.1.220. This time we map remote port 11000
to server ssh port:
.from office ssh client:
ssh -R 11000:192.168.1.220:22
(E-Mail Removed)
then from your home:
ssh -D 11000 username@127.0.0.1
Google "ssh port forwarding" for more info.