Changeset 8026


Ignore:
Timestamp:
May 25, 2010, 3:21:05 PM (15 years ago)
Author:
rick
Message:

There is no firewall config on the proxy yet. Pre-configure inbound NAT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2.0/nanobsd/nanobsd/files/etc/ipfw.sh

    r8025 r8026  
    4545${fwcmd} add 65000 pass all from any to any
    4646
     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############
    4754# Transproxy/WLportal/Captive portal
    48 ${fwcmd} add 10000 allow tcp from any to localhost 80
    49 ${fwcmd} add 10001 allow tcp from any to me 80
     55# ${fwcmd} add 10000 allow tcp from any to localhost 80
     56# ${fwcmd} add 10001 allow tcp from any to me 80
    5057
    5158############
     
    5461
    5562# 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}'`; do
    57   ${fwcmd} add 10100 fwd $IP,8081 tcp from any to not 172.16.0.0/12 80
    58 done
     63# 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.