[ale] Easy way to add and delete iptables rules

Chris Fowler cfowler at outpostsentinel.com
Fri Aug 26 08:58:28 EDT 2016


> From: "Alex Carver" <agcarver+ale at acarver.net>
> To: ale at ale.org
> Sent: Thursday, August 25, 2016 11:48:44 PM
> Subject: Re: [ale] Easy way to add and delete iptables rules

> I would actually do something entirely different and use ipsets and the
> PREROUTING chain.

> Set up a new chain:

> iptables -N bad_test_scores
> iptables -A bad_test_scores -m set --match-set badtestscores src -j LOG
> --log-prefix="bad test score:"
> iptables -A bad_test_scores -m set --match-set badtestscores src -j REJECT
> iptables -A PREROUTING -j bad_test_scores
I may be missing something 

root at debian:/tmp# /tmp/t.sh 
+ iptables -N bad_test_scores 
+ iptables -A bad_test_scores -m set --match-set badtestscores src -j LOG --log-prefix='bad test score:' 
+ iptables -A bad_test_scores -m set --match-set badtestscores src -j REJECT 
+ iptables -A PREROUTING -j bad_test_scores 
iptables: No chain/target/match by that name. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20160826/08d7be9e/attachment.html>


More information about the Ale mailing list