For the testing of the STUN/TURN configuration I'd like to block all incoming UDP traffic except for the ports on which I've sent something to the remote server recently.

Ports are not known in advance.

I don't need the internal/external IPs aspect of NAT. There are just two machines on the same network.

Is it possible to do something simple with iptables?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.