TFTP service setup port range

Status
Not open for further replies.

marian78

Patron
Joined
Jun 30, 2011
Messages
210
Hi, i want ask, if there is some way to set used port range for communication with clients. Not port 69 UDP, but other ports used for communication 1024 to 65535 UDP.
I want firewalling freenas tftp service used for PXE boot, but i dont want open from DMZ to LAN full range 1024:65535 UPD.

edit:
i see this in logs from firewall:
from LAN to DMZ: 69 UDP (this is not problem)
from DMZ to LAN: 1024 UDP and range of ports from 49152 to 49167 UDP
 

marian78

Patron
Joined
Jun 30, 2011
Messages
210
For now not, because i do not had much time for this. In parallel solving my pfsensebox. But time is close... :) When i will get some more info, i will post here.

EDIT:
find this:
using ftp/tftp-hpa
Enable and configure in /etc/rc.conf:
tftpd_enable="YES"
tftpd_flags="--port-range 59000:59499 --user tftp --blocksize 1468 --secure /srv/tftp"

But i thing, that freenas uses integrated tftp not tftp-hpa. Will try add "--port-range 59000:59499" to "Extra options:" tftp service.

edit2: adding "--port-range 59000:59499" to "Extra options:" causing tftp service to not start.
 
Last edited:
Status
Not open for further replies.
Top