Blame iptables/xtables-legacy.8

Packit Service d1fe03
.\"
Packit Service d1fe03
.\" (C) Copyright 2016-2017, Arturo Borrero Gonzalez <arturo@netfilter.org>
Packit Service d1fe03
.\"
Packit Service d1fe03
.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
Packit Service d1fe03
.\" This is free documentation; you can redistribute it and/or
Packit Service d1fe03
.\" modify it under the terms of the GNU General Public License as
Packit Service d1fe03
.\" published by the Free Software Foundation; either version 2 of
Packit Service d1fe03
.\" the License, or (at your option) any later version.
Packit Service d1fe03
.\"
Packit Service d1fe03
.\" The GNU General Public License's references to "object code"
Packit Service d1fe03
.\" and "executables" are to be interpreted as the output of any
Packit Service d1fe03
.\" document formatting or typesetting system, including
Packit Service d1fe03
.\" intermediate and printed output.
Packit Service d1fe03
.\"
Packit Service d1fe03
.\" This manual is distributed in the hope that it will be useful,
Packit Service d1fe03
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service d1fe03
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service d1fe03
.\" GNU General Public License for more details.
Packit Service d1fe03
.\"
Packit Service d1fe03
.\" You should have received a copy of the GNU General Public
Packit Service d1fe03
.\" License along with this manual; if not, see
Packit Service d1fe03
.\" <http://www.gnu.org/licenses/>.
Packit Service d1fe03
.\" %%%LICENSE_END
Packit Service d1fe03
.\"
Packit Service d1fe03
.TH XTABLES-LEGACY 8 "June 2018"
Packit Service d1fe03
Packit Service d1fe03
.SH NAME
Packit Service d1fe03
xtables-legacy \(em iptables using old getsockopt/setsockopt-based kernel api
Packit Service d1fe03
Packit Service d1fe03
.SH DESCRIPTION
Packit Service d1fe03
\fBxtables-legacy\fP are the original versions of iptables that use
Packit Service d1fe03
old getsockopt/setsockopt-based kernel interface.
Packit Service d1fe03
This kernel interface has some limitations, therefore iptables can also
Packit Service d1fe03
be used with the newer nf_tables based API.
Packit Service d1fe03
See
Packit Service d1fe03
.B xtables\-nft(8)
Packit Service d1fe03
for information about the xtables-nft variants of iptables.
Packit Service d1fe03
Packit Service d1fe03
.SH USAGE
Packit Service d1fe03
The xtables-legacy-multi binary can be linked to the traditional names:
Packit Service d1fe03
Packit Service d1fe03
.nf
Packit Service d1fe03
	/sbin/iptables -> /sbin/iptables\-legacy\-multi
Packit Service d1fe03
	/sbin/ip6tables -> /sbin/ip6tables\-legacy\-multi
Packit Service d1fe03
	/sbin/iptables\-save -> /sbin/ip6tables\-legacy\-multi
Packit Service d1fe03
	/sbin/iptables\-restore -> /sbin/ip6tables\-legacy\-multi
Packit Service d1fe03
.fi
Packit Service d1fe03
Packit Service d1fe03
The iptables version string will indicate whether the legacy API (get/setsockopt) or
Packit Service d1fe03
the new nf_tables API is used:
Packit Service d1fe03
.nf
Packit Service d1fe03
	iptables \-V
Packit Service d1fe03
	iptables v1.7 (legacy)
Packit Service d1fe03
.fi
Packit Service d1fe03
Packit Service d1fe03
.SH LIMITATIONS
Packit Service d1fe03
Packit Service d1fe03
When inserting a rule using
Packit Service d1fe03
iptables \-A or iptables \-I, iptables first needs to retrieve the current active
Packit Service d1fe03
ruleset, change it to include the new rule, and then commit back the result.
Packit Service d1fe03
This means that if two instances of iptables are running concurrently, one of the
Packit Service d1fe03
updates might be lost.  This can be worked around partially with the \-\-wait option.
Packit Service d1fe03
Packit Service d1fe03
There is also no method to monitor changes to the ruleset, except periodically calling
Packit Service d1fe03
iptables-legacy-save and checking for any differences in output.
Packit Service d1fe03
Packit Service d1fe03
.B xtables\-monitor(8)
Packit Service d1fe03
will need the
Packit Service d1fe03
.B xtables\-nft(8)
Packit Service d1fe03
versions to work, it cannot display changes made using the
Packit Service d1fe03
.B iptables-legacy
Packit Service d1fe03
tools.
Packit Service d1fe03
Packit Service d1fe03
.SH SEE ALSO
Packit Service d1fe03
\fBxtables\-nft(8)\fP, \fBxtables\-translate(8)\fP
Packit Service d1fe03
Packit Service d1fe03
.SH AUTHORS
Packit Service d1fe03
Rusty Russell originally wrote iptables, in early consultation with Michael Neuling.