export EXCEPTIONS="217.162.112.0/23 129.132.0.0/16 131.246.0.0/16" for sshrule in $(iptables -L INPUT --line-numbers | grep SSH | cut -f1 -d" " | sort -rn) do iptables -D INPUT $sshrule done iptables -F SSH iptables -X SSH iptables -N SSH iptables -I INPUT -p tcp --dport ssh -j SSH iptables -I INPUT -p udp --dport ssh -j SSH for adress in $EXCEPTIONS do iptables -I SSH -s $adress -j ACCEPT done iptables -A SSH -j DROP-- TorstenSpindler - 06 Jun 2005
Topic SSHAccess . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More } |
Copyright © 1999-2003 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
|
Revision r1.1 - 06 Jun 2005 - 14:57 - TorstenSpindler Parents: WebHome |
Copyright © 1999-2003 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. |
This website has been archived and is no longer maintained.