I'm using these iptables rules for my OpenVPN server with 1 NIC (eth0)
iptables -I INPUT -i eth0 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD -i eth0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o eth0 -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
which of course is much too open.
But I would like to be able to use FTP through the VPN connection.
I assume I have to put
modprobe ip_conntrack
modprobe ip_conntrack_ftp
in top of my iptables script.
But how should the actual iptables rules look like?