public
Description: A rigorous set of firewall scripts for BSD ipfw, and Linux iptables
Homepage:
Clone URL: git://github.com/jwiegley/jw.firewall.git
jw.firewall / Firewall.hermes.sgu
100755 21 lines (17 sloc) 0.421 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
 
downrate=512
uprate=128
 
downrate="$((downrate-8))Kbits/s"
uprate="$((uprate-8))Kbits/s"
 
sh rc.firewall --blackhole \
    --local-udp 53 \
    "en0+mac::192.168.1.0/24" \
    "en0{0,0}" \
    "en1{$downrate,$uprate}" \
    "vmnet1+win:172.16.115.0/24" \
    "vmnet8+win:172.16.9.0/24" \
    "tun0::10.8.0.0/24" \
    "tun0" \
    "tap0+win:10.9.19.0/24" \
    "tap0" \
    "tap1+win::10.100.1.0/24"