HKP and firewalls

David Shaw
Thu Apr 3 18:11:03 2003

Hash: SHA1

On Sat, Mar 29, 2003 at 10:54:05PM +0000, Neil Williams wrote:

> I've had recent problems with a new ISDN router that doesn't use a 
> particularly easy firewall setup. All other outgoing internet connections are 
> fine (HTTP,POP,SMTP,SSH,FTP,DNS etc) and the firewall appears to be dropping 
> other packets as expected - it's a basic deny-all firewall with no internet 
> services available.
> However, I cannot get a reply from any keyservers using --recv-keys. I can 
> send to keyservers fine (and I can test that the keyserver received the 
> update using an SSH connection to a remote server with GPG installed) and I 
> can receive all keys IF I use a dial-up modem connection instead of the 
> router, so I can't see that it is a problem with ~/.gnup/options.
> I've tried opening port 11371 but I get very confusing results. Once in a 
> while (and only once each time) I can get a single key through - as if it has 
> been cached somewhere - but the other 99 times gpg just waits and waits and 
> waits. e.g. output
> $ gpg --verbose --verbose --keyserver --recv-keys 0x28BCB3E3
> gpg: requesting key 28BCB3E3 from HKP keyserver
> gpg: armor header: Version: PGP Key Server 0.9.5
> I also use
> My basic problem is that the router doesn't use the familiar iptables format 
> and doesn't provide a full listing of the traffic. I can't tell where the 
> packets are being dropped. I've tried using IP addresses for the keyservers 
> and using hkp:// etc. 
> Does HKP only use port 11371? (Could it be trying to send data back to a 
> different port?)
> The router is a D-Link DI-304

I'm not familiar with that particular router, but I can give you some
general information that will hopefully help you.

HKP is HTTP underneath it all.  The only thing unusual about it is
that it runs on port 11371.  If there is a general "HTTP"
configuration for your firewall, try that, and allow it on port 11371.

If that isn't possible for whatever reason, you might look around for
a HKP keyserver that runs on port 80 (for this exact reason -
firewalls).  Ask on the pgp-keyserver-folk @ list, and I'm
sure someone there can suggest a server to use.

Version: GnuPG v1.2.2rc1 (GNU/Linux)