Need help with firewall configuration

Hello,

I need help configuring my firewall rules. Two rules I would like to have implemented;
One of them being that I would like to disable port protocol 1935. Second, I would like to disable UDP traffic on ports 80 and 443. How would I go about getting this configured?

uci add firewall rule
uci set firewall.@rule[-1].name='Deny-1935/TCP+UDP'
uci set firewall.@rule[-1].src='lan'
uci set firewall.@rule[-1].dest='wan'
uci set firewall.@rule[-1].dest_port='1935'
uci set firewall.@rule[-1].proto='tcp udp'
uci set firewall.@rule[-1].target='REJECT'
uci add firewall rule
uci set firewall.@rule[-1].name='Deny-80+443/UDP'
uci set firewall.@rule[-1].src='lan'
uci set firewall.@rule[-1].dest='wan'
uci set firewall.@rule[-1].dest_port='80 443'
uci set firewall.@rule[-1].proto='udp'
uci set firewall.@rule[-1].target='REJECT'
uci commit firewall
service firewall restart

Thank you Vgaetera.

Thinks works out, exactly what I needed.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.