From owner-freebsd-ipfw Tue May 15 19:37:50 2001 Delivered-To: freebsd-ipfw@freebsd.org Received: from VL-MS-MR003.sc1.videotron.ca (relais.videotron.ca [24.201.245.36]) by hub.freebsd.org (Postfix) with ESMTP id 2A40F37B43C for ; Tue, 15 May 2001 19:37:46 -0700 (PDT) (envelope-from davitron@vl.videotron.ca) Received: from kerijan.davitron.org ([24.202.255.5]) by VL-MS-MR003.sc1.videotron.ca (Netscape Messaging Server 4.15) with SMTP id GDEPYW04.ZX0 for ; Tue, 15 May 2001 22:37:44 -0400 Content-Type: text/plain; charset="iso-8859-5" From: David Comeau Reply-To: davitron@vl.videotron.ca Organization: DaviTronique To: ipfw@FreeBSD.org Subject: Help with passing a variable. Date: Tue, 15 May 2001 22:37:49 -0400 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01051522374901.01545@kerijan.davitron.org> Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 sy= stem=20 setup (Ip, ...) Since I am on a cable-modem using DHCP, I would like to k= now=20 if it is possible to reflect that fact in the "oif" variable? If so, how=20 exactly? I have included part of my rc.conf as wel as the part of rc.firewall that= I'm=20 talking about. i hope it is enough for some sort of answer. * From /etc/rc.conf ***************** gateway_enable=3D"YES" network_interfaces=3D"ed0 ed1 lo0" firewall_enable=3D"YES" firewall_script=3D"/etc/rc.firewall" firewall_type=3D"open" firewall_quiet=3D"YES" #change to YES once happy with rules firewall_logging=3D"YES" tcp_extensions=3D"NO" log_in_vain=3D"YES" tcp_keepalive=3D"YES" tcp_drop_synfin=3D"NO" #change to NO if create webserver tcp_restrict_rst=3D"NO" icmp_drop_redirect=3D"NO" icmp_log_redirect=3D"NO" natd_enable=3D"YES" natd_program=3D"/sbin/natd" natd_flags=3D"-f /etc/natd.cf" natd_interface=3D"ed0" * From /etc/rc.firewall simple firewall section ************************= *** # set these to your outside interface network and netmask and ip oif=3D"ed0" onet=3D"" # How do I add a variable to reflect the fact that it = is=20 DHCP? omask=3D"255.255.255.0" oip=3D"" # 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=3D"ed1" inet=3D"192.168.1.0" imask=3D"255.255.255.0" iip=3D"192.168.1.1" --=20 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