-s, --source address[/mask] Source specification. Address can be ... a network IP address (with /mask), ... The mask can be either a network mask or a plain number, specifying the number of 1's at the left side of the network mask. Thus, a mask of 24 is equivalent to 255.255.255.0. ...
Make your own mask ... http://jodies.de/ipcalc HTH, Joh Daniel Dalton wrote: > Hi, > > Just one quick question regarding iptables: > How do I specify an ip address to act on with -s that matches a certain > pattern. For example, I want all addresses that begin with > 192.168.1.1 to make my rule true. 192.168.1.1* doesn't seem to work? > So how do I make any ip address starting with this pattern make the rule > true and therefore activated? > eg. > iptables -i INPUT -s 192.168.1.1* -p tcp --dport 22 -j ACCEPT > > How do I make this work for all ips that start with 192.168.1.1, the * > doesn't work. > > Thanks for any help. > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org