Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2015 13:51:33 -0700
From:      Charles Swiger <cswiger@mac.com>
To:        Jeffry Killen <jekillen@prodigy.net>
Cc:        FreeBSD - <freebsd-questions@freebsd.org>
Subject:   Re: looking at manual page for rc.conf
Message-ID:  <7DCD8F5E-4995-4A65-921C-FA5F8AE4671A@mac.com>
In-Reply-To: <C6FF7256-86A8-4364-980A-96E1DEFE37B1@prodigy.net>
References:  <C6FF7256-86A8-4364-980A-96E1DEFE37B1@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 18, 2015, at 1:37 PM, Jeffry Killen <jekillen@prodigy.net> 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_<interface> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DCD8F5E-4995-4A65-921C-FA5F8AE4671A>