Skip to contentSkip to conversation

the state match

DISCUSSION MYRIAM15 1 participant 1 message Jul 15, 2003 netfilter

lore
Share & tools
lore

MYRIAM15

author
#0 lore raw

Hello!
I new with iptables, but readinf documents about it, the possibility of keeping the state even with udp sounds fantastic. What I'm trying to configure is a rules/rules to accept packets coming from the two first hosts connected, and after that, deny packets coming from a new third host whatever it was ( all of them connected by UDP). What I mean in few words is to limit the number of hosts connected to 2. As I've said I'm new with this, so I don't know how to handle it. Could someone help me? What rules would I need? Or even if it's not possible to do it with iptables?

Thanks in advance
Miriam