Date: Sat, 29 Dec 2001 09:53:45 -0500 From: "Cambria, Mike" <mcambria@avaya.com> To: 'Joe & Fhe Barbish' <barbish@a1poweruser.com>, FBSD Questions <questions@FreeBSD.ORG> Subject: RE: IPFW rc.firewall Message-ID: <3A6D367EA1EFD4118C9B00A0C9DD99D7065380@rerun.lucentctc.com>
next in thread | raw e-mail | index | archive | help
This is what I use in rc.firewall for a DHCP assigned IPv4 address:
onet=`ifconfig vx0 | grep "inet " | awk '{print $6}'`
oip=`ifconfig vx0 | grep "inet " | awk '{print $2}'`
omask=`ifconfig vx0 | grep "netmask" | awk '{print $4}'`
This works for a cable modem via my vx0 10/100 Ethernet NIC. For PPP, YMMV.
MikeC
-----Original Message-----
From: Joe & Fhe Barbish [mailto:barbish@a1poweruser.com]
Sent: Thursday, December 27, 2001 7:51 PM
To: FBSD Questions
Subject: IPFW rc.firewall
In rc.firewall one can configure the simple type of firewall rule set.
It requests you to enter your settings for
"your outside network, mask, ip". This looks like it wants a public
static ip address from ISP. I logon to my ISP using user ppp and get
a dynamic IP address that is different every time.
What value am I to enter in these fields so it knows it's dynamic ip
address?
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A6D367EA1EFD4118C9B00A0C9DD99D7065380>
