Changeset 8334


Ignore:
Timestamp:
Aug 12, 2010, 10:21:52 PM (14 years ago)
Author:
richardvm
Message:

nat is working now (thanks Rick), everything is natted (link pop3), so not ready for use yet

File:
1 edited

Legend:

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

    r8331 r8334  
    4747externalif="$driver$seq"
    4848
     49# Get public ip
     50$externalip=`ifconfig $externalif | awk '/inet/ { print $2 }'`
    4951############
    5052# Flush out the list before we begin.
     
    5456setup_loopback
    5557
     58
    5659############
    5760
     
    5962# Outbound NAT setup
    6063${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
    6165${fwcmd} nat 100 config if $externalif
    6266
     
    7276${fwcmd} add 3001 allow tcp from 172.16.0.0/12 to any 80 in via $internalif setup keep-state
    7377# HTTPS
    74 ${fwcmd} add 3002 allow tcp from 172.16.0.0/12 to any 443 setup keep-state
     78${fwcmd} add 3002 allow tcp from 172.16.0.0/12 to any 443 in via $internalif setup keep-state
    7579
    7680# Allow anything originating from me
     
    8993
    9094
    91 
Note: See TracChangeset for help on using the changeset viewer.