- Timestamp:
- May 25, 2010, 3:21:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/files/etc/ipfw.sh
r8025 r8026 45 45 ${fwcmd} add 65000 pass all from any to any 46 46 47 48 ############ 49 # Inbound NAT setup 50 ${fwcmd} add nat 100 all from any to 172.16.0.0/12 via $internalif 51 ${fwcmd} nat 100 config if $internalif 52 53 ############ 47 54 # Transproxy/WLportal/Captive portal 48 ${fwcmd} add 10000 allow tcp from any to localhost 8049 ${fwcmd} add 10001 allow tcp from any to me 8055 # ${fwcmd} add 10000 allow tcp from any to localhost 80 56 # ${fwcmd} add 10001 allow tcp from any to me 80 50 57 51 58 ############ … … 54 61 55 62 # Forward rules work without a base address, so needed a loop over all inet4 adresses 56 for IP in `ifconfig -a | awk '/inet / {print $2}'`; do57 ${fwcmd} add 10100 fwd $IP,8081 tcp from any to not 172.16.0.0/12 8058 done63 # for IP in `ifconfig -a | awk '/inet / {print $2}'`; do 64 # ${fwcmd} add 10100 fwd $IP,8081 tcp from any to not 172.16.0.0/12 80 65 # done
Note:
See TracChangeset
for help on using the changeset viewer.