X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/ebaa31a7bdb640c1bd797fef04d1e833a34c07d7..2b17ac87c0bbb773745e10a72fd2608bda8d0686:/local.m4 diff --git a/local.m4 b/local.m4 index 357043b..e083a64 100644 --- a/local.m4 +++ b/local.m4 @@ -71,11 +71,15 @@ defnet housebdry virtual ## House hosts. defhost radius - router - iface eth0 dmz unsafe safe - iface eth1 dmz unsafe safe - iface eth2 safe - iface eth3 untrusted + hosttype router + iface eth0 dmz unsafe safe untrusted vpn sgo colobdry default + iface eth1 dmz unsafe safe untrusted vpn sgo colobdry default + iface eth2 dmz unsafe safe untrusted vpn sgo colobdry + iface eth3 untrusted vpn default + iface t6-he default + iface vpn-precision colobdry vpn sgo + iface vpn-chiark sgo + iface vpn-+ vpn defhost roadstar iface eth0 dmz unsafe iface eth1 dmz unsafe @@ -83,16 +87,18 @@ defhost jem iface eth0 dmz unsafe iface eth1 dmz unsafe defhost artist + hosttype router iface eth0 dmz unsafe iface eth1 dmz unsafe + iface eth3 untrusted defhost vampire - router - iface eth0.0 dmz unsafe safe - iface eth0.1 dmz unsafe safe - iface eth0.2 safe - iface eth0.3 untrusted + hosttype router + iface eth0.4 dmz unsafe untrusted safe vpn sgo colobdry + iface eth0.5 dmz unsafe untrusted safe vpn sgo colobdry + iface eth0.6 dmz unsafe safe untrusted vpn sgo colobdry + iface eth0.7 untrusted iface dns0 iodine - iface vpn-precision colobdry vpn + iface vpn-precision colobdry vpn sgo iface vpn-chiark sgo iface vpn-+ vpn defhost ibanez @@ -100,6 +106,7 @@ defhost ibanez iface br-unsafe unsafe defhost gibson + hosttype client iface eth0 unsafe ## Colocated networks. @@ -120,10 +127,10 @@ defhost fender iface br-jump jump colo iface br-colo jump colo defhost precision - router - iface eth0 jump colo - iface eth1 jump colo - iface vpn-vampire housebdry vpn + hosttype router + iface eth0 jump colo sgo + iface eth1 jump colo sgo + iface vpn-radius housebdry vpn sgo iface vpn-chiark sgo iface vpn-+ vpn defhost telecaster @@ -193,17 +200,10 @@ case $forward in -m state --state ESTABLISHED ## Allow SSH from safe/noloop to untrusted networks. - run iptables -A fwd-spec-nofrag -j ACCEPT \ + run ip46tables -A fwd-spec-nofrag -j ACCEPT \ -p tcp --destination-port $port_ssh \ -m mark --mark $to_untrusted/$MASK_TO - run iptables -A fwd-spec-nofrag -j ACCEPT \ - -p tcp --source-port $port_ssh \ - -m mark --mark $from_untrusted/$MASK_FROM \ - -m state --state ESTABLISHED - run ip6tables -A fwd-spec-nofrag -j ACCEPT \ - -p tcp --destination-port $port_ssh \ - -m mark --mark $to_untrusted/$MASK_TO - run ip6tables -A fwd-spec-nofrag -j ACCEPT \ + run ip46tables -A fwd-spec-nofrag -j ACCEPT \ -p tcp --source-port $port_ssh \ -m mark --mark $from_untrusted/$MASK_FROM \ -m state --state ESTABLISHED