Hey /g/entochan, I need to open certain combinations of udp and tcp ports on my router and close everything else using Iptables.
This didn't work
iptables -I FORWARD 1 -p tcp -m multiport --dports 1119,3724,6113,80,443,53 -j ACCEPT
iptables -I FORWARD 2 -p udp -m multiport --dports 80,443,53,3478,3479,5060,5062,6250,12000:64000 -j ACCEPT
iptables -I FORWARD 3 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I FORWARD 4 -j DROP
I'm doing literally everything right and still doesnt work. Why is this happening and why does God hates me.
Thanks.