X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/beb4f0eeafb386d83f2593fec489f4291583e08b..d41e2f123e242866ae3cac6919cc1ce73825c605:/roadstar.m4 diff --git a/roadstar.m4 b/roadstar.m4 index a95cc3b..731c665 100644 --- a/roadstar.m4 +++ b/roadstar.m4 @@ -22,32 +22,26 @@ ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ###-------------------------------------------------------------------------- -### Config settings. - -## This host isn't a router. -setconf(forward, 0) - -## This host is involved in a routing asymmetry. -setconf(rp_filter, 0) -setconf(log_martians, 0) - -###-------------------------------------------------------------------------- ### roadstar-specific rules. -m4_divert(84)m4_dnl +m4_divert(86)m4_dnl ## Externally visible services. allowservices inbound tcp \ ssh \ ident \ - ftp ftp_data \ + ftp \ rsync \ - http https squid \ - git + http https squid + +allowservices inbound-untrusted tcp \ + sunrpc mount nfs \ + lpd +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