I want to prevent my DHCP-range IP devices from sending packages to the internet. Therefore I need to add following rule to the iptables:
iptables -I FORWARD -o eth0 -m iprange --src-range 192.168.100.140-192.168.100.160 -m comment --comment "DHCP range blocked" -j DROP
However, entering the above rule returns:
iptables: No chain/target/match by that name.
Apparently the problem is the comment that I want to add to the rule. The rule
iptables -I FORWARD -o eth0 -m iprange --src-range 192.168.100.140-192.168.100.160 -j DROP
works perfectly
How can I add a comment to this new rule when it is created.
My router is RT-AC5300 with Asuswrt-Merlin 380.69_2
iptables -I FORWARD -o eth0 -m iprange --src-range 192.168.100.140-192.168.100.160 -m comment --comment "DHCP range blocked" -j DROP
However, entering the above rule returns:
iptables: No chain/target/match by that name.
Apparently the problem is the comment that I want to add to the rule. The rule
iptables -I FORWARD -o eth0 -m iprange --src-range 192.168.100.140-192.168.100.160 -j DROP
works perfectly
How can I add a comment to this new rule when it is created.
My router is RT-AC5300 with Asuswrt-Merlin 380.69_2