Connection not possible with backup-manager at OVH
I have a server at OVH and make daily backups on another FTP server also at OVH. I chose to use backup-manager to automate this. During the installation, I encountered a problem for which I couldn't find a precise answer on the internet. Each time I tried to connect to the FTP server, I got a connection error. In each of these errors, backup-manager was trying to communicate through a different port each time.
To solve this problem, I had to load two modules into the kernel:
modprobe ip_conntrack modprobe ip_conntrack_ftp
Then use these firewall rules:
iptables -A OUTPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT
I'm glad if it helped.