From owner-freebsd-questions@FreeBSD.ORG Tue Oct 16 17:02:36 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB9B5A1F for ; Tue, 16 Oct 2012 17:02:36 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from icp-osb-irony-out8.external.iinet.net.au (icp-osb-irony-out8.external.iinet.net.au [203.59.1.225]) by mx1.freebsd.org (Postfix) with ESMTP id 40F918FC14 for ; Tue, 16 Oct 2012 17:02:35 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGmSfVA6Bu5+/2dsb2JhbABFwASBCIIgAQEEAScTPwULCw0hAQYRFA0LMROHcgMJBbFkDYlUimiDfwGCRGADlBUBgVSFUDWFIIUOgwGBSA X-IronPort-AV: E=Sophos;i="4.80,595,1344182400"; d="scan'208";a="48264953" Received: from unknown (HELO smtp.phoenix) ([58.6.238.126]) by icp-osb-irony-out8.iinet.net.au with ESMTP; 17 Oct 2012 01:02:28 +0800 Received: by smtp.phoenix (Postfix, from userid 1001) id BB91E60A; Wed, 17 Oct 2012 04:02:27 +1100 (EST) Date: Wed, 17 Oct 2012 04:02:27 +1100 From: andrew clarke To: Jack Subject: Re: pppoe configuration and dns name resolution Message-ID: <20121016170227.GA64734@ozzmosis.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 17:02:36 -0000 On Tue 2012-10-16 20:38:47 UTC+0530, Jack (jacks.1785@gmail.com) wrote: > I'm new as a FreeBSD user, and trying to configure my > pppoe connection. > > After reading handbook and searching on various forums, > I prepared the ppp.conf file, and tried starting the ppp via > # ppp -ddial adsl > > Here 'adsl' is the profile name, in /etc/ppp/ppp.conf. > I also tried > #ppp -auto adsl > but the error message was same. ... I use a similar setup here except I use static IPs for both the ADSL modem (in bridge mode) and the FreeBSD box connecting to it. The FreeBSD box then runs a DHCP server (dns/dnsmasq in ports) for any other machines on my LAN to talk to. > I'm pasting my related configuration files if they can help. > Please tell me if any other files are needed. Nothing really stands out glancing at your configs. I'd be looking for clues in /var/log/ppp.log. > tun0: flags=8051 metric 0 mtu 1500 > options=80000 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00 > nd6 options=21 > Opened by PID 1907 tun0 should have been reassigned a public address here by the remote PPP host (your ISP). Also the MTU is still stuck at 1500 despite you correctly configuring 1492 in ppp.conf. So I think the PPP negotiation is failing. ppp.log may explain why. Mine looks like this: tun0: flags=8051 metric 0 mtu 1492 options=80000 inet 58.6.247.132 --> 203.215.15.252 netmask 0xffffffff Opened by PID 45904 Below is my (edited) rc.conf & ppp.conf. I simply start & stop the PPP session with "service ppp start" & "service ppp stop" as root. ## /etc/rc.conf hostname="blizzard.phoenix" ifconfig_bge0="inet 192.168.1.4 netmask 255.255.255.0" zfs_enable="YES" syslogd_flags="-c" gateway_enable="YES" sshd_enable="YES" inetd_enable="YES" fusefs_enable="YES" openntpd_enable="YES" dovecot_enable="YES" named_enable="NO" dnsmasq_enable="YES" postfix_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="iinet" firewall_enable="YES" firewall_script="/etc/ipfw.rules" firewall_logging="YES" ## /etc/ppp/ppp.conf default: set log phase chat lcp ipcp ccp tun command lqm set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 nat enable yes disable lqr disable ipv6cp set echoperiod 30 enable echo iinet: set device PPPoE:bge0 set authname myusername set authkey mypassword set dial set login set mru 1492 set mtu 1492 set redial 15 0 add default HISADDR