View previous topic :: View next topic |
Author |
Message |
mustang01 n00b
Joined: 19 Aug 2019 Posts: 42
|
Posted: Mon Oct 28, 2019 5:10 pm Post subject: FTP over VPN |
|
|
Hello,
I have a vpn server on archlinux and would like to redirect ftp ports to log in to the gentoo ftp server through a VPN connection.
I use wiregurad and pureftp. I am asking for help, because when I try ftp client logs in but does not list ftp server directories. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Oct 28, 2019 9:13 pm Post subject: |
|
|
FTP is difficult, because it opens a second TCP connection whenever you issue a command that transfers data (ls, get, put, etc.). This connection must be routed through your VPN as well. Make sure that you understand the differenence between ACTIVE and PASSIVE (that controls who opens the second connection).
The best thing you can do is to avoid FTP. Can you use other programs like sftp, wget, curl, etc?
If you really need FTP: take a couple of hours and learn how it works. If you understand the 'second connection' technique, you will probably be able to find a way how to route the connection through your VPN. |
|
Back to top |
|
|
mustang01 n00b
Joined: 19 Aug 2019 Posts: 42
|
Posted: Tue Oct 29, 2019 5:37 pm Post subject: |
|
|
Thank you. I have redirected all high ports except that used by wiregurad. FTP works. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|