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