<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/include/netfilter.mk, branch v17.01.5</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>iptables: Fix target TRACE issue</title>
<updated>2018-01-26T07:32:46+00:00</updated>
<author>
<name>Martin Wetterwald</name>
<email>martin.wetterwald@corp.ovh.com</email>
</author>
<published>2017-01-12T14:06:00+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=6ea9a702c5b6ff0866ae93241d6b2bdd80ead5e4'/>
<id>6ea9a702c5b6ff0866ae93241d6b2bdd80ead5e4</id>
<content type='text'>
The package kmod-ipt-debug builds the module xt_TRACE, which allows
users to use '-j TRACE' as target in the chain PREROUTING of the table
raw in iptables.

The kernel compilation flag NETFILTER_XT_TARGET_TRACE is also enabled so
that this feature which is implemented deep inside the linux IP stack
(for example in sk_buff) is compiled.

But a strace of iptables -t raw -I PREROUTING -p icmp -j TRACE reveals
that an attempt is made to read /usr/lib/iptables/libxt_TRACE.so, which
fails as this dynamic library is not present on the system.

I created the package iptables-mod-trace which takes care of that, and
target TRACE now works!

https://dev.openwrt.org/ticket/16694
https://dev.openwrt.org/ticket/19661

Signed-off-by: Martin Wetterwald &lt;martin.wetterwald@corp.ovh.com&gt;
[Jo-Philipp Wich: also remove trace extension from builtin extension list
                  and depend on kmod-ipt-raw since its required for rules]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
Tested-by: Enrico Mioso &lt;mrkiko.rs@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The package kmod-ipt-debug builds the module xt_TRACE, which allows
users to use '-j TRACE' as target in the chain PREROUTING of the table
raw in iptables.

The kernel compilation flag NETFILTER_XT_TARGET_TRACE is also enabled so
that this feature which is implemented deep inside the linux IP stack
(for example in sk_buff) is compiled.

But a strace of iptables -t raw -I PREROUTING -p icmp -j TRACE reveals
that an attempt is made to read /usr/lib/iptables/libxt_TRACE.so, which
fails as this dynamic library is not present on the system.

I created the package iptables-mod-trace which takes care of that, and
target TRACE now works!

https://dev.openwrt.org/ticket/16694
https://dev.openwrt.org/ticket/19661

Signed-off-by: Martin Wetterwald &lt;martin.wetterwald@corp.ovh.com&gt;
[Jo-Philipp Wich: also remove trace extension from builtin extension list
                  and depend on kmod-ipt-raw since its required for rules]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
Tested-by: Enrico Mioso &lt;mrkiko.rs@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netfilter: add iptables-mod-rpfilter package</title>
<updated>2017-12-13T15:23:38+00:00</updated>
<author>
<name>Alin Nastac</name>
<email>alin.nastac@gmail.com</email>
</author>
<published>2017-06-16T12:16:07+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c86490605c5511e88093d3584dc9a277afcb9d6d'/>
<id>c86490605c5511e88093d3584dc9a277afcb9d6d</id>
<content type='text'>
Unlike /proc/sys/net/ipv4/conf/INTF/rp_filter flag, rule iptables -t raw
-I PREROUTING -m rpfilter --invert -j DROP prevents conntrack table to
become full when a packet flood with randomly selected source IP addresses
is received from the lan side.

Signed-off-by: Alin Nastac &lt;alin.nastac@gmail.com&gt;
(cherry picked from commit d8748e537f11ab5f2b5e2ed25d94baa5ce353984)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Unlike /proc/sys/net/ipv4/conf/INTF/rp_filter flag, rule iptables -t raw
-I PREROUTING -m rpfilter --invert -j DROP prevents conntrack table to
become full when a packet flood with randomly selected source IP addresses
is received from the lan side.

