SOURCES: sshguard-path.patch (NEW) - fix iptables path
agaran
agaran at pld-linux.org
Tue Apr 17 01:21:39 CEST 2007
Author: agaran Date: Mon Apr 16 23:21:39 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix iptables path
---- Files affected:
SOURCES:
sshguard-path.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/sshguard-path.patch
diff -u /dev/null SOURCES/sshguard-path.patch:1.1
--- /dev/null Tue Apr 17 01:21:39 2007
+++ SOURCES/sshguard-path.patch Tue Apr 17 01:21:34 2007
@@ -0,0 +1,47 @@
+diff -Nur sshguard-0.9/fwalls/command_iptables.h sshguard-0.9.mod/fwalls/command_iptables.h
+--- sshguard-0.9/fwalls/command_iptables.h 2007-02-11 11:32:47.000000000 +0100
++++ sshguard-0.9.mod/fwalls/command_iptables.h 2007-04-17 01:17:38.000000000 +0200
+@@ -15,8 +15,8 @@
+ /* this loads and unloads the needed chains every time sshguard is started */
+ /*
+ #define COMMANDS_INIT { \
+- "/sbin/iptables -N sshguard", \
+- "/sbin/iptables -A INPUT -p tcp --dport 22 -j sshguard" \
++ "/usr/sbin/iptables -N sshguard", \
++ "/usr/sbin/iptables -A INPUT -p tcp --dport 22 -j sshguard" \
+ }
+ */
+ #define COMMANDS_INIT { }
+@@ -25,8 +25,8 @@
+ /* This unloads sshguard's chains every time it is stopped */
+ /*
+ #define COMMANDS_FIN { \
+- "/sbin/iptables -D INPUT -j sshguard", \
+- "/sbin/iptables -X sshguard" \
++ "/usr/sbin/iptables -D INPUT -j sshguard", \
++ "/usr/sbin/iptables -X sshguard" \
+ }
+ */
+ #define COMMANDS_FIN { }
+@@ -34,18 +34,18 @@
+ /* for blocking an IP */
+ /* a "%s" in here will be replaced with the target IP address */
+ #define COMMANDS_BLOCK { \
+- "/sbin/iptables -A sshguard -s %s -j DROP" \
++ "/usr/sbin/iptables -A sshguard -s %s -j DROP" \
+ }
+
+ /* for releasing a blocked IP */
+ /* a "%s" in here will be replaced with the target IP address */
+ #define COMMANDS_RELEASE { \
+- "/sbin/iptables -D sshguard -s %s -j DROP" \
++ "/usr/sbin/iptables -D sshguard -s %s -j DROP" \
+ }
+
+ /* for releasing all blocked IPs at once (blocks flush) */
+ #define COMMANDS_FLUSH { \
+- "/sbin/iptables -F sshguard" \
++ "/usr/sbin/iptables -F sshguard" \
+ }
+
+
================================================================
More information about the pld-cvs-commit
mailing list