From e66d9eee4105b63f11c455c5d1fc5cd289b971e2 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Fri, 14 Dec 2007 21:33:33 +0000 Subject: [PATCH] - Moved socket to /var/run/fail2ban. git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@629 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- client/csocket.py | 2 +- config/fail2ban.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/csocket.py b/client/csocket.py index 34d0844d..52c8d007 100644 --- a/client/csocket.py +++ b/client/csocket.py @@ -32,7 +32,7 @@ class CSocket: END_STRING = "" - def __init__(self, sock = "/tmp/fail2ban.sock"): + def __init__(self, sock = "/var/run/fail2ban/fail2ban.sock"): # Create an INET, STREAMing socket #self.csock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.__csock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) diff --git a/config/fail2ban.conf b/config/fail2ban.conf index 8001285d..ef77b3a4 100644 --- a/config/fail2ban.conf +++ b/config/fail2ban.conf @@ -28,7 +28,7 @@ logtarget = /var/log/fail2ban.log # Notes.: Set the socket file. This is used to communicate with the daemon. Do # not remove this file when Fail2ban runs. It will not be possible to # communicate with the server afterwards. -# Values: FILE Default: /tmp/fail2ban.sock +# Values: FILE Default: /var/run/fail2ban/fail2ban.sock # -socket = /tmp/fail2ban.sock +socket = /var/run/fail2ban/fail2ban.sock