Changeset 8334
- Timestamp:
- Aug 12, 2010, 10:21:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/files/etc/ipfw.sh
r8331 r8334 47 47 externalif="$driver$seq" 48 48 49 # Get public ip 50 $externalip=`ifconfig $externalif | awk '/inet/ { print $2 }'` 49 51 ############ 50 52 # Flush out the list before we begin. … … 54 56 setup_loopback 55 57 58 56 59 ############ 57 60 … … 59 62 # Outbound NAT setup 60 63 ${fwcmd} add nat 100 all from 172.16.0.0/12 to any via $externalif 64 ${fwcmd} add nat 100 all from any to 192.168.58.2 via $externalif 61 65 ${fwcmd} nat 100 config if $externalif 62 66 … … 72 76 ${fwcmd} add 3001 allow tcp from 172.16.0.0/12 to any 80 in via $internalif setup keep-state 73 77 # HTTPS 74 ${fwcmd} add 3002 allow tcp from 172.16.0.0/12 to any 443 setup keep-state78 ${fwcmd} add 3002 allow tcp from 172.16.0.0/12 to any 443 in via $internalif setup keep-state 75 79 76 80 # Allow anything originating from me … … 89 93 90 94 91
Note:
See TracChangeset
for help on using the changeset viewer.