LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accessing servers via VPN (http://www.linuxquestions.org/questions/linux-newbie-8/accessing-servers-via-vpn-738295/)

Duane Ferguson 07-07-2009 07:14 AM

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.

centosboy 07-07-2009 07:24 AM

Quote:

Originally Posted by Duane Ferguson (Post 3599583)
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....

kirukan 07-07-2009 07:28 AM

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.

Duane Ferguson 07-08-2009 06:13 AM

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?

centosboy 07-09-2009 02:20 AM

Quote:

Originally Posted by Duane Ferguson (Post 3600774)
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..

Duane Ferguson 07-20-2009 06:55 AM

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.

Duane Ferguson 10-30-2009 05:20 AM

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.


All times are GMT -5. The time now is 01:21 PM.