<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:ffmancera@riseup.net" title="Fernando F. Mancera <ffmancera@riseup.net>"> <span class="fn">Fernando F. Mancera</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - syntax issue with tproxy"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1310">bug 1310</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ffmancera@riseup.net
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - syntax issue with tproxy"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1310#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - syntax issue with tproxy"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1310">bug 1310</a>
from <span class="vcard"><a class="email" href="mailto:ffmancera@riseup.net" title="Fernando F. Mancera <ffmancera@riseup.net>"> <span class="fn">Fernando F. Mancera</span></a>
</span></b>
<pre>Hi Arturo! I have been trying to solve this issue. AFAIK, fedora uses the last
nftables stable release which doesn't support tproxy. The syntax from the
redhat and debian tickets are fine.
# nft add table filter
# nft add chain filter divert "{ type filter hook prerouting priority -150; }"
# nft add rule filter divert meta l4proto tcp socket transparent 1 meta mark
set 1 accept
# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1
accept
# nft add rule filter divert 'ip daddr 127.0.0.1 meta l4proto tcp tproxy to
:2000 meta mark set 1 accept'
# nft list ruleset
table ip filter {
chain divert {
type filter hook prerouting priority mangle; policy accept;
meta l4proto tcp socket transparent 1 meta mark set 0x00000001 accept
tcp dport 80 tproxy to :50080 meta mark set 0x00000001 accept
ip daddr 127.0.0.1 meta l4proto tcp tproxy to :2000 meta mark set
0x00000001 accept
}
}
Thank you!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>