Man page - iptables-xml(1)
Packages contains this manual
- ip6tables-legacy(8)
- ip6tables-restore-translate(8)
- ip6tables-restore(8)
- nfnl_osf(8)
- iptables-xml(1)
- ebtables-nft-restore(8)
- arptables-nft-save(8)
- ebtables-translate(8)
- iptables-nft-save(8)
- ip6tables-nft-restore(8)
- iptables-nft-restore(8)
- xtables-legacy(8)
- iptables-restore(8)
- xtables-nft(8)
- ip6tables-legacy-save(8)
- ebtables-nft-save(8)
- iptables-restore-translate(8)
- iptables-translate(8)
- ip6tables-apply(8)
- arptables-nft-restore(8)
- iptables-extensions(8)
- xtables-translate(8)
- ip6tables-nft-save(8)
- ip6tables-legacy-restore(8)
- ebtables-nft(8)
- ip6tables-nft(8)
- xtables-nft-multi(8)
- ip6tables-translate(8)
- iptables-save(8)
- arptables-translate(8)
- iptables-legacy-save(8)
- iptables-legacy-restore(8)
- ip6tables-save(8)
- iptables(8)
- xtables-legacy-multi(8)
- arptables-nft(8)
- ip6tables(8)
- iptables-nft(8)
- iptables-apply(8)
- iptables-legacy(8)
- xtables-monitor(8)
apt-get install iptables
Available languages:
en jaManual
IPTABLES-XML
名 前書 式
説 明
バ グ
作 者
関 連 項 目
名 前
iptables-xml — iptables-xml 形 式 か ら XML 形 式 へ 変 換 す る
書 式
iptables-xml [ -c ] [ -v ]
説 明
iptables-xml
を 使 う と 、 iptables-save
の 出 力 を よ り
扱 い や す い XML 形
式 に 変 換 し 、
標 準 出 力 に 出
力 す る こ と が
で き る 。 フ ァ
イ ル に 書 き 出
す に は 、 シ ェ
ル で 提 供 さ れ
て い る I/O リ ダ イ
レ ク シ ョ ン を
使 う こ と 。
-c
,
--combine
combine consecutive rules with the same matches but different targets. iptables does not currently support more than one target per match, so this simulates that by collecting the targets from consecutive iptables rules into one action tag, but only when the rule matches are identical. Terminating actions like RETURN, DROP, ACCEPT and QUEUE are not combined with subsequent targets.
-v , --verbose
XML の 生 成 元 と な っ た iptables の 行 を XML コ メ ン ト と し て 出 力 す る 。
iptables-xml does a mechanistic conversion to a very expressive xml format; the only semantic considerations are for -g and -j targets in order to discriminate between <call> <goto> and <nane-of-target> as it helps xml processing scripts if they can tell the difference between a target like SNAT and another chain.
出 力 例 を 以 下 に 示 す 。
<iptables-rules>
<table name="mangle">
<chain name="PREROUTING"
policy="ACCEPT" packet-count="63436"
byte-count="7137573">
<rule>
<conditions>
<match>
<p>tcp</p>
</match>
<tcp>
<sport>8443</sport>
</tcp>
</conditions>
<actions>
<call>
<check_ip/>
</call>
<ACCEPT/>
</actions>
</rule>
</chain>
</table> </iptables-rules>
XML か ら iptables-save へ の 変 換 は 、 以 下 の よ う に iptables.xslt ス ク リ プ ト と xsltproc を 使 っ て 行 う こ と が で き る 。 libxsltproc な ど を 使 っ た カ ス タ ム プ ロ グ ラ ム で 行 う こ と が で き る 。
xsltproc iptables.xslt my-iptables.xml | iptables-restore
バ グ
iptables-1.3.7 リ リ ー ス の 時 点 で は 知 ら れ て い な い 。
作 者
Sam Liddicott <azez@ufomechanic.net>
関 連 項 目
iptables-save (8), iptables-restore (8), iptables (8)