Lines 58-64
Link Here
|
58 |
on your needs, this can be as simple as adding the following to a startup |
58 |
on your needs, this can be as simple as adding the following to a startup |
59 |
script (eg rc.local for systems that use it): |
59 |
script (eg rc.local for systems that use it): |
60 |
|
60 |
|
61 |
# /lib/ufw/ufw-init start |
61 |
# /usr/share/ufw/ufw-init start |
62 |
|
62 |
|
63 |
For systems that use SysV initscripts, an example script is provided in |
63 |
For systems that use SysV initscripts, an example script is provided in |
64 |
doc/initscript.example. See doc/upstart.example for an Upstart example. Consult |
64 |
doc/initscript.example. See doc/upstart.example for an Upstart example. Consult |
Lines 72-80
Link Here
|
72 |
/etc/defaults/ufw high level configuration |
72 |
/etc/defaults/ufw high level configuration |
73 |
/etc/ufw/before[6].rules rules evaluated before UI added rules |
73 |
/etc/ufw/before[6].rules rules evaluated before UI added rules |
74 |
/etc/ufw/after[6].rules rules evaluated after UI added rules |
74 |
/etc/ufw/after[6].rules rules evaluated after UI added rules |
75 |
/lib/ufw/user[6].rules UI added rules (not to be modified) |
75 |
/etc/ufw/user/user[6].rules UI added rules (not to be modified) |
76 |
/etc/ufw/sysctl.conf kernel network tunables |
76 |
/etc/ufw/sysctl.conf kernel network tunables |
77 |
/lib/ufw/ufw-init start script |
77 |
/usr/share/ufw/ufw-init start script |
78 |
|
78 |
|
79 |
|
79 |
|
80 |
Usage |
80 |
Usage |
Lines 149-155
Link Here
|
149 |
that the primary chains don't move around other non-ufw rules and chains. To |
149 |
that the primary chains don't move around other non-ufw rules and chains. To |
150 |
completely flush the built-in chains with this configuration, you can use: |
150 |
completely flush the built-in chains with this configuration, you can use: |
151 |
|
151 |
|
152 |
# /lib/ufw/ufw-init flush-all |
152 |
# /usr/share/ufw/ufw-init flush-all |
153 |
|
153 |
|
154 |
Alternately, ufw may also take full control of the firewall by setting |
154 |
Alternately, ufw may also take full control of the firewall by setting |
155 |
MANAGE_BUILTINS=yes in /etc/defaults/ufw. This will flush all the built-in |
155 |
MANAGE_BUILTINS=yes in /etc/defaults/ufw. This will flush all the built-in |
Lines 247-253
Link Here
|
247 |
|
247 |
|
248 |
Remote Management |
248 |
Remote Management |
249 |
----------------- |
249 |
----------------- |
250 |
On /lib/ufw/ufw-init start and 'ufw enable' the chains are flushed, so |
250 |
On /usr/share/ufw/ufw-init start and 'ufw enable' the chains are flushed, so |
251 |
ssh may drop. This is needed so ufw is in a consistent state. Once the ufw is |
251 |
ssh may drop. This is needed so ufw is in a consistent state. Once the ufw is |
252 |
'enabled' it will insert rules into the existing chains, and therefore not |
252 |
'enabled' it will insert rules into the existing chains, and therefore not |
253 |
flush the chains (but will when modifying a rule or changing the default |
253 |
flush the chains (but will when modifying a rule or changing the default |
Lines 290-296
Link Here
|
290 |
|
290 |
|
291 |
Distributions |
291 |
Distributions |
292 |
------------- |
292 |
------------- |
293 |
While it certainly ok to use /lib/ufw/ufw-init as the initscript for |
293 |
While it certainly ok to use /usr/share/ufw/ufw-init as the initscript for |
294 |
ufw, this script is meant to be used by ufw itself, and therefore not |
294 |
ufw, this script is meant to be used by ufw itself, and therefore not |
295 |
particularly user friendly. See doc/initscript.example for a simple |
295 |
particularly user friendly. See doc/initscript.example for a simple |
296 |
implementation that can be adapted to your distribution. |
296 |
implementation that can be adapted to your distribution. |