From owner-freebsd-stable@FreeBSD.ORG Fri Dec 7 15:46:16 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69365CDE for ; Fri, 7 Dec 2012 15:46:16 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id E70058FC16 for ; Fri, 7 Dec 2012 15:46:15 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c13so444422eek.13 for ; Fri, 07 Dec 2012 07:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5eHfU+L3/AU5Lo5aUqY9OxmjAntjeG6sKHHeccQ9cnQ=; b=HnX5ATNRRNDZAk5sZtVTrMArIgLK+txx8yvHRtrYH0BxDo/4uZvthJyBg+4YNfgiU4 aAtwflH7xwcwVjKm+3c23yh4+9GaMPawSPY/J3q03iWTgcUtA8z2+udzqZIg7pHDqClY +2L2l+cA3Bx8R9jr6HIzKCzCuL64aPYU5O3E2067zFkbV3Uioe5stQjLVtF7BEYQg7d3 GGBx5CQSP9wBYL8+nmRrbxLZ8UOSOr2qw6EiDUNRdV71sk214kV5h91Ff00mb5hqotNO MFrOCoY5l8uYAE/TJpnH4B9t7x2qIMgeXXINXCfyQcks1Y1gmU06qlPGbeRkFLQ1Sd2a Jiew== MIME-Version: 1.0 Received: by 10.14.221.5 with SMTP id q5mr17852597eep.33.1354895174791; Fri, 07 Dec 2012 07:46:14 -0800 (PST) Received: by 10.14.198.71 with HTTP; Fri, 7 Dec 2012 07:46:14 -0800 (PST) In-Reply-To: References: Date: Fri, 7 Dec 2012 09:46:14 -0600 Message-ID: Subject: Re: Using dhclient on WAN if on a box serving DHCP to LAN if From: Scot Hetzel To: Tom Evans Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 15:46:16 -0000 On Fri, Dec 7, 2012 at 5:38 AM, Tom Evans wrote: > Hi all > > Using 9.0-STABLE #1 r230946 - I found it out as I rebooted to prepare > for 9.1, but I think it should be largely irrelevant of version. > > I have a freebsd router that provides all the things a soho router > should on its LAN iface - DNS, DHCP, NAT (via pf). The WAN iface > connects to a ADSL modem operating in bridge mode. > > My ISP has recently forced a change on to me, in order to get service > I have to connect via DHCP, in order for them to give me my static IP. > Apparently this makes their lives a lot easier. Even knowing the IP, > netmask, broadcast and router is not enough, no service will flow > unless a DHCP request has been registered. > > Relevant rc.conf, ale0 is the WAN, em0 is the LAN > > ifconfig_ale0="DHCP" > ifconfig_em0="inet 192.168.1.1 netmask 255.255.255.0" > gateway_enable="YES" > > dhcpd_enable="YES" > dhcpd_flags="-q" > dhcpd_ifaces="em0" > dhcpd_conf="/usr/local/etc/dhcpd.conf" > > With this configuration, the default route is over the LAN iface. This > causes the dhclient for ale0 to get a response from the local dhcpd > server, not the ISP dhcpd server. This drove me potty! Can anyone > explain why dhcpd, having been told only to listen for DHCP on em0, > responds to ale0? Could this be related to my pf rules, or is it down > to the default route being incorrect? > I have seen some modems that were configured to bridge mode or use public IPs that would also hand out the private IPs. Try changing your LAN IP address to not be on the 192.168.1.0/24 network (i.e. 192.168.2.0/24). Then see if you pull a 192.168.1.x or the LAN IP address. -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.