~ubuntu-branches/ubuntu/hardy/fail2ban/hardy-proposed

« back to all changes in this revision

Viewing changes to config/action.d/ipfw.conf

  • Committer: Bazaar Package Importer
  • Author(s): Emmet Hikory
  • Date: 2007-01-18 23:58:35 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070118235835-6rh0odv630tzncbf
Tags: 0.7.6-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Do not depend on the versioned python package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Author: Nick Munger
4
4
# Modified by: Cyril Jaquier
5
5
#
6
 
# $Revision: 254 $
 
6
# $Revision: 510 $
7
7
#
8
8
 
9
9
[Definition]
10
10
 
11
 
# Option:  fwstart
 
11
# Option:  actionstart
12
12
# Notes.:  command executed once at the start of Fail2Ban.
13
13
# Values:  CMD
14
14
#
15
15
actionstart = 
16
16
 
17
17
 
18
 
# Option:  fwend
 
18
# Option:  actionend
19
19
# Notes.:  command executed once at the end of Fail2Ban
20
20
# Values:  CMD
21
21
#
22
22
actionstop = 
23
23
 
24
24
 
25
 
# Option:  fwcheck
26
 
# Notes.:  command executed once before each fwban command
 
25
# Option:  actioncheck
 
26
# Notes.:  command executed once before each actionban command
27
27
# Values:  CMD
28
28
#
29
29
actioncheck = 
30
30
 
31
31
 
32
 
# Option:  fwban
 
32
# Option:  actionban
33
33
# Notes.:  command executed when banning an IP. Take care that the
34
34
#          command is executed with Fail2Ban user rights.
35
35
# Tags:    <ip>  IP address
37
37
#          <time>  unix timestamp of the ban time
38
38
# Values:  CMD
39
39
#
40
 
actionban = ipfw add deny tcp from <ip> to <localhost> <port>
41
 
 
42
 
 
43
 
# Option:  fwunban
 
40
actionban = ipaction add deny tcp from <ip> to <localhost> <port>
 
41
 
 
42
 
 
43
# Option:  actionunban
44
44
# Notes.:  command executed when unbanning an IP. Take care that the
45
45
#          command is executed with Fail2Ban user rights.
46
46
# Tags:    <ip>  IP address
48
48
#          <time>  unix timestamp of the ban time
49
49
# Values:  CMD
50
50
#
51
 
actionunban = ipfw delete `ipfw list | grep -i <ip> | awk '{print $1;}'`
 
51
actionunban = ipaction delete `ipfw list | grep -i <ip> | awk '{print $1;}'`
52
52
 
53
53
[Init]
54
54