I doubt the FIRE_NET and PRIV_NET are the same. One
interface should be the IP address of your Internet
connection and the other should be the IP of your
private LAN connection.
To get your dynamic IP address for your script, try this
little script from the TrinityOS doc. Please note the
different "'" and "`"s since they are critical:
This also assumes your Internet connection is a PPP link.
FIRE_NET=`/sbin/ifconfig | grep -A 4 ppp0 | awk '/inet/ { print $2 } ' | sed -e
s/addr://`
Beyond that.. I can't help you out more since I haven't
seen that IPFWADM script before.
--David
># Below is the output of the beginning stanza of my "firewall.rules" script
># on my masquerade machine. I'm a bit confused by the FIRE_NET vs the PRIV_NET
># for my "fixed" addreses is on my LAN only, not the current one dynamically
># assigned which is (as I type) 12.72.64.185
>
>
># My fixed addresses
> ME="192.168.7.1"
> FIRE_NET="192.168.7.0/24"
> PRIV_NET="192.168.7.0/24"
> ALLIP="0.0.0.0/0"
> HIPORTS="1024:65535"
>
>
.----------------------------------------------------------------------------.
| David A. Ranch - Remote Access/Linux/PC hardware [EMAIL PROTECTED] |
!---- ----!
`----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]