Reject work v1.3

This patchset is a rework of the reject keyword. It fixes a few problem and adds IPv6 support.

This should fix #895 #956 and #957