Score:0

Ubuntu Network: Allow UDP connection to Port B if a UDP connection was established to Port A before

nl flag

I want to setup an IPv4 firewall for UDP connections to port :7777 with the following rules:

  • By default block all connections to UDP Port :7777.
  • Allow only whitelisted IPs connections to UDP Port :7777.
  • If an IP has made a UDP connection to port :8888 then add it to the whitelist.

How can I archive this? Can this be done using IPTables, UFW or something else?

Riley Scott Jacob avatar
br flag
What do you mean by UDP connection? I assume you'd want some rules on 8888, otherwise anyone could simply send a packet and establish a "connection", allowing them access to 7777 - but at that point, why not just put the rules on 7777 and cut out the middle?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.