[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

iptables



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.

-- 
Cheers,
Dan

http://members.iinet.net.au/~ddalton/

Attachment: signature.asc
Description: Digital signature


Reply to: