Re: Stucked in Iptables & FTP
Is the ftp service running on that server or it needs to forward it to another machine?
If it's on that server, and you are using the default port 21, you just need to allow that port and the one below, like:
sudo iptables -A INPUT -i eth0 -p tcp --dport 20:21 -j ACCEPT
If you want to limit it to certan source IP, you will need to use the -s option too.
Give the above command a shot, if it works you can implement it in your permanent rules because running it from the command line is only temporary. After you reboot it's lost.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Bookmarks