Date: Tue, 15 May 2001 22:37:49 -0400 From: David Comeau <davitron@vl.videotron.ca> To: ipfw@FreeBSD.org Subject: Help with passing a variable. Message-ID: <01051522374901.01545@kerijan.davitron.org>
index | next in thread | raw e-mail
To all listeners,
I am using the videotron.ca cable-modem service here in Montreal, Qc.
In the /etc/rc.firewall file there are areas where we must reflect our system
setup (Ip, ...) Since I am on a cable-modem using DHCP, I would like to know
if it is possible to reflect that fact in the "oif" variable? If so, how
exactly?
I have included part of my rc.conf as wel as the part of rc.firewall that I'm
talking about. i hope it is enough for some sort of answer.
* From /etc/rc.conf *****************
gateway_enable="YES"
network_interfaces="ed0 ed1 lo0"
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
firewall_type="open"
firewall_quiet="YES" #change to YES once happy with rules
firewall_logging="YES"
tcp_extensions="NO"
log_in_vain="YES"
tcp_keepalive="YES"
tcp_drop_synfin="NO" #change to NO if create webserver
tcp_restrict_rst="NO"
icmp_drop_redirect="NO"
icmp_log_redirect="NO"
natd_enable="YES"
natd_program="/sbin/natd"
natd_flags="-f /etc/natd.cf"
natd_interface="ed0"
* From /etc/rc.firewall simple firewall section ***************************
# set these to your outside interface network and netmask and ip
oif="ed0"
onet="" # How do I add a variable to reflect the fact that it is
DHCP?
omask="255.255.255.0"
oip="" # Can I add a variable to reflect the fact that it is DHCP?
# set these to your inside interface network and netmask and ip
iif="ed1"
inet="192.168.1.0"
imask="255.255.255.0"
iip="192.168.1.1"
--
Sincerely,
David Comeau
http://www.davitron.ca
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01051522374901.01545>
