How to Enable Outgoing Keyserver port with iptables firewall

Keyserver is used for storing and distributing OpenGPG keys. The Ubuntu project also maintains its own keyserver ( ) for distributing public-key to users.

keyserver uses HKP Keyserver protocol which listens on port 11371

Here’s how to enable the keyserver port on iptables:
iptables -A OUTPUT -p tcp -d <key server ip> –dport 11371 -j ACCEPT