firewall and NAT - filter udp
Posted: Tue Jun 10, 2014 8:58 am
i have router with NAT.
i need filter udp except allowed ports like dns.
i have added to filter->forward chain to "allow my port" rules and "drop all" rule at chain' end.
seems to works fine but whats is it?
my rule drop NATing packets?
how to drop udp before NATing, NAT->prerouting will right?
i need filter udp except allowed ports like dns.
i have added to filter->forward chain to "allow my port" rules and "drop all" rule at chain' end.
seems to works fine but whats is it?
Code: Select all
out:ipip, proto UDP,
10.0.0.6:58366->1.2.3.4:13958, [b]NAT[/b]
(10.0.0.6:58366->192.168.1.1:58366)->1.2.3.4:13958, prio 0->8, len 48
how to drop udp before NATing, NAT->prerouting will right?