vampire: Allow SMB from the untrusted network.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 7 Mar 2011 11:01:43 +0000 (11:01 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Mar 2011 11:01:43 +0000 (11:01 +0000)
This lets the Wii get to the media library, which is nice.

numbers.m4
vampire.m4

index da3ee59..8092e72 100644 (file)
@@ -35,7 +35,11 @@ defport bootpc 68
 defport finger 79
 defport http 80
 defport ident 113
+defport netbios_ns 137
+defport netbios_dgm 138
+defport netbios_ssn 139
 defport https 443
+defport microsoft_ds 445
 defport syslog 514                     # UDP only!
 defport rsync 873
 defport squid 3128
index d25bf49..18365be 100644 (file)
@@ -64,6 +64,16 @@ for p in tcp udp; do
          -p $p --destination-port $port_dns
 done
 
+## Allow smb and nmb to untrusted hosts.  This is a bit experimental.
+run iptables -A inbound -j ACCEPT \
+       -s 172.29.198.0/24 \
+       -p udp -m multiport --destination-ports \
+               $port_netbios_ns,$port_netbios_dgm
+run iptables -A inbound -j ACCEPT \
+       -s 172.29.198.0/24 \
+       -p tcp -m multiport --destination-ports \
+               $port_netbios_ssn,$port_microsoft_ds
+
 ## Provide syslog for evolution.
 run iptables -A inbound -j ACCEPT \
        -s 172.29.198.2 \