how to allow range of hosts in Iptables
say I want to allow all IPs from 127.34.5.0 to 127.34.5.255
how do I do it in iptables without enumerating each individually?
I saw this syntax on the internet
iptable -I INPUT -s 127.34.50/255 -ju DROP
but it says "invalid subnet mask", these are IP addresses to the internet not subnet or NAT addresses.
|