[arch-commits] Commit in sshguard/trunk (PKGBUILD sshguard.install sshguard.service)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon Feb 25 11:37:33 UTC 2013
Date: Monday, February 25, 2013 @ 12:37:33
Author: spupykin
Revision: 84851
ipv6 support
Modified:
sshguard/trunk/PKGBUILD
sshguard/trunk/sshguard.install
sshguard/trunk/sshguard.service
------------------+
PKGBUILD | 2 +-
sshguard.install | 14 ++++++++++----
sshguard.service | 4 ++--
3 files changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-02-25 10:46:24 UTC (rev 84850)
+++ PKGBUILD 2013-02-25 11:37:33 UTC (rev 84851)
@@ -4,7 +4,7 @@
pkgname=sshguard
pkgver=1.5
-pkgrel=10
+pkgrel=11
pkgdesc="Brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables"
arch=('i686' 'x86_64')
#url="http://sourceforge.net/projects/sshguard/"
Modified: sshguard.install
===================================================================
--- sshguard.install 2013-02-25 10:46:24 UTC (rev 84850)
+++ sshguard.install 2013-02-25 11:37:33 UTC (rev 84851)
@@ -1,8 +1,14 @@
post_install() {
- mkdir -p /var/db/sshguard
- echo "-- You should add chain to your firewall:"
+ mkdir -p var/db/sshguard
+ echo "-- You should add chains to your firewall:"
echo "-- iptables -N sshguard"
echo "-- iptables -A INPUT -p tcp --dport 22 -j sshguard"
- echo "-- For more information, see http://www.sshguard.net/doc/"
- /bin/true
+ echo "-- ip6tables -N sshguard"
+ echo "-- ip6tables -A INPUT -p tcp --dport 22 -j sshguard"
+ echo "-- touch /etc/iptables/ip6tables.rules if you don't use IPv6"
+ echo "-- For more information, see https://wiki.archlinux.org/index.php/Sshguard"
}
+
+post_upgrade() {
+ echo "-- touch /etc/iptables/ip6tables.rules if you don't use IPv6"
+}
Modified: sshguard.service
===================================================================
--- sshguard.service 2013-02-25 10:46:24 UTC (rev 84850)
+++ sshguard.service 2013-02-25 11:37:33 UTC (rev 84851)
@@ -1,7 +1,7 @@
[Unit]
Description=Block hacking attempts
-After=iptables.service network.target
-Wants=iptables.service
+After=iptables.service ip6tables.service network.target
+Wants=iptables.service ip6tables.service
[Service]
ExecStart=/usr/lib/systemd/scripts/sshguard-journalctl -b /var/db/sshguard/blacklist.db
More information about the arch-commits
mailing list