I need to add this rules to my firewall rules: /sbin/iptables -I INPUT 1 -s 1.2.3.219 -p tcp --dport 21 -m state --state NEW -m limit --limit 5/hour -j ACCEPT /sbin/iptables -I INPUT 2 -s 1.2.3.219 -p tcp --dport 21 -m state --state NEW -j REJECT How can integrate it in shorewall or there is a way to recall the script? Regards, B. N.B.: This rules simply limit a webcam that otherwise load an image every 3 seconds (I can''t kill the customer, so ... ;-))) )
Barbara M. wrote:> I need to add this rules to my firewall rules: > > > /sbin/iptables -I INPUT 1 -s 1.2.3.219 -p tcp --dport 21 -m state --state NEW -m limit --limit 5/hour -j ACCEPT > /sbin/iptables -I INPUT 2 -s 1.2.3.219 -p tcp --dport 21 -m state --state NEW -j REJECT > > How can integrate it in shorewall or there is a way to recall the script? > > N.B.: This rules simply limit a webcam that otherwise load an image every > 3 seconds (I can''t kill the customer, so ... ;-))) ) >Please read the Shorewall rules file documentation carefully -- you can express the above rules directly in that file. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net