• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

TFTP Breaks with UFW Enabled on Ubuntu 20.04

Scheduled Pinned Locked Moved
Linux Problems
1
1
788
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    turtledillpickle
    last edited by Jun 17, 2022, 4:52 PM

    I am setting up a Fog server and got everything working as it should. However, when I enable UFW I am not able to transfer the image over TFTP. I have a rule allowing port 69, and the connection is able to initiate. It appears then that the file transfer gets done over a higher numbered port, and UFW blocks that. My understanding is that UFW should allow an already established connection like this to happen. I tried enabling the nf_conntrack and nf_conntrack_tftp kernel modules, and adding these 2 lines to /etc/ufw/before.rules

    -A ufw-before-input -p udp -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A ufw-before-input -p udp --dport 69 -m state --state NEW -j ACCEPT
    

    Is this expected behavior for UFW? Everything I’m reading seems to just point to ufw allow tftp or ufw allow 69. Anyone else out there running FOG with UFW enabled successfully?

    Thanks!

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post

    249

    Online

    12.0k

    Users

    17.3k

    Topics

    155.2k

    Posts
    Copyright © 2012-2024 FOG Project