I would like to block everything EXCEPT SSH/FTP/HTTP/POSTFIX and MySQL.
With "everything" I mean all the other ports, block pings etc etc.
iptableslinuxlinux-kernel
I would like to block everything EXCEPT SSH/FTP/HTTP/POSTFIX and MySQL.
With "everything" I mean all the other ports, block pings etc etc.
Best Answer
I'm guessing you mean incoming connections (the INPUT chain), and not forwarded ones (as in a router). Also I take postfix means just SMTP (25).
Test your FTP connection in particular, you may need to enable
ip_conntrack_ftp
for it to work correctly without modifying the client settings.