1fwrestart(8) Safer remote firewall re-starting. fwrestart(8)
2
3
4
6 fwrestart - Re-initialize the firewall rules, disabling firewall shell
7 session is locked out.
8
9
11 fwrestart
12
13
15 fwrestart uses terminal auto-response codes to safely re-start firewall
16 rules over a remote shell session. It sends a request to your terminal
17 (xterm, for example), which responds back automatically. When that
18 response is received, ensuring that fwrestart can communicate with the
19 terminal, fwrestart then issues a command to restart the firewall. It
20 then tries another request to the terminal, and if that is not received
21 within 5 seconds, a command is run to clear the firewall and an appro‐
22 priate error is generated.
23
24 The goal is to be able to automatically detect when changes to the
25 firewall block the administrative shell session, and to take corrective
26 action.
27
28 By default the commands used to restart and clear the firewall are
29 "/sbin/service iptables start" and "/sbin/service iptables stop".
30 These commands can be changed by modifying the values of "fwRestartCmd"
31 and "fwClearCmd" at the beginning of the fwrestart script.
32
33
35 Re-load firewall rules, checking to ensure that the new rules don't
36 block the current session:
37
38 fwrestart
39
40
42 A KRUD installation (http://www.tummy.com/krud).
43
44
46 Sean Reifschneider (jafo@tummy.com) of tummy.com, ltd.
47
48 krudfind is a KRUD Linux product.
49
50 http://www.tummy.com/krud/
51
52
53
54KRUD 2003-06-29 fwrestart(8)