radius.m4: Allow external servers to contact the identd.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 14 Oct 2012 19:41:58 +0000 (20:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 Oct 2012 19:41:58 +0000 (20:41 +0100)
Otherwise all requests for NATted connections will fail.

radius.m4

index 2d5f8aa..b8481bb 100644 (file)
--- a/radius.m4
+++ b/radius.m4
@@ -88,7 +88,10 @@ for p in ftp sip h323; do
   run modprobe nf_nat_$p
 done
 
-## Forbid anything complicated to the NAT address.
+## Forbid anything complicated to the NAT address.  Be sure to allow ident,
+## though.
+run iptables -A INPUT -d 62.49.204.158 -p tcp -j ACCEPT \
+       -m multiport --destination-ports=113
 run iptables -A INPUT -d 62.49.204.158 ! -p icmp -j REJECT
 
 m4_divert(-1)