LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-07-2009, 07:14 AM   #1
Duane Ferguson
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 0
Question Accessing servers via VPN


I set up my first Ubuntu machine only a couple of days ago. I've managed most things, but can't work out how to access directories via VPN. For example: If I start a CISCO VPN session to my workplace on my Windows machine, I can access the software server by selecting Start > Run > \\software. I have no idea how to do the same thing with Ubuntu. Any constructive advice is appreciated. Thanks.
 
Old 07-07-2009, 07:24 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Duane Ferguson View Post
I set up my first Ubuntu machine only a couple of days ago. I've managed most things, but can't work out how to access directories via VPN. For example: If I start a CISCO VPN session to my workplace on my Windows machine, I can access the software server by selecting Start > Run > \\software. I have no idea how to do the same thing with Ubuntu. Any constructive advice is appreciated. Thanks.
I dont really use ubuntu so this is coming from a suse perspective.
to start the vpn, use vpnc. it has a simple config file where you set the user details.

Code:
www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc
once vpn tunnel is established, access your directories in the normal way.
if a windows machine, use smbclient

Code:
smbclient -U <user> //ipaddress/directory
or whatever way you do it with ubuntu........


Please thank me if i have been of any help....
 
Old 07-07-2009, 07:28 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,224

Rep: Reputation: 132Reputation: 132
is your software server running on windows or linux platfrom? and windows and linux are different file system ntfs and ext3, therefore check about samba
http://www.cyberciti.biz/faq/access-...es-from-linux/
CISCO VPN is the way of secure connection to your network therefore don't confuse with these windows and linux file system with VPN connection.
 
Old 07-08-2009, 06:13 AM   #4
Duane Ferguson
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks to all, but we've still got some work to do

I've downloaded an run the generic VPN connection from work, and I've created Desktop shortcuts to connect and disconnect. Connecting opens up a Terminal session, which once connected reads:

Cisco Systems VPN Client Version 4.8.02 (0030)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.24-24-generic #1 SMP Tue Jun 30 20:28:53 UTC 2009 i686
Config file directory: /etc/opt/cisco-vpnclient

Initializing the VPN connection.
Contacting the gateway at <address>
User Authentication for work_vpn...

Enter Username and Password.

Username [<username>]: <username>
Password []:
Authenticating user.
Negotiating security policies.
Securing communication channel.
<Work connection> (node corpvpn)

This is a restricted access computer system, for use by authorised clients
only. Suspicious activity may be logged. Conditions of use may be obtained
by phoning 8302 ****, emailing helpdesk@****.edu.au, or on the web see:
http://www.****.edu.au/policies/poli...porate/c22.asp
Do you wish to continue? (y/n): y

Your VPN connection is secure.

VPN tunnel information.
Client address: <address>
Server address: <address>
Encryption: 168-bit 3-DES
Authentication: HMAC-MD5
IP Compression: None
NAT passthrough is active on port UDP 4500
Local LAN Access is disabled

but that's as far as I can then get. I can't see how or where I would type in the \\<servername> command to open up a shared folder.

All servers are Windows 2003 or 2008. I attempted to connect by selecting 'Places' > 'Network' and entering smb://software/ but still could not see any directories beyond . Any further suggestions?
 
Old 07-09-2009, 02:20 AM   #5
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Duane Ferguson View Post
I've downloaded an run the generic VPN connection from work, and I've created Desktop shortcuts to connect and disconnect. Connecting opens up a Terminal session, which once connected reads:

Cisco Systems VPN Client Version 4.8.02 (0030)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.24-24-generic #1 SMP Tue Jun 30 20:28:53 UTC 2009 i686
Config file directory: /etc/opt/cisco-vpnclient

Initializing the VPN connection.
Contacting the gateway at <address>
User Authentication for work_vpn...

Enter Username and Password.

Username [<username>]: <username>
Password []:
Authenticating user.
Negotiating security policies.
Securing communication channel.
<Work connection> (node corpvpn)

This is a restricted access computer system, for use by authorised clients
only. Suspicious activity may be logged. Conditions of use may be obtained
by phoning 8302 ****, emailing helpdesk@****.edu.au, or on the web see:
http://www.****.edu.au/policies/poli...porate/c22.asp
Do you wish to continue? (y/n): y

Your VPN connection is secure.

VPN tunnel information.
Client address: <address>
Server address: <address>
Encryption: 168-bit 3-DES
Authentication: HMAC-MD5
IP Compression: None
NAT passthrough is active on port UDP 4500
Local LAN Access is disabled

but that's as far as I can then get. I can't see how or where I would type in the \\<servername> command to open up a shared folder.

All servers are Windows 2003 or 2008. I attempted to connect by selecting 'Places' > 'Network' and entering smb://software/ but still could not see any directories beyond . Any further suggestions?

is the vpn tunnel up?
can you see the other end??
a new interface should have been created.
once the tunnel is up and you can see the other end, you try the methods of connecting to the windows server(s) mentioned above..
 
Old 07-20-2009, 06:55 AM   #6
Duane Ferguson
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Using KVpnc, I can easily create the connection - importing the CISCO PCF file from my Windows machine was as simple as searching for the file, then copying it to a USB. I then imported it to KVpnc as per process. Good for me! Still no luck when it comes to mapping drives, or mounting drives, as the case may be. No new interface created, just an icon indicating a successful connection, and yes - a tunnel IP address 130.220.192.14. I'll now apologise for continually using Windows terminology, but it's the only language I know. From this point (having established a connection), I would normally select 'Start' > 'Run' and enter \\software to access the software share at my work place. If I attempt something similar in Ubuntu by selecting 'Places' > 'Connect to Server' > software, I am presented with the following message: Cannot display location "smb://software/"

Thanks for the previous suggestion, but the results are below:
duane@duane-desktop:~$ smbclient -U <username> //server.cw.domainname.edu.au/buo
Enter <username's> password:
session setup failed: NT_STATUS_LOGON_FAILURE

Keep the suggestions comming. I've found a local Ubuntu user group that meets regularly. I'll attend as many of their meetings as I can, and ( hopefully) post a positive result soon.
 
Old 10-30-2009, 05:20 AM   #7
Duane Ferguson
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Solved!!! Here's how to map a drive to a Windows share, over a Cisco VPN connection, under Ubuntu 9.04:

Method to map a drive to a Windows directory \\server\share\sub-directory:
1.Select 'Places' > 'Connect to Server'
2.From the 'Service Type' options, select 'Windows Share'
3.Enter the Server name in 'Server' field
4.Enter the Shared folder name (if applicable) in the 'Share' field
5.Enter the final sub-directory (if applicable) in the 'Folder' field
6.Click 'Connect'

Bingo. It's always simpler than you expect. Thanks to all who offered advice.

Last edited by Duane Ferguson; 10-30-2009 at 06:38 AM.
 
  


Reply

Tags
cisco, drive, map, mapping, share, ubuntu, vpn, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help Me Install VPN Servers ayie Linux - Networking 2 09-19-2005 02:19 AM
Accessing servers from the internet... AudioMechanic Linux - Networking 1 03-17-2005 09:05 PM
Accessing VPN from DMZ twsnnva Linux - Networking 0 01-03-2005 09:38 AM
Accessing virtual servers externally Inexactitude Linux - Networking 2 04-18-2004 12:39 PM
question: accessing unix servers kb=mvp Linux - Newbie 1 04-02-2004 03:22 AM


All times are GMT -5. The time now is 10:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration