Date: Thu, 3 May 2001 17:21:30 -0500 (CDT) From: Chris Dillon <cdillon@wolves.k12.mo.us> To: Nick Rogness <nick@rogness.net> Cc: <freebsd-hackers@FreeBSD.ORG> Subject: Re: /etc/rc.network and natd_enable Message-ID: <Pine.BSF.4.32.0105031708470.3479-200000@mail.wolves.k12.mo.us> In-Reply-To: <Pine.BSF.4.21.0105031700370.14970-100000@cody.jharris.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1924726952-988928490=:3479 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 3 May 2001, Nick Rogness wrote: > In 4.2-STABLE, /etc/rc.network has entries to turn on natd. > However, natd does not get enabled if you don't specify > natd_interface. WHat if you you have setup stored in a > configuration file and do not wish to supply an interface flag in > /etc/rc.conf? Well, natd does not turn on! I've attached a very simple, but untested patch that will DTRT. Anyone care to commit this if Nick says it works as expected? Just in case the attachment doesn't make it, here it is inline (be careful of cut'n'paste tab-to-space conversions). --- rc.network.orig Thu May 3 17:04:05 2001 +++ rc.network Thu May 3 17:18:52 2001 @@ -269,7 +269,9 @@ else natd_ifarg="-n ${natd_interface}" fi + fi + if [ -n "${natd_interface}" -o -n "${natd_flags}" ]; then echo -n ' natd'; ${natd_program:-/sbin/natd} ${natd_flags} ${natd_ifarg} fi ;; -- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net FreeBSD: The fastest and most stable server OS on the planet. For IA32 and Alpha architectures. IA64, PPC, and ARM under development. http://www.freebsd.org --0-1924726952-988928490=:3479 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rc.network.patch" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.32.0105031721300.3479@mail.wolves.k12.mo.us> Content-Description: Content-Disposition: attachment; filename="rc.network.patch" LS0tIHJjLm5ldHdvcmsub3JpZwlUaHUgTWF5ICAzIDE3OjA0OjA1IDIwMDEN CisrKyByYy5uZXR3b3JrCVRodSBNYXkgIDMgMTc6MTg6NTIgMjAwMQ0KQEAg LTI2OSw3ICsyNjksOSBAQA0KIAkJCQkJCWVsc2UNCiAJCQkJCQkJbmF0ZF9p ZmFyZz0iLW4gJHtuYXRkX2ludGVyZmFjZX0iDQogCQkJCQkJZmkNCisJCQkJ CWZpDQogDQorCQkJCQlpZiBbIC1uICIke25hdGRfaW50ZXJmYWNlfSIgLW8g LW4gIiR7bmF0ZF9mbGFnc30iIF07IHRoZW4NCiAJCQkJCQllY2hvIC1uICcg bmF0ZCc7ICR7bmF0ZF9wcm9ncmFtOi0vc2Jpbi9uYXRkfSAke25hdGRfZmxh Z3N9ICR7bmF0ZF9pZmFyZ30NCiAJCQkJCWZpDQogCQkJCQk7Ow0K --0-1924726952-988928490=:3479-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32.0105031708470.3479-200000>