FTP connection via VPN

The client has a web server, access to which is possible only on the network.

For example, for the sake of, say, my login details:

Server: example.com User: user password: password

when i'm in their internet company. I use either Cyberduck or FileZilla to connect to their web server.

Most likely, I will be able to connect remotely, but I just have problems with the setup. I connected to the vpn client, say vpn.example.com, and used Cisco AnyConnect to accomplish this.

Other than that, my VPN knowledge is limited. Is there anything in the FTP client that I have to do to make sure that it uses a VPN to connect to example.com and not my home connection?

Thanks.

-m

+6
source share
3 answers

There are two ways. I assume that you are using Windows or Mac, since the AnyConnect client does not come on Linux.

Open CMD / Terminal and enter "route print" or "netstat -r", pay attention to the example.com example. Most likely, the default route will catch it. In this case, you want to add a route so that it goes through the VPN interface for any traffic going to example.com (after that, as soon as you disconnect from the VPN, you can no longer connect to example.com if you do not connect to the VPN. )

Another way is to connect to FTP via the local FTP IP address after connecting to the VPN.

+3
source

Since there is no Linux solution, I will post my solution. I know little about the other side (vpn server), so this solution may not be appropriate for your environment. I use vpnc (installed via the package manager on Ubuntu, other systems can work too). You can configure it using a .conf file, my values

 IPSec gateway <server address> IPSec ID <gateway id> IPSec secret <kind of group password> Xauth username <your username> Xauth password <you password> 
0
source

If you are using UBUNTU

Install the Open Client for Cisco AnyConnect VPN from the Ubuntu Software Center , then use the openconnect command.

0
source

Source: https://habr.com/ru/post/912802/


All Articles