Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FTP over VPN
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mustang01
n00b
n00b


Joined: 19 Aug 2019
Posts: 40

PostPosted: Mon Oct 28, 2019 5:10 pm    Post subject: FTP over VPN Reply with quote

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
View user's profile Send private message
mike155
Veteran
Veteran


Joined: 17 Sep 2010
Posts: 1959
Location: Frankfurt, Germany

PostPosted: Mon Oct 28, 2019 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
mustang01
n00b
n00b


Joined: 19 Aug 2019
Posts: 40

PostPosted: Tue Oct 29, 2019 5:37 pm    Post subject: Reply with quote

Thank you. I have redirected all high ports except that used by wiregurad. FTP works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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