Connecting to FTP via VPN
Asked Answered
L

3

8

A client has a web server that can only be accessed when on their network.

For example sake, let's say my login details are:

Server: example.com User: user password: password

for when I am on their company's internet. I use either Cyberduck or FileZilla to connect to their web server.

I'd much rather be able to connect remotely but I just have a lot of trouble setting this up. I have connected to the client's vpn, let's say vpn.example.com, and use Cisco AnyConnect to accomplish this.

Beyond this, my knowledge of VPN is limited. In an FTP client, is there anything I should be doing to ensure that it uses the VPN to connect to example.com rather than my home connection?

Thanks.

-m

Laodicea answered 10/4, 2012 at 0:43 Comment(1)
This will depend upon the TCP/IP routing tables; if you're on Linux, run ip route to dump the routing tables (edit them for privacy if you're so inclined -- just be sure to replace numbers identically throughout the entire output) and edit them into your post.Mustachio
F
4

There two ways around this. I am assuming you are using Windows or a Mac since the AnyConnect client doesn't come in a Linux flavor.

Open a CMD/Terminal and type "route print" or "netstat -r" take note of where example.com is pointing to. Most likely the default route will catch it. In that case you want to add a route to have it go via the VPN interface for any traffic that goes to example.com (After doing this, once you disconnect from the VPN you will not be able to connect to example.com any more unless you connect to the VPN.)

The other way is to connect to the FTP using the local IP of the FTP once connected to the VPN.

Foist answered 10/4, 2012 at 1:38 Comment(1)
If you are using Mac, you can use the integrated VPN client and enable the "Send All Traffic Over VPN" option which would do what George was mentioning. Also, Yes, use the LAN IP address of the FTP server on the remote network instead of the public host name. If DNS and routing are set up properly, you can us the FTP client installed on your computer to connect to the remote host.Andee
M
1

As there is no Linux solution I will post my solution. I don't know much about the other side (vpn server side), so this solution might not fit your environment. I'm using vpnc (installable via package manager on Ubuntu, other systems might work too). You can configure it with a .conf file, my values are

IPSec gateway <server address>
IPSec ID <gateway id>
IPSec secret <kind of group password>
Xauth username <your username>
Xauth password <you password>
Maulmain answered 11/1, 2017 at 6:26 Comment(0)
H
0

If you are using UBUNTU

Install Open client for Cisco AnyConnect VPN from Ubuntu Software center, then use openconnect command.

Heptode answered 23/6, 2017 at 11:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.