Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpts:50001:50006 ACCEPT tcp -- anywhere anywhere tcp dpts:50001:50006 Chain OUTPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp spts:50001:50005