Signed-off-by: Alin Nastac &lt;alin.nastac@gmail.com&gt;
(cherry picked from commit d8748e537f11ab5f2b5e2ed25d94baa5ce353984)
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: netfilter: split out iptable_raw into a separate package</title>
<updated>2016-12-14T11:13:14+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@nbd.name</email>
</author>
<published>2016-12-13T13:54:55+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=970dd4dd58c1f1c1b4cde69a732483aacdc0236a'/>
<id>970dd4dd58c1f1c1b4cde69a732483aacdc0236a</id>
<content type='text'>
This will avoid loading it in the default configuration, which reduces
image size a bit, and (more importantly) improves performance by
avoiding some unnecessary netfilter hooks

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will avoid loading it in the default configuration, which reduces
image size a bit, and (more importantly) improves performance by
avoiding some unnecessary netfilter hooks

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netfilter: drop proprietary xt_id match</title>
<updated>2016-12-14T00:05:06+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2016-12-13T23:36:28+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=e2f8d200f598c67534c6292d732f7927b3609473'/>
<id>e2f8d200f598c67534c6292d732f7927b3609473</id>
<content type='text'>
The xt_id match was used by the firewall3 package to track its own rules but
the approach has been changed to use xt_comment instead now, so we can drop
this nonstandard extension.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The xt_id match was used by the firewall3 package to track its own rules but
the approach has been changed to use xt_comment instead now, so we can drop
this nonstandard extension.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netfilter: fix file conflicts between kmod-ipt- and kmod-nft- packages</title>
<updated>2016-09-30T21:32:05+00:00</updated>
<author>
<name>Matthias Schiffer</name>
<email>mschiffer@universe-factory.net</email>
</author>
<published>2016-09-30T21:28:21+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=cea09329e50f5766b6b44149aa17e4a681546bbb'/>
<id>cea09329e50f5766b6b44149aa17e4a681546bbb</id>
<content type='text'>
The nf_reject_* and nf_nat_masquerade_* modules are moved into the
corresponding kmod-nf- packages. Appropriate dependencies are added to the
kmod-nft- packages.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The nf_reject_* and nf_nat_masquerade_* modules are moved into the
corresponding kmod-nf- packages. Appropriate dependencies are added to the
kmod-nft- packages.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>include/netfilter.mk: fix kmod-ipt-tee build with 4.3/4.4</title>
<updated>2015-12-13T18:33:11+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2015-12-13T18:33:11+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c0f4c9e0d82e7b8be4b81eaa9107517a9d9c9702'/>
<id>c0f4c9e0d82e7b8be4b81eaa9107517a9d9c9702</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 47890
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 47890
</pre>
</div>
</content>
</entry>
<entry>
<title>netfilter.mk: fix redirect module locations for 3.19+</title>
<updated>2015-06-22T12:27:25+00:00</updated>
<author>
<name>Jonas Gorski</name>
<email>jogo@openwrt.org</email>
</author>
<published>2015-06-22T12:27:25+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=e9650d45572e4804077d4a8ed9cc555996349cad'/>
<id>e9650d45572e4804077d4a8ed9cc555996349cad</id>
<content type='text'>
ntf_redir_ipvX is part of NAT support, so they should be in the
appropriate nft-nat kmods. Since they depend on nf_nat_redirect,
nf_nat_redirect should be part of nf-nat, not ipt-nat.

Fixes nft-core gaining a missing dependency on nf_nat_redirect.ko.

Signed-off-by: Jonas Gorski &lt;jogo@openwrt.org&gt;

SVN-Revision: 46109
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ntf_redir_ipvX is part of NAT support, so they should be in the
appropriate nft-nat kmods. Since they depend on nf_nat_redirect,
nf_nat_redirect should be part of nf-nat, not ipt-nat.

Fixes nft-core gaining a missing dependency on nf_nat_redirect.ko.

Signed-off-by: Jonas Gorski &lt;jogo@openwrt.org&gt;

SVN-Revision: 46109
</pre>
</div>
</content>
</entry>
<entry>
<title>netfilter.mk: remove obsolete ip_nat_ftp related line</title>
<updated>2015-04-20T13:36:25+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2015-04-20T13:36:25+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=3edc273a332b08773068e0e1c974ad40fe58b9b9'/>
<id>3edc273a332b08773068e0e1c974ad40fe58b9b9</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 45516
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 45516
</pre>
</div>
</content>
</entry>
<entry>
<title>netfilter.mk: move IRC conntrack/nat helpers to kmod-nf-nathelper-extra</title>
<updated>2015-04-20T13:36:02+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2015-04-20T13:36:02+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=391387eb69424b7cb40f473b8183e20d2d61a1d8'/>
<id>391387eb69424b7cb40f473b8183e20d2d61a1d8</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 45515
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 45515
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: finally remove layer7 filter support</title>
<updated>2015-04-13T22:23:14+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2015-04-13T22:23:14+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=d0ba3bb1e24702e472eee2f3a5b7f9e4646b8ff1'/>
<id>d0ba3bb1e24702e472eee2f3a5b7f9e4646b8ff1</id>
<content type='text'>
it has been non-functional for years and caused numerous memleaks and
crashes for people that tried to enable it.
it has no maintained upstream source, and it does not look like it's
going to be fixed any time soon

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 45423
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
it has been non-functional for years and caused numerous memleaks and
crashes for people that tried to enable it.
it has no maintained upstream source, and it does not look like it's
going to be fixed any time soon

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 45423
</pre>
</div>
</content>
</entry>
</feed>
