From owner-freebsd-questions@FreeBSD.ORG Mon May 18 23:24:23 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D751690 for ; Mon, 18 May 2015 23:24:23 +0000 (UTC) Received: from nm12-vm4.access.bullet.mail.gq1.yahoo.com (nm12-vm4.access.bullet.mail.gq1.yahoo.com [216.39.63.100]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 715951498 for ; Mon, 18 May 2015 23:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prodigy.net; s=s2048; t=1431991252; bh=yLYxWeS01MfjSOyGipvfWkT3trx5JvW9s/G4TQswG/E=; h=Cc:From:To:In-Reply-To:Subject:Date:References:From:Subject; b=Tgjy3H1LPOVa6XseCAaV+ExJ0c8B8szDESsiBgh1XcsQ7WEVNXa9RuRGSDpbN63L+oDvK6AJ2qNkZnhojlo+v0G8wbuvoaQT/HVKQEWFroqrHGvTatFg3vkMRjYnkZ1SI9E8e9JESX3lHuGd0w5HSe9ntcY+1CGLlD6bQJgCk3hWPArZMTp5Y8yItATFkjOKZFMeThjVwFySb8g2Nm6HcXbyERV2qi7Leu0eG1x6fhlNfLjBcmpl1gUUDsBmer4+RMcoZN84d4xO5I31Ywdo1UHwJf+x/Vl6nNFCyY19L/zcaLES3PpWBGF+mn1FB4wk56ese8TadeEmu+lxFepXQw== Received: from [216.39.60.166] by nm12.access.bullet.mail.gq1.yahoo.com with NNFMP; 18 May 2015 23:20:52 -0000 Received: from [67.195.23.146] by tm2.access.bullet.mail.gq1.yahoo.com with NNFMP; 18 May 2015 23:20:52 -0000 Received: from [127.0.0.1] by smtp118.sbc.mail.gq1.yahoo.com with NNFMP; 18 May 2015 23:20:52 -0000 X-Yahoo-Newman-Id: 102517.5366.bm@smtp118.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: AOkYsjoVM1nVnwd_XoN_1ERb8NK4VwoQY5wSKZzcItPG3Oo c5ZbprC0lz7BDwsanqpNNEnptPwM11g6ofPzxJvE091HVUhAYetAZGMISBHj MSzh4sXRxpLUpBSP.2dJ.o0U5Jp4IMEu6vbTGNYPDO2f13xBeATRnZQghm7d muk5z56VqVCYSBdbFOMV6MCXuRbmIFoPtb.X9hs61SFcde0dA.4AaxaIIjp. bxVYDEqPO6t6JC_paRR_ENxFwTTXDrmM8G1de2d20Ed2ZGXLbnzsn8otU86V hgvFo9sb4USBgpd_qoFmDfRWoEu3HnPZqxAGfqjuh35p5oZnC42yR_oVkYGy ebU.bJlzjH8LHuFyVVl3V8sLYf1xmA4v2Z8TJAfSmbyE5dqzRnShPRiP52or L_0cHR6I8hYEPl6mAhlXL_3l9W3.XO3Qi.QUbsX6qXUV_WrWs_xdPbm5wrW6 fJyt30fvDRCYb2px1xPfAJ414E8A6rbol97.JY6CnmMbYsqFHj3KI7VbVKrP 789_RUUMRyMMQjwOinhVM3Y5gUMkphGOSV6V32GrCUDBjFRlH41XWTt8rVsu ORIbVUXU8eQ-- X-Yahoo-SMTP: 46rcWa.swBDnY9zvhIrsU2awgPSTQgUKFFrFJjEU8wwG Cc: FreeBSD - Message-Id: From: Jeffry Killen To: Charles Swiger In-Reply-To: <7DCD8F5E-4995-4A65-921C-FA5F8AE4671A@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: looking at manual page for rc.conf Date: Mon, 18 May 2015 16:20:50 -0700 References: <7DCD8F5E-4995-4A65-921C-FA5F8AE4671A@mac.com> X-Mailer: Apple Mail (2.936) 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 23:24:23 -0000 On May 18, 2015, at 1:51 PM, Charles Swiger wrote: > 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. >> >> text from man page: >> >> 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="DHCP" >> >> actually, I have >> ifconfig_em0="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. >> >> or alternately, suppose I want to assign a static address to >> interface >> that would connect to internet via DSL modem. >> ifconfig_em0="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="192.168.0.1" ...to /etc/rc.conf. > >> I have also looked at ifconfig(8) and have not 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 The last was text I started and abandoned and neglected to remove. sorry. roughly, "run by cron every 11 minutes because I had what amounted to commands in rc.conf, or syntax interpreted as commands. That issue was resolved long ago. It sent e-mails to root every 11 minutes complaining about what appeared to be a unrelated issue. >> >> 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. I did have entries in tcp wrappers config (name escapes me now) and/or inetd.conf for ssh and mysql, as I recall. > >> 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, > -- > -Chuck Thank you for your time attention and response JK