Iptables example for mail/web/opevpn server
I need some help in designing a simple iptables ruleset for a small
server I have recently set up.
It's a VPS so the primary interface is venet0 with a public ip. The
server also runs an openvpn daemon with a 172.16.0.0/24 subnet.
There is obviously no need for NAT or packet forwarding. All outbound
traffic should be allowed while inbound data is to be accepted only on
ports 80, 443, 25, 587 and 1194 (tcp,udp).
Could you give me a rough idea of what a firewall script should look