When I check my server's public IP, most ports seem to be closed.
It's good, but I can't understand how they're closed...
As far as I can understand iptables rules, everything should be open:
Code: Select all
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- localhost localhost tcp dpt:smtp
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere 127.0.0.0/8 reject-with icmp-port-unreachable
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.0.0.0/24 anywhere
ACCEPT udp -- anywhere anywhere udp dpt:2220
ACCEPT tcp -- anywhere anywhere tcp dpt:2225
ACCEPT udp -- anywhere anywhere udp dpt:4344
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp