|
|
@ -71,15 +71,16 @@ class Fail2banServer: |
|
|
|
print "and bans the corresponding IP addresses using firewall rules." |
|
|
|
print "and bans the corresponding IP addresses using firewall rules." |
|
|
|
print |
|
|
|
print |
|
|
|
print "Only use this command for debugging purpose. Start the server with" |
|
|
|
print "Only use this command for debugging purpose. Start the server with" |
|
|
|
print "fail2ban-client instead." |
|
|
|
print "fail2ban-client instead. The default behaviour is to start the server" |
|
|
|
|
|
|
|
print "in background." |
|
|
|
print |
|
|
|
print |
|
|
|
print "Options:" |
|
|
|
print "Options:" |
|
|
|
print " -b start in background" |
|
|
|
print " -b start in background" |
|
|
|
print " -f start in foreground" |
|
|
|
print " -f start in foreground" |
|
|
|
print " -s <FILE> socket path" |
|
|
|
print " -s <FILE> socket path" |
|
|
|
print " -x force execution of the server" |
|
|
|
print " -x force execution of the server" |
|
|
|
print " -h, --help display this help message" |
|
|
|
print " -h, --help display this help message" |
|
|
|
print " -V, --version print the version" |
|
|
|
print " -V, --version print the version" |
|
|
|
print |
|
|
|
print |
|
|
|
print "Report bugs to <lostcontrol@users.sourceforge.net>" |
|
|
|
print "Report bugs to <lostcontrol@users.sourceforge.net>" |
|
|
|
|
|
|
|
|
|
|
@ -113,6 +114,7 @@ class Fail2banServer: |
|
|
|
optList, args = getopt.getopt(self.__argv[1:], cmdOpts, cmdLongOpts) |
|
|
|
optList, args = getopt.getopt(self.__argv[1:], cmdOpts, cmdLongOpts) |
|
|
|
except getopt.GetoptError: |
|
|
|
except getopt.GetoptError: |
|
|
|
self.dispUsage() |
|
|
|
self.dispUsage() |
|
|
|
|
|
|
|
sys.exit(-1) |
|
|
|
|
|
|
|
|
|
|
|
self.__getCmdLineOptions(optList) |
|
|
|
self.__getCmdLineOptions(optList) |
|
|
|
|
|
|
|
|
|
|
|