LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2008, 06:43 AM   #1
webgard3
LQ Newbie
 
Registered: Jun 2008
Location: Iran/Shiraz
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Linux Tunnel


I need to have a tunnel between 2 linux server.
but i cant use Vtun,OpenVPN,GRE,PPTP.
do you know another tunnel that creates an interface?
 
Old 08-05-2008, 06:45 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
have you looked at ssh? Tell us why you can't use those other options, what your setup is, etc..
 
Old 08-05-2008, 11:22 AM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Stunnel, netcat, socat, but they are more useful for specific ports, I don't think any have an option for using tap/tun. Ssh can do either, portforwarding or using tap/tun interfaces. I have to admit I'm really curious why any of the other ones wouldn't work for you. If its a matter of a protocol inspecting firewall between the two then I'd go with ssh over https.

http://dag.wieers.com/howto/ssh-http-tunneling/
 
Old 08-05-2008, 11:56 PM   #4
webgard3
LQ Newbie
 
Registered: Jun 2008
Location: Iran/Shiraz
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
First thanks for your attention.

Im in Iran. here telecommunication company has filtered those protocols.


i want to have some USA IP address in iran.
i have a server in USA and another in Iran. i need a tunnel between them.

may you explain more about ssh tunnel?
i need an interface tunnel such as tun/tap or gre to route ip on it.
 
Old 08-07-2008, 12:06 AM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
ssh can setup a vpn using the tap/tun interface with the -w option and the Tunnel config option. I usually set the Tunnel config option to ethernet so it creates a tap interface which is the equivalent of a normal ethernet interface. Then you just ssh -w any user@remote_machine (might want to add -f -N -n)

It results in a pair of interfaces, one on each machine that are connected to one another like the two machines were on the same lan. If you use the tap interface option then just set up your ips and routes or bridge the interface.
 
Old 08-07-2008, 08:28 AM   #6
MoMule
Member
 
Registered: Jul 2006
Posts: 134

Rep: Reputation: 15
Freenx

If you need a tunnel to display an interface then use FREENX which rides on top of ssh which the poster above already suggested...

Deion "Mule" Christopher
 
  


Reply

Tags
interface, ssh, tap, tun, tunnel



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Socks Server to Tunnel WoW btaylor1988 Linux - Server 3 08-05-2008 06:49 AM
linux to xp ssh/vnc noob tunnel confusion babag Linux - Networking 2 07-14-2007 11:29 AM
W2K > VPN tunnel > Linux > M$ Exchange joadoor Linux - Networking 0 07-22-2004 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration