summaryrefslogtreecommitdiff
path: root/community/sshguard/sshguard.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/sshguard/sshguard.install')
-rw-r--r--community/sshguard/sshguard.install14
1 files changed, 10 insertions, 4 deletions
diff --git a/community/sshguard/sshguard.install b/community/sshguard/sshguard.install
index 0821c61e0..486e55fbd 100644
--- a/community/sshguard/sshguard.install
+++ b/community/sshguard/sshguard.install
@@ -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"
}