File: uruk-save.txt

package info (click to toggle)
uruk 20140627-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,088 kB
  • ctags: 70
  • sloc: sh: 1,770; makefile: 143; xml: 51
file content (72 lines) | stat: -rw-r--r-- 2,805 bytes parent folder | download | duplicates (2)
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
uruk-save(8)                SYSTEM ADMINISTRATION                 uruk-save(8)



  NAME
      uruk-save - save uruk rc configuration in iptables-save-style format

  SYNOPSIS
      uruk-save [-6]

  OPTIONS
      -6
        Don't  save  iptables rules but save ip6tables rules, for IPv6 filter-
        ing.

  DESCRIPTION
      uruk-save saves the IPv4 rules (for all of the filter, raw,  mangle  and
      nat  tables)  in  /etc/uruk/rc in iptables-save(5)-style format, without
      invoking iptables(8). If the -6 option is given, the IPv6 rules (if any)
      in  /etc/uruk/rc are saved, in ip6tables-save(5)-style format. It prints
      output to stdout; suggested invocation therefore is

       # uruk-save > /var/lib/uruk/iptables/active

      or

       # uruk-save -6 > /var/lib/uruk/ip6tables/active

      . 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 urukctl which comes with
      uruk is suitable for most cases, it invokes uruk-save if needed.

  WARNING
      Just as uruk, in order to keep the uruk-save script  small  and  simple,
      the  script  does very little error handling. It does not check the con-
      tents of the rc file in any way before executing it. When your  rc  file
      contains  bogus  stuff,  uruk-save will very likely behave in unexpected
      ways. Caveat emptor.

      Things will likely break if you do very fancy stuff in an rc hook  file.
      If  your  rc file is in verbose mode (i.e. it features set -x) or in no-
      act mode (i.e. it features a hardcoded iptables='echo iptables'),  uruk-
      save fails.

  SEE ALSO
      uruk(8), uruk-rc(5) .

  COPYRIGHT
      Copyright  (C)  2005,  2007,  2010,  2011, 2012, 2013 Joost van Baal-Ili
      <joostvb-uruk@mdcc.cx>

      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.

      This  program  is  distributed  in  the hope that it will be useful, but
      WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
      ITY  or  FITNESS  FOR  A  PARTICULAR PURPOSE. See the GNU General Public
      License for more details.

      You should have received a copy of the GNU General Public License  along
      with this program. If not, see http://www.gnu.org/licenses/.

  AUTHOR
      Joost van Baal-Ili <joostvb-uruk@mdcc.cx>



  uruk-save 20130809                  9  2013                       uruk-save(8)