File: netscript-ipfilter.8

package info (click to toggle)
netscript-2.4 5.5.5%2Bnmu3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: sh: 2,166; makefile: 86
file content (201 lines) | stat: -rw-r--r-- 5,771 bytes parent folder | download
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NETSCRIPT 8 "January 24, 2014"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
netscript \- netscript network configuration command
.SH SYNOPSIS
.B netscript start|stop|reload|restart
.br
.B netscript ipfilter load|clear|fairq|flush|reload|save
.br
.BI netscript\ ipfilter\ usebackup\ [ \ backup-number\  ]
.br
.B netscript ipfilter exec
.I <function-name1>|<function-name2> [chain p1 p2 ...]
.br
.B netscript ip6filter load|clear|fairq|flush|reload|save
.br
.BI netscript\ ip6filter\ usebackup\ [ \ backup-number\  ]
.br
.B netscript ip6filter exec
.I <function-name1>|<function-name2> [chain p1 p2 ...]
.br


.SH DESCRIPTION
This manual page documents briefly the
.B netscript
command from the netscript router/firewall network configuration
package. 

This command is used to configure/reconfigure the
iptables filter setup, that are configured in netscript's configuration files.

.SH IPTABLES CONFIGURATION

Configuration saving is done by
.BR iptables-save (8)
and
.BR iptables-restore (8).

.SH OPTIONS
.TP
.B start
Set up networking configruation by loading ipcahins filters, setting
up bridge, configuring interfaces and running any configured lower
layer protocol daemons or commands. For use from a startup script.
.TP
.B stop
Shut everything down. For use from a startup script.
.TP
.B reload
Refresh the setup of netscript from the configuration files in /etc/netscript
.TP
.B restart|force-reload
Stop everything and then start everything again. For use from a startup
script.
.TP
.B ipfilter load|reload
Load/reload the IPv4 iptables filters and reconfigure the firewalling,
from that saved in 
.I /etc/netscript/iptables 
(via 
.B iptables-restore(8)
), and the QoS fair queuing setup.
.TP
.B ipfilter save
Save the IPv4 iptables configuration to /etc/netscript/iptables via 
.B iptables-save(8)
, after backing it up to 
.I /etc/netscript/iptables.1
and cycling the previous backup files down through the configuration history.
.TP
.BI ipfilter\ usebackup\ [ \ backup-number\  ]
Restore setup from the IPv4 iptables backup configuration from 
.I /etc/netscript/iptables.n
( default 1 ) via 
.B iptables-restore(8).
.TP
.B ipfilter clear|flush
Remove iptables and any firewall setup, and if IPV4_FWDING_KERNEL is set
to FILTER_ON (see 
.B network.conf(5)
), disables all IPv4 packet forwarding on the router.  Very useful for
debugging protocol problems on a firewall by enabling a reasonably
safe check to be made with the filtering down.
.TP
.B ipfilter forward|fwd
Turns on the IPv4 kernel forwarding switch manually.  This is irrespective
of the setting of IPV4_FWDING_KERNEL (see
.B network.conf(5)
). Use with
.I caution
as it will allow traffic through the box.
.TP
.B ipfilter noforward|nofwd
Turns off the IPv4 kernel forwarding switch manually.  This is irrespective
of the setting of IPV4_FWDING_KERNEL (see
.B network.conf(5)
). Use with
.I caution
as it will cut off reachability.
.TP
.B ipfilter fairq
Reload the IPv4
.I fairq
chain that marks the packets for the 
.B QoS
interface transmit queues.  
.TP
.B ip6filter load|reload
Load/reload the IPv6 iptables filters and reconfigure the firewalling,
from that saved in 
.I /etc/netscript/ip6tables
 (via 
.B ip6tables-restore(8)
), and the QoS fair queuing setup.
.TP
.B ip6filter save
Save the IPv6 iptables configuration to /etc/netscript/iptables via 
.B ip6tables-save(8)
, after backing it up to 
.I /etc/netscript/ip6tables.1
and cycling the previous backup files down through the configuration history.
.TP
.BI ip6filter\ usebackup\ [ \ backup-number\  ]
Restore setup from the IPv6 iptables backup configuration from 
.I /etc/netscript/ip6tables.n
( default 1 ) via 
.B ip6tables-restore(8).
.TP
.B ip6filter clear|flush
Remove IPv6 iptables setup, and if IPV6_FWDING_KERNEL is set
to FILTER_ON (see 
.B network.conf(5)
), disables all IPv6 packet forwarding on the router.  Very useful for
debugging protocol problems on a firewall by enabling a reasonably
safe check to be made with the filtering down.
.TP
.B ip6filter forward|fwd
Turns on the IPv6 kernel forwarding switch manually.  This is irrespective
of the setting of IPV6_FWDING_KERNEL (see
.B network.conf(5)
). Use with
.I caution
as it will allow traffic through the box.
.TP
.B ip6filter noforward|nofwd
Turns off the IPv6 kernel forwarding switch manually.  This is irrespective
of the setting of IPV6_FWDING_KERNEL (see
.B network.conf(5)
). Use with
.I caution
as it will affect reachability.
.TP
.B ip6filter fairq
Reload the IPv6 
.I fairq
chain that marks the packets for the 
.B QoS
interface transmit queues.  

.SH FILES
.I /etc/netscript/ipfilter.conf, /etc/netscript/network.conf,
.br
.I /etc/netscript/iptables, /etc/netscript/ip6tables,
.br

.SH SEE ALSO
.BR ipfilter.conf (5),
.BR network.conf (5),
.BR ip (8),
.BR tc (8),
.BR iptables (8),
.BR iptables-restore (8),
.BR iptables-save (8),
.BR ip6tables (8),
.BR ip6tables-restore (8),
.BR ip6tables-save (8),
.BR brcfg (8).
.br

.SH AUTHOR
This manual page was written by Matthew Grant <matt@mattgrant.net.nz>,
for the Debian GNU/Linux system (but may be used by others).

.SH BUGS
I wrote this manpage when I was half asleep...