<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 - REDIRECT tftp doesn't work with docker"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1346">1346</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>REDIRECT tftp doesn't work with docker
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nf_conntrack
</td>
</tr>
<tr>
<th>Assignee</th>
<td>netfilter-buglog@lists.netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>maxim.kaskevich@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>REDIRECT target for tftp traffic doesn't work with tftp server launched inside
docker container. Not sure it's iptables bug but same thing for http/https
works fine.
How to reproduce
On host machine:
# modprobe nf_conntrack_tftp
# sudo iptables -t nat -A PREROUTING -m mac --mac-source <REMOTE DEVICE MAC> -p
udp --dport 69 -j REDIRECT --to-port 6969
# echo TEST > /var/tftpboot/hello.txt
# docker run -p 6969:69/udp -v /var/tftpboot:/var/tftpboot pghalliday/tftp
On device with <REMOTE DEVICE MAC>:
# tftp -g -r hello.txt <my ip>
Expect: file is downloaded
Actual results: "tftp: timeout"
System:
4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64
Additional info:
- "conntrack -L" shows that packets from remote device are "[UNREPLIED]"
- "tftp -g -r hello.txt <my ip> 6969" works fine
- I checked on the same enviroment: if instead docker, run regular tftp (I used
tftpd-hpa) and configure it to port 6969, tftp command on remote device works
fine.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>