chiark / gitweb /
*.m4: Actually allow NFS to untrusted hosts.
[firewall] / roadstar.m4
index e35a4f191071dffb881781a6b513d0c95ebeeb95..61b0aa9676f556b7c5fc1eda547035276f4231b3 100644 (file)
@@ -29,14 +29,18 @@ m4_divert(86)m4_dnl
 allowservices inbound tcp \
        ssh \
        ident \
-       ftp ftp_data \
+       ftp \
        rsync \
        http https squid
 
+allowservices inbound-untrusted tcp \
+       sunrpc mount nfs
+allowservices inbound-untrusted udp \
+       sunrpc mount nfs
+
 ## Provide DNS resolution to local untrusted hosts.
 for p in tcp udp; do
-  run iptables -A inbound -j ACCEPT \
-         -s 172.29.198.0/24 \
+  run ip46tables -A inbound-untrusted -j ACCEPT \
          -p $p --destination-port $port_dns
 done