Changeset 8395 for 2.0/nanobsd
- Timestamp:
- Aug 26, 2010, 8:08:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/files/etc/ipfw.sh
r8383 r8395 61 61 62 62 ############ 63 # Block the hosters network (and maybe others) 64 65 for IP in ${firewall_block} 66 do 67 ${fwcmd} add deny ip from any to ${IP} in via $internalif 68 done 63 69 64 70 ############# 65 71 # Outbound NAT setup 72 66 73 ${fwcmd} add nat 100 all from 172.16.0.0/12 to any out via $externalif 67 74 ${fwcmd} add nat 100 all from any to $externalip in via $externalif 68 75 ${fwcmd} nat 100 config if $externalif 69 76 70 ############ 71 # Inbound NAT setup 72 # ${fwcmd} add nat 200 all from any to 172.16.0.0/12 via $internalif 73 # ${fwcmd} nat 200 config if $internalif 74 77 ############# 75 78 # WL -> Internet 76 79 # Stateful firewalling … … 98 101 ${fwcmd} add 6003 allow tcp from any to me 3128 via $internalif keep-state 99 102 103 # lvrouted 104 ${fwcmd} add 6004 allow udp from 172.16.0.0/12 to me 12345 via $internalif keep-state 105 100 106 # Block anything else 101 107 ${fwcmd} add 65000 deny ip from any to any 108
Note:
See TracChangeset
for help on using the changeset viewer.