File: uruk-save.html

package info (click to toggle)
uruk 20190121-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,188 kB
  • sloc: sh: 1,852; makefile: 151; xml: 51
file content (193 lines) | stat: -rw-r--r-- 7,199 bytes parent folder | download | duplicates (3)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (c) 2019 Joost van Baal-Ilić <joostvb-uruk@mdcc.cx> -->
<head>
<meta name="keywords" content="manual">
<style type="text/css">
/* START aephea.base.css */
body
{ text-align: justify;
margin-left: 0%;
margin-right: 0%;
}
a:link { text-decoration: none; }
a:active { text-decoration: none; }
a:visited { text-decoration: none; }
a:link { color: #1111aa; }
a:active { color: #1111aa; }
a:visited { color: #111166; }
a.local:link { color: #11aa11; }
a.local:active { color: #11aa11; }
a.local:visited { color: #116611; }
a.intern:link { color: #1111aa; }
a.intern:active { color: #1111aa; }
a.intern:visited { color: #111166; }
a.extern:link { color: #aa1111; }
a.extern:active { color: #aa1111; }
a.extern:visited { color: #661111; }
a.quiet:link { color: black; }
a.quiet:active { color: black; }
a.quiet:visited { color: black; }
div.verbatim
{ font-family: monospace;
margin-top: 1em;
margin-bottom: 1em;
font-size: 10pt;
margin-left: 2em;
white-space: pre;
}
div.indent
{ margin-left: 8%;
margin-right: 0%;
}
.right { text-align: right; }
.left { text-align: left; }
.nowrap { white-space: nowrap; }
.item_leader
{ position: relative;
margin-left: 8%;
}
.item_compact { position: absolute; vertical-align: baseline; }
.item_cascade { position: relative; }
.item_leftalign { text-align: left; }
.item_rightalign
{ width: 2em;
text-align: right;
}
.item_compact .item_rightalign
{ position: absolute;
width: 52em;
right: -2em;
text-align: right;
}
.item_text
{ position: relative;
margin-left: 3em;
}
.smallcaps { font-size: smaller; text-transform: uppercase }
/* END aephea.base.css */
body { font-family: "Garamond", "Gill Sans", "Verdana", sans-serif; }
body
{ text-align: justify;
margin-left: 8%;
margin-right: 8%;
}
</style>
<title>uruk-save</title>
</head>
<body>
<p style="text-align:right">
21 јан 2019&nbsp;&nbsp;&nbsp;
<a class="local" href="uruk-save.ps"><b>uruk-save</b></a>
20190121
</p>
<div class=" itemize " style="margin-top:1em; font-size:100%">
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">1.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#name">NAME</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">2.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#synopsis">SYNOPSIS</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">3.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#options">OPTIONS</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">4.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#description">DESCRIPTION</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">5.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#warning">WARNING</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">6.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#see also">SEE ALSO</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">7.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#copyright">COPYRIGHT</a>
</div>
<div class=" item_compact"><div class=" item_rightalign nowrap " style="right:-3em">8.</div></div>
<div class=" item_text " style="margin-left:4em">
<a class="intern" href="#author">AUTHOR</a>
</div>
</div>

<a name="name"></a>
<h2>NAME</h2>
<p style="margin-bottom:0" class="asd_par">
uruk-save &mdash; save uruk rc configuration in iptables-save-style format</p>

<a name="synopsis"></a>
<h2>SYNOPSIS</h2>
<p style="margin-bottom:0" class="asd_par"><b>uruk-save</b> <b>[</b>-6<b>]</b></p>

<a name="options"></a>
<h2>OPTIONS</h2>
<div class=" itemize " style="margin-top:1em; font-size:100%">
<div class=" item_cascade"><div class=" item_leftalign nowrap " >-6</div></div>
<div class=" item_text " style="margin-left:2em">
Don't save iptables rules but save
ip6tables rules, for IPv6 filtering.
</div>
</div>

<a name="description"></a>
<h2>DESCRIPTION</h2>
<b>uruk-save</b> saves the IPv4 rules (for all of the filter, raw, mangle and nat
tables) in <tt>/etc/uruk/rc</tt> in <b>iptables-save(5)</b>-style format, without invoking
<b>iptables(8)</b>. If the <b>-6</b> option is given, the IPv6 rules (if any) in
<tt>/etc/uruk/rc</tt> are saved, in <b>ip6tables-save(5)</b>-style format. It prints output
to stdout; suggested invocation therefore is
<div class="verbatim"> # uruk-save &gt; /var/lib/uruk/iptables/active</div>
or
<div class="verbatim"> # uruk-save -6 &gt; /var/lib/uruk/ip6tables/active</div>
. This script is useful if you don't like the default behaviour of the uruk
init script, and would like it to load the current uruk rc file instead of the
current active file. Please note: generally you don't need to invoke this
script manually: the script <b>urukctl</b> which comes with uruk is suitable for most
cases, it invokes <b>uruk-save</b> if needed.

<a name="warning"></a>
<h2>WARNING</h2>
Just as <b>uruk</b>, in order to keep the <b>uruk-save</b> script small and simple, the
script does very little error handling. It does not check the contents of the
<i>rc</i> file in any way before executing it. When your <i>rc</i> file contains bogus
stuff, <b>uruk-save</b> will very likely behave in unexpected ways. Caveat emptor.
<p style="margin-bottom:0" class="asd_par">
Things will likely break if you do very fancy stuff in an <i>rc</i> hook file. If
your <i>rc</i> file is in verbose mode (i.e. it features <tt>set -x</tt>) or in no-act
mode (i.e. it features a hardcoded <tt>iptables='echo iptables'</tt>), <b>uruk-save</b>
fails.
</p>

<a name="see also"></a>
<h2>SEE ALSO</h2>
<a class="local sibling" href="uruk.html">uruk(8)</a>, <a class="local sibling" href="uruk-rc.html">uruk-rc(5)</a> .

<a name="copyright"></a>
<h2>COPYRIGHT</h2>
Copyright (C) 2005, 2007, 2010, 2011, 2012, 2013 Joost van Baal-Ilić &lt;joostvb-uruk@mdcc.cx&gt;
<p style="margin-bottom:0" class="asd_par">
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.
</p> <p style="margin-bottom:0" class="asd_par">
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
</p> <p style="margin-bottom:0" class="asd_par">
You should have received a copy of the GNU General Public License along
with this program. If not, see <a class="extern" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.
</p>

<a name="author"></a>
<h2>AUTHOR</h2>
Joost van Baal-Ilić &lt;joostvb-uruk@mdcc.cx&gt;
</body>
</html>