[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to connect a Host to tunnel (so you can connect to foo.example.net instead of localhost:port)



On Fri, Jan 02, 2009 at 11:20:28AM +0200, Jabka Atu wrote:
> Howdy ,
> 
> I used to ssh tunnel's to overcome NAT problems and just for fun.
> One of the thins is to do ssh -L portonmypc:NATip:NATport
> user@sshServerInFrontofNat
> This will bring the abiulty to use most of things.
> 
> The question is there a way to connect this kind of tunnel to fakeip ?
> for example something in type of :
> /etc/hosts
> ip:port natedpc.somedomain natedpc
> 
> so you can use your laptop (pc ) without further edittions.
> what i mean is that if i used (
> https://help.ubuntu.com/community/SSH_VPN ) type i would need to set it
> on two or more pc the tun devices , but i wish to do all the settings on
> one pc.

I'm not sure I understand what it is the problem you're trying to solve.

If you want a permanent tunnel and one of the parties has a permanent 
name, I'd go for openvpn instead.

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: