LinuxQuestions.org
Review your favorite Linux distribution.
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 03-01-2004, 01:31 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
VPN Tunnel Through SSH


I am a college student and my university has a very large wireless network here at school. I have a Linux machine at home that is running Samba and SSH. I have a junky old laptop that I use to connect to my Linux server, but what I really want to do is have a VPN connection to home so that I can use SMB to have file access to home. I would like to tunnel this through SSH for simiplicity and for security reasons.

I seem to have a lot of trouble with my Win32 SSH client, though. It's not quite as simple to use as a command line SSH client, and the tunneling settings are confusing to me. There are two types of tunnels that I can set up. Below are the options involved...

INCOMING...
Type: TCP or FTP
Listen Port: 0-65535
Destination Host: hostname
Destination Port: 0-65535

OUTGOING...
Type: TCP or FTP
Listen Port: 0-65535
Local Connections Only: True or False
Destination Host: hostname
Destination Port: 0-65535

Now, this may all seem a bit cut-and-dry to most of you, but it seems a bit ambiguous to me. If I want to tunnel a connection of any sort between my laptop (localhost) and my server at home (DNS_NAME) then what should I have for the Destination Host option on Incoming? On Ougoing? Do I need to set up a connection both ways or is the Incoming section only for connection initiations rather than responses?

Also, can anyone tell me what ports I need to be concerned about?


Thanks in advance for any help you might offer.
 
Old 03-01-2004, 02:02 PM   #2
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Okay, I've got a theory that the reason this isn't working is because my connection is going through to the Linux server at home, but I'm not getting a response. Apparently browsing is done through UDP, so that makes sense, since you can't forward UDP through SSH (to my knowledge).

My new question is how can I monitor the traffic on a by-packet basis on the linux machine via the SSH command prompt while trying to access files through the tunnel so that I can verify this theory (that connections are going through one-way)?
 
Old 03-01-2004, 02:11 PM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You're quite right...
but,
ssh gives you a single connection, not a tunnel..
You can add port forwardings to it, but it's still not a tunnel.
No broadcasts will go down there unles you have a redirector doing it at both ends..

Even though you are going through some NAT boxes in between, you can use PoPtoP effectively as a VPN.

Last edited by peter_robb; 03-01-2004 at 02:12 PM.
 
Old 03-01-2004, 04:51 PM   #4
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Take a look at OpenVPN.

http://openvpn.sourceforge.net/
 
Old 05-16-2004, 08:24 PM   #5
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Which is better?

Which one is better? OpenVPN or PopTop?
 
  


Reply



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
How To guides to setup an SSH Tunnel and VPN, and Print Servers pfish Linux - Networking 1 10-29-2004 06:13 PM
W2K > VPN tunnel > Linux > M$ Exchange joadoor Linux - Networking 0 07-22-2004 05:50 AM
Cannot see Samba share through VPN tunnel from win98 client gaagaagui Linux - Software 1 01-19-2004 05:25 PM
routing problem with VPN tunnel hsiehkc Linux - Networking 0 01-16-2004 12:39 AM
VPN tunnel dvong3 Linux - Networking 2 10-16-2002 03:20 AM

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

All times are GMT -5. The time now is 01:38 AM.

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