Неплохой набор примеров настройки iptables:



https://likegeeks.com/linux-iptables-firewall-examples/