Skip to content

Latest commit

 

History

History
44 lines (41 loc) · 1.19 KB

proc_using-tftp-services-through-nat.adoc

File metadata and controls

44 lines (41 loc) · 1.19 KB

Using TFTP Services Through NAT

You can use {Project} TFTP services through NAT. To do this, on all NAT routers or firewalls, you must enable a TFTP service on UDP port 69 and enable the TFTP state tracking feature. For more information, see the documentation for your NAT device.

Using NAT on Linux with firewalld:
  • Use the following command to allow TFTP service on UDP port 69, load the kernel TFTP state tracking module, and make the changes persistent:

    # firewall-cmd --add-service=tftp && firewall-cmd --runtime-to-permanent
Using NAT on linux with iptables:
  1. Configure the firewall to allow TFTP service UDP on port 69:

    # iptables \
    --sport 69 \
    --state ESTABLISHED \
    -A OUTPUT \
    -i eth0 \
    -j ACCEPT \
    -m state \
    -p udp
    # service iptables save
  2. Load the ip_conntrack_tftp kernel TFTP state module. In the /etc/sysconfig/iptables-config file, locate IPTABLES_MODULES and add ip_conntrack_tftp as follows:

    IPTABLES_MODULES="ip_conntrack_tftp"