I have two F21 systems on the same subnet. Client and server.
On the server I created a directory /root/tftp with 777 permissions.
I have opened up the tftpd service with the firewall gui interface and
firewall-cmd --zone=public --list-all
shows services includes tftp (I am assuming here that firewalld knowns that tftp is a udp app)
The server is running tftpd in foreground under sudo:
in.tftpd -Lc4pv -s /root/tftp
The client connects with 'tftp server' and gets tftp> prompt. A status shows the client is connected to the server (thus firewall is allowing connection). But a put fails with 'Transfer timed out'.
There are no messages logged. I have tried increasing verbosity with 'vvv' but no logging.
I have even created a file on the server under /root/tftp and tried to 'get' it, which also timed out.
So what am I missing here?
On Dec 29, 2014 10:18 AM, "Robert Moskowitz" rgm@htt-consult.com wrote:
I have two F21 systems on the same subnet. Client and server.
On the server I created a directory /root/tftp with 777 permissions.
I have opened up the tftpd service with the firewall gui interface and
firewall-cmd --zone=public --list-all
shows services includes tftp (I am assuming here that firewalld knowns
that tftp is a udp app)
The server is running tftpd in foreground under sudo:
in.tftpd -Lc4pv -s /root/tftp
The client connects with 'tftp server' and gets tftp> prompt. A status
shows the client is connected to the server (thus firewall is allowing connection). But a put fails with 'Transfer timed out'.
There are no messages logged. I have tried increasing verbosity with
'vvv' but no logging.
I have even created a file on the server under /root/tftp and tried to
'get' it, which also timed out.
So what am I missing here?
--
To turn on tftpd, `systemctl enable tftpd.socket` (and maybe also start the socket)
it serves from /var/lib/tftp by default, and files there will have an appropriate selinux label.
Not sure about your manually invoked tftpd, but you probably didn't want that long-term anyway :P
--Pete
On 12/29/2014 12:55 PM, Pete Travis wrote:
On Dec 29, 2014 10:18 AM, "Robert Moskowitz" <rgm@htt-consult.com mailto:rgm@htt-consult.com> wrote:
I have two F21 systems on the same subnet. Client and server.
On the server I created a directory /root/tftp with 777 permissions.
I have opened up the tftpd service with the firewall gui interface and
firewall-cmd --zone=public --list-all
shows services includes tftp (I am assuming here that firewalld
knowns that tftp is a udp app)
The server is running tftpd in foreground under sudo:
in.tftpd -Lc4pv -s /root/tftp
The client connects with 'tftp server' and gets tftp> prompt. A
status shows the client is connected to the server (thus firewall is allowing connection). But a put fails with 'Transfer timed out'.
There are no messages logged. I have tried increasing verbosity
with 'vvv' but no logging.
I have even created a file on the server under /root/tftp and tried
to 'get' it, which also timed out.
So what am I missing here?
--
To turn on tftpd, `systemctl enable tftpd.socket` (and maybe also start the socket)
it serves from /var/lib/tftp by default, and files there will have an appropriate selinux label.
Not sure about your manually invoked tftpd, but you probably didn't want that long-term anyway :P
Actually, as often as I need tftpd, I DO want it invoked manually. I am doing this on a notebook what has the firmware and config files for the switches. Update the firmware, install the config files. Check that all is well and backup the config files. Then take down tftpd for the next year or so.
So I don't want to run it from inetd.d. The man pages says it CAN be done.
Do I still have to enable it? Is this for selinux's use (perhaps the problem is selinux, but no logging saying so).
On Dec 29, 2014 11:23 AM, "Robert Moskowitz" rgm@htt-consult.com wrote:
On 12/29/2014 12:55 PM, Pete Travis wrote:
On Dec 29, 2014 10:18 AM, "Robert Moskowitz" rgm@htt-consult.com wrote:
I have two F21 systems on the same subnet. Client and server.
On the server I created a directory /root/tftp with 777 permissions.
I have opened up the tftpd service with the firewall gui interface and
firewall-cmd --zone=public --list-all
shows services includes tftp (I am assuming here that firewalld knowns
that tftp is a udp app)
The server is running tftpd in foreground under sudo:
in.tftpd -Lc4pv -s /root/tftp
The client connects with 'tftp server' and gets tftp> prompt. A
status shows the client is connected to the server (thus firewall is allowing connection). But a put fails with 'Transfer timed out'.
There are no messages logged. I have tried increasing verbosity with
'vvv' but no logging.
I have even created a file on the server under /root/tftp and tried to
'get' it, which also timed out.
So what am I missing here?
--
To turn on tftpd, `systemctl enable tftpd.socket` (and maybe also start
the socket)
it serves from /var/lib/tftp by default, and files there will have an
appropriate selinux label.
Not sure about your manually invoked tftpd, but you probably didn't want
that long-term anyway :P
Actually, as often as I need tftpd, I DO want it invoked manually. I am
doing this on a notebook what has the firmware and config files for the switches. Update the firmware, install the config files. Check that all is well and backup the config files. Then take down tftpd for the next year or so.
So I don't want to run it from inetd.d. The man pages says it CAN be
done.
Do I still have to enable it? Is this for selinux's use (perhaps the
problem is selinux, but no logging saying so).
--
Yeah, it can probably be done. I was pointing to a method I know to work, hoping you could get that going and work in your direction from there.
xinetd isn't relevant here anymore, though. systemd gives you socket activation for free, you just have to turn it on.
--Pete
On Tue, Dec 30, 2014 at 02:56:58PM -0700, Pete Travis wrote:
On Dec 29, 2014 11:23 AM, "Robert Moskowitz" rgm@htt-consult.com wrote:
The server is running tftpd in foreground under sudo:
in.tftpd -Lc4pv -s /root/tftp
The client connects with 'tftp server' and gets tftp> prompt. A
status shows the client is connected to the server (thus firewall is allowing connection). But a put fails with 'Transfer timed out'.
There are no messages logged. I have tried increasing verbosity with
'vvv' but no logging.
I have even created a file on the server under /root/tftp and tried to
'get' it, which also timed out.
So what am I missing here?
--
To turn on tftpd, `systemctl enable tftpd.socket` (and maybe also start
the socket)
it serves from /var/lib/tftp by default, and files there will have an
appropriate selinux label.
Not sure about your manually invoked tftpd, but you probably didn't want
that long-term anyway :P
Actually, as often as I need tftpd, I DO want it invoked manually. I am
doing this on a notebook what has the firmware and config files for the switches. Update the firmware, install the config files. Check that all is well and backup the config files. Then take down tftpd for the next year or so.
So I don't want to run it from inetd.d. The man pages says it CAN be
done.
Do I still have to enable it? Is this for selinux's use (perhaps the
problem is selinux, but no logging saying so).
#Though you manually created the i.e "my_switch_conf.CONF" file make sure that these file has world writeable permissions after you have loaded the swith || router conf you change it back to 644.
#Remember the time out! message it is always related to this on my years of using TFTP to do the same work as you do with cisco devices.
#Cheers! && Happy 2015