<div class="gmail_quote">On 11 October 2011 00:05, Frantisek Hanzlik <span dir="ltr">&lt;<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Aaron Gray wrote:<br>
&gt; On 10 October 2011 23:31, Frantisek Hanzlik &lt;<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a> &lt;mailto:<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a>&gt;&gt;<br>
<div class="im">&gt; wrote:<br>
&gt;<br>
&gt;     Aaron Gray wrote:<br>
&gt;     &gt; On 10 October 2011 22:20, Frantisek Hanzlik &lt;<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a>&gt; &lt;mailto:<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a> &lt;mailto:<a href="mailto:franta@hanzlici.cz">franta@hanzlici.cz</a>&gt;&gt;&gt;<br>


<div class="im">&gt;     &gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     Aaron Gray wrote:<br>
&gt;     &gt;     ...<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     4) if You use firewall (iptables), You should load nf_conntrack_tftp module,<br>
&gt;     &gt;     &gt;     for tracking ephemeral ports. That means /etc/sysconfig/iptables-config should<br>
&gt;     &gt;     &gt;     contain line as:<br>
&gt;     &gt;     &gt;     ...<br>
&gt;     &gt;     &gt;     IPTABLES_MODULES=&quot;nf_conntrack_tftp&quot;<br>
&gt;     &gt;     &gt;     ...<br>
&gt;     &gt;     &gt;     (other module is for NATting tftp connection)<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; using localhost<br>
&gt;     &gt;<br>
&gt;     &gt;     loopback (lo interface) is subject to firewall rules too. And Your tcpdump<br>
&gt;     &gt;     below show IP addresses 192.168.0.4 and 192.168.0.5 - they perhaps are not<br>
&gt;     &gt;     at lo loopback interface?<br>
&gt;     &gt;     Have You firewall active?<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; I wrote a firewall rule :-<br>
&gt;     &gt;<br>
&gt;     &gt; -A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT<br>
&gt;<br>
&gt;     Then You should have (best at beginning of filter table rules) rule:<br>
&gt;<br>
&gt;     -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br>
&gt;<br>
&gt;<br>
&gt; Okay.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     (and nf_conntrack_tftp module listed in &quot;/etc/sysconfig/iptables-config&quot;,<br>
&gt;     as I wrote before). You must restart iptables after these changes.<br>
<br>
</div>Is nf_conntrack_tftp module loaded? You should obtain similar output:<br>
# lsmod |grep tftp<br>
nf_conntrack_tftp       3325  0<br>
nf_conntrack           56162  4 nf_conntrack_tftp,nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state<br></blockquote><div><br>No contrack_tftp running, but it is not needed with localhost TFTP test.<br><br>How do I load conntrack_tftp ?<br>

</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
&gt;     &gt;     &gt;     5) /var/log/messages should contain entries as:<br>
&gt;     &gt;     &gt;     Oct 10 20:28:32 ns xinetd[1908]: START: tftp pid=5315 from=192.168.1.22<br>
&gt;     &gt;     &gt;     Oct 10 20:28:42 ns xinetd[1908]: EXIT: tftp status=0 pid=5315 duration=10(sec)<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Oct 10 21:09:07 gold xinetd[13402]: Exiting...<br>
&gt;     &gt;     &gt; Oct 10 21:09:12 gold xinetd[13650]: xinetd Version 2.3.14 started with libwrap loadavg<br>
&gt;     &gt;     &gt; labeled-networking options compiled in.<br>
&gt;     &gt;     &gt; Oct 10 21:09:12 gold xinetd[13650]: Started working: 1 available service<br>
&gt;     &gt;<br>
&gt;     &gt;     There isn&#39;t nothing about that xinetd starts tftp daemon. Mentioned<br>
&gt;     &gt;     &quot;1 available service&quot; is tftp?<br>
&gt;     &gt;     This command show only tftp:<br>
&gt;     &gt;<br>
&gt;     &gt;     # grep &#39;^[[:blank:]]*disable.*no&#39; /etc/xinetd.d/*<br>
&gt;     &gt;     /etc/xinetd.d/tftp:     disable = no<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; I tested it and it is the only xinetd demon running<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     Next command display some similar at Your server?:<br>
&gt;     &gt;     # netstat -a -n -p --ip|grep 69<br>
</div>&gt;     &gt;     udp        0      0 <a href="http://0.0.0.0:69" target="_blank">0.0.0.0:69</a> &lt;<a href="http://0.0.0.0:69" target="_blank">http://0.0.0.0:69</a>&gt;           0.0.0.0:*      1595/xinetd<br>
<br>
What netstat now displays? Is xinetd listening at udp 69 ??<br>
<div><br></div></blockquote><div>[root@XXXX ang]# netstat -a -n -p --ip|grep 69<br>udp        0      0 <a href="http://0.0.0.0:69">0.0.0.0:69</a>                  0.0.0.0:*                               1127/xinetd    <br>

<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
&gt;     This command has probably no output at Your server, because...<br>
&gt;<br>
&gt;     &gt;&gt;     Can You post Your &quot;/etc/xinetd.d/tftp&quot; file?<br>
&gt;     &gt;<br>
&gt;     &gt; Attached.<br>
&gt;<br>
&gt;     ... Your &quot;/etc/xinetd.d/tftp&quot; contains &quot;disable = yes&quot; line, thus<br>
&gt;<br>
&gt;<br>
&gt; sorry, don&#39;t know how that happened ? Its late here !<br>
<br>
</div>Here too... :)<br>
Did You reload xinetd daemon after changes in &quot;/etc/xinetd.d/tftp&quot;?<br></blockquote><div><br>systemctl restart xinetd.service<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div class="im"><br>
&gt; It still does not work with &quot;disable = no&quot;<br>
&gt;<br>
&gt;     tftp service is disabled. You must change it to &quot;disable = no&quot; and<br>
&gt;     reload xinetd (using &quot;service xinetd reload&quot; or<br>
&gt;     &quot;systemctl reload xinetd.service&quot;). &quot;/var/log/messages&quot; tail<br>
&gt;     should indicate new service:<br>
&gt;<br>
&gt;     Oct 11 00:25:10 franta xinetd[1556]: Starting reconfiguration<br>
&gt;     Oct 11 00:25:10 franta xinetd[1556]: Swapping defaults<br>
&gt;     Oct 11 00:25:10 franta xinetd[1556]: Reconfigured: new=1 old=0 dropped=0 (services)<br>
&gt;<br>
&gt;     and above netstat command should display xinetd listening at<br>
&gt;     udp port 69<br>
&gt;<br>
&gt;<br>
&gt; Thanks for bearing with me on this.<br>
&gt;<br>
&gt; Just tried rsync and that works fine so its not xinetd.<br>
<br>
</div>I understand maybe only partialy, sorry for my extrabad english.<br>
What display &quot;netstat -a -n -p|grep xinet&quot; command?<br>
</blockquote></div><br>[root@XXXX ang]# netstat -a -n -p|grep xinet<br>tcp        0      0 :::873                      :::*                        LISTEN      1127/xinetd         <br>udp        0      0 <a href="http://0.0.0.0:69">0.0.0.0:69</a>                  0.0.0.0:*                               1127/xinetd         <br>

unix  2      [ ]         DGRAM                    17415  1127/xinetd         <br><br>Thanks,<br><br>Aaron<br><br>