Has anyone ever got TFTP-Proxy working?

Started by wfhausmann, January 25, 2019, 01:46:16 AM

Previous topic - Next topic
There was a post a while back with a link to GitHub but nothing that was firm.

Someone in IRC got it working, yes.
I could build a simple plugin, but without upload function

I followed the what previous users did, but I'm not sure it's working properly. I don't see it starting.

Do you see receiving packets on the firewall interface? If yes, check firewall logs

When I send the tftp request, the reply is being blocked.

FYI, I've added this:
<?php

function tftpproxy_enabled()
{
    return true;
}

function tftpproxy_firewall($fw)
{
    if (!tftpproxy_enabled()) {
        return;
    }

    $fw->registerAnchor('tftp-proxy/*', 'nat');
    $fw->registerAnchor('tftp-proxy/*', 'rdr');
    $fw->registerAnchor('tftp-proxy/*', 'fw');
}

And I've added this:

tftp    dgram   udp     wait    root    /usr/libexec/tftp-proxy tftp-proxy -v


I reloaded the services after that.

Thanks



Not sure I understand what you're asking. Are you saying to port forward it? TFTP responds on a random UDP 1024> and the firewall rejects it. I've port forwarded that range back into the internal host but the FW re-writes the port number so the host no longer knows what to do with it.

So does anyone else have any thoughts on how to get tftp for a Cisco phone through the firewall?