<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - TARPIT function does not work in ip6tables"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1097">1097</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>TARPIT function does not work in ip6tables
</td>
</tr>
<tr>
<th>Product</th>
<td>netfilter/iptables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Ubuntu
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>ip6_tables (kernel)
</td>
</tr>
<tr>
<th>Assignee</th>
<td>netfilter-buglog@lists.netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rich.compton@charter.com
</td>
</tr></table>
<p>
<div>
<pre>I have ip6tables configured very similarly to iptables. The configuration is
set up to tarpit all tcp connections. The configuration works well with IPv4
but fails with IPv6. I see packets incrementing in the TAR chain but no
tarpitting packets are transmitted on IPv6.
sudo ip6tables -L -n -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all lo * ::1 ::1
5 488 DROP all ens33 * ::/0 ::/0
5 424 ACCEPT icmpv6 ens32 * ::/0 ::/0
0 0 TAR all ens32 * ::/0 ::/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
4 320 TAR all ens32 * ::/0 ::/0
Chain OUTPUT (policy ACCEPT 3 packets, 200 bytes)
pkts bytes target prot opt in out source destination
Chain TAR (2 references)
pkts bytes target prot opt in out source destination
4 320 LOG tcp * * ::/0 ::/0
limit: avg 10/min burst 5 LOG flags 0 level 4 prefix "Tarpitting: "
4 320 TARPIT tcp * * ::/0 ::/0
limit: avg 100/sec burst 5 -j TARPIT --tarpit
0 0 LOG all * * ::/0 ::/0
limit: avg 10/min burst 5 LOG flags 0 level 4 prefix "Dropping: "
0 0 DROP all * * ::/0 ::/0
sudo tcpdump -i ens32 -n -vv ip or ip6
11:08:00.960362 IP6 (hlim 62, next-header TCP (6) payload length: 40)
2001:db8:2::2.57444 > 2001:db66:22::2.23: Flags [S], cksum 0xff54 (correct),
seq 855240622, win 28800, options [mss 1440,sackOK,TS val 2398100706 ecr
0,nop,wscale 7], length 0
11:08:01.966189 IP6 (hlim 62, next-header TCP (6) payload length: 40)
2001:db8:2::2.57444 > 2001:db66:22::2.23: Flags [S], cksum 0xfe5a (correct),
seq 855240622, win 28800, options [mss 1440,sackOK,TS val 2398100956 ecr
0,nop,wscale 7], length 0
11:08:03.964066 IP6 (hlim 62, next-header TCP (6) payload length: 40)
2001:db8:2::2.57444 > 2001:db66:22::2.23: Flags [S], cksum 0xfc65 (correct),
seq 855240622, win 28800, options [mss 1440,sackOK,TS val 2398101457 ecr
0,nop,wscale 7], length 0
11:08:07.983900 IP6 (hlim 62, next-header TCP (6) payload length: 40)
2001:db8:2::2.57444 > 2001:db66:22::2.23: Flags [S], cksum 0xf87a (correct),
seq 855240622, win 28800, options [mss 1440,sackOK,TS val 2398102460 ecr
0,nop,wscale 7], length 0
11:08:15.999846 IP6 (hlim 62, next-header TCP (6) payload length: 40)
2001:db8:2::2.57444 > 2001:db66:22::2.23: Flags [S], cksum 0xf0a6 (correct),
seq 855240622, win 28800, options [mss 1440,sackOK,TS val 2398104464 ecr
0,nop,wscale 7], length 0
rcompton@tarpit-honeypot:~$ uname -a
Linux tarpit-honeypot 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC
2016 x86_64 x86_64 x86_64 GNU/Linux</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>