how to specify IP not equal to in iptables rules ????

Mogens Kjaer mk at
Thu Jul 14 13:04:52 UTC 2011

On 07/14/2011 02:48 PM, Jatin K wrote:
> So how to go ...??? and any one guide to the right direction ????? how
> do I add a rule  like IP or the PORTs is not equal to ?

man iptables:

[!] -s, --source address[/mask][,...]

Put the ! before -s.

Mogens Kjaer, mk at

More information about the users mailing list