local.m4: Update external NTP servers.
[firewall] / precision.m4
index f5c07ac..2a07763 100644 (file)
@@ -28,14 +28,25 @@ m4_divert(86)m4_dnl
 ## Externally visible services.
 allowservices inbound tcp \
        ident \
-       dns \
        ssh
 allowservices inbound udp \
-       dns \
        tripe
 
 ## Other interesting things.
 dnsresolver inbound
+dnsserver inbound
+
+## Nefarious VPN NAT hack.
+for i in PREROUTING OUTPUT POSTROUTING; do
+  run iptables -t nat -P $i ACCEPT 2>/dev/null || :
+  run iptables -t nat -F $i 2>/dev/null || :
+done
+run iptables -t nat -F
+run iptables -t nat -X
+makeset vpn-nat hash:net family inet
+run iptables -t nat -A POSTROUTING -o eth0 \
+       -m set --match-set vpn-nat dst \
+       -j SNAT --to-source 212.13.198.70
 
 m4_divert(-1)
 ###----- That's all, folks --------------------------------------------------