pppoe configuration and dns name resolution
andrew clarke
mail at ozzmosis.com
Tue Oct 16 17:02:36 UTC 2012
On Tue 2012-10-16 20:38:47 UTC+0530, Jack (jacks.1785 at 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<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
> options=80000<LINKSTATE>
> inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00
> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> 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<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
options=80000<LINKSTATE>
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
More information about the freebsd-questions
mailing list