gempir

Untitled

Jul 8th, 2024
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # accept any TCP ACK, RST, PSH or FIN those are fine to accept automatically
  2. -A ufw-before-input -p tcp --tcp-flags ACK ACK -j ACCEPT
  3. -A ufw-before-input -p tcp --tcp-flags FIN FIN -j ACCEPT
  4. -A ufw-before-input -p tcp --tcp-flags PSH PSH -j ACCEPT
  5. -A ufw-before-input -p tcp --tcp-flags RST RST -j ACCEPT
  6.  
  7. # anything outgoing is fine
  8. -A ufw-before-output -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment