From owner-freebsd-questions@FreeBSD.ORG Mon May 18 20:51:40 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77F96C7A for ; Mon, 18 May 2015 20:51:40 +0000 (UTC) Received: from mail-in2.apple.com (mail-out2.apple.com [17.151.62.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 54688138A for ; Mon, 18 May 2015 20:51:39 +0000 (UTC) Received: from relay6.apple.com (relay6.apple.com [17.128.113.90]) by mail-in2.apple.com (Apple Secure Mail Relay) with SMTP id 8F.7F.19360.5D05A555; Mon, 18 May 2015 13:51:33 -0700 (PDT) X-AuditID: 11973e11-f79186d000004ba0-3f-555a50d50498 Received: from [17.149.231.16] (Unknown_Domain [17.149.231.16]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by relay6.apple.com (Apple SCV relay) with SMTP id 6E.7A.32468.A905A555; Mon, 18 May 2015 13:50:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: looking at manual page for rc.conf From: Charles Swiger In-Reply-To: Date: Mon, 18 May 2015 13:51:33 -0700 Cc: FreeBSD - Content-Transfer-Encoding: quoted-printable Message-Id: <7DCD8F5E-4995-4A65-921C-FA5F8AE4671A@mac.com> References: To: Jeffry Killen X-Mailer: Apple Mail (2.2098) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsUi2FAYpXs1ICrU4Op5KYuXXzexWLy5v4bZ gcljxqf5LB5/Nl9mC2CK4rJJSc3JLEst0rdL4MrYcnM6e8EW/ortFw+zNjAu5Oli5OSQEDCR ODurlx3CFpO4c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RdU7 1vl5076DQsWzfp1suWbr0Ld4mV5+NNdXt6f+1v9+9C0tP5o242av8Z9dU3eedIlrnh3TEqz7 3nXVhN0/7YL9Pe5ofMmY0PIuuzr7c32VUvHpTqHrkb+vHfOcf2DjyQ/9fCrK/os2cPtxNETM 2C/28Ovu5e4e30xbPi7cV3e1X+3i6lvblViKMxINtZiLihMBqZt16DQCAAA= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2015 20:51:40 -0000 On May 18, 2015, at 1:37 PM, Jeffry Killen wrote: > I am looking at the manual page for rc.conf and am wondering > how I would specify default router address when using DHCP? Normally one doesn't need to do so; DHCP is supposed to configure that = for you. > I don't see any further explicit elucidations beyond the text quoted = below. >=20 > text from man page: >=20 > It is possible to bring up an interface with DHCP by adding = ``DHCP'' to the ifconfig_ variable. > For instance, to initialize the ed0 device via DHCP, it is possible = to use something like: > ifconfig_ed0=3D"DHCP" >=20 > actually, I have > ifconfig_em0=3D"DHCP" > Is the router address something that DHCP will figure out? Yes. > This interface will be for connection to internet via DSL modem > ISP is CenturyLink. >=20 > or alternately, suppose I want to assign a static address to interface > that would connect to internet via DSL modem. > ifconfig_em0=3D"inet 192.168.0.4 netmask 255.255.255.0" > When the router is at 192.168.0.1, how would this be specified. Add: defaultrouter=3D"192.168.0.1" ...to /etc/rc.conf. > I have also looked at ifconfig(8) and have found anything. ifconfig(8) sets up an interface; route(8) manages routing. > I have also had the kernel complain via a shell script set to > run in >=20 > I am also concerned about setting up tcp wrappers with inetd > to forestal possible attempts to access via telnet, ssh, ftp and > even MySql server (as I have seen frequently when I had static > ip address service). tcp wrappers typically only affects services launched by inetd, which doesn't normally include SSH or MySQLd. > This I have done when I did have static ip > service. But with fire wall in DSL modem and DHCP configuration > is it useful and advantageous? Yes, even a local per-host firewall improves security by a useful = amount. Regards, --=20 -Chuck