File: netfilter-persistent.8

package info (click to toggle)
iptables-persistent 1.0.11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 232 kB
  • sloc: sh: 352; makefile: 17
file content (81 lines) | stat: -rw-r--r-- 2,125 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.TH netfilter-persistent 8
.SH NAME
netfilter-persistent \- load, flush and save netfilter rule sets
.SH SYNOPSIS
.B netfilter-persistent
start
.PP
.B netfilter-persistent
stop
.PP
.B netfilter-persistent
flush
.PP
.B netfilter-persistent
save
.SH DESCRIPTION
.B netfilter-persistent
uses a set of plugins to load, flush and save netfilter rules at boot and halt time.
Plugins can be written in any suitable language and stored in
.I /usr/share/netfilter-persistent/plugins.d
.SH OPTIONS
.TP
start
Calls all plugins with the
.I start
argument, causing them to load their rules into netfilter.
.TP
stop
If the configuration
.I FLUSH_ON_STOP
is enabled, calls all plugins with the
.I flush
argument, causing them to remove their rules from netfilter.
Otherwise, emits a warning only.
.TP
flush
Calls all plugins with the
.I flush
argument, causing them to remove their rules from netfilter.
.TP
save
Calls all plugins with the
.I save
argument, causing them to save the currently-loaded rules to persistent storage.
.SH PLUGINS
Plugins can be written in any language and are merely executed by
.B netfilter-persistent
with a single argument.
All plugins are stored in
.I /usr/share/netfilter-persistent/plugins.d
.PP
Plugins must implement the
.I start
.I flush
and 
.I save
arguments and must not rely on additional arguments for other functionality.
.br
Plugins must return 0 on success and any other code on failure.
.PP
Plugins are free to use and extend the configuration in
.I /etc/default/netfilter-persistent
and to implement their own configuration files.
.SH FILES
.TP
.I /etc/default/netfilter-persistent
Main configuration file
.TP
.I /usr/share/netfilter-persistent/plugins.d
Plugin directory
.SH COPYRIGHT
Copyright (C) 2009 Simon Richter <sjr@debian.org>
.br
Copyright (C) 2010, 2014 Jonathan Wiltshire <jmw@debian.org>
.PP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.SH AUTHORS
Jonathan Wiltshire <jmw@debian.org>