projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed to add IPs to iptables for all ports instead of j ust ssh.
[clearscm.git]
/
bin
/
bice.pl
diff --git
a/bin/bice.pl
b/bin/bice.pl
index
f1a6358
..
04ddb8f
100755
(executable)
--- a/
bin/bice.pl
+++ b/
bin/bice.pl
@@
-66,7
+66,7
@@
my $security_logfile = '/var/log/auth.log';
# Customize these variables
my $domain = 'DeFaria.com';
my $contact = 'Andrew@DeFaria.com';
# Customize these variables
my $domain = 'DeFaria.com';
my $contact = 'Andrew@DeFaria.com';
-my $location = 'San
Diego
, California, USA';
+my $location = 'San
ta Clara
, California, USA';
my $UTC = 'UTC-8';
my $mailhost = $domain;
# End customize these variables
my $UTC = 'UTC-8';
my $mailhost = $domain;
# End customize these variables
@@
-117,7
+117,7
@@
sub AddToIPTables (@) {
`/sbin/iptables -N BICE`;
# Add all new @ips to iptables
`/sbin/iptables -N BICE`;
# Add all new @ips to iptables
- `/sbin/iptables -A BICE -s $_ -p tcp -
-destination-port 22 -
j DROP` foreach (sort keys %ips);
+ `/sbin/iptables -A BICE -s $_ -p tcp -j DROP` foreach (sort keys %ips);
return;
} # AddToIPTables
return;
} # AddToIPTables