Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Feb 2008 01:23:03 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        Reinhold <freebsd@violetlan.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mpd with a dual pppoe setup
Message-ID:  <47A4FB57.40203@FreeBSD.org>
In-Reply-To: <1201922586.00019085.1201909804@10.7.7.3>
References:  <1201922586.00019085.1201909804@10.7.7.3>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.

Reinhold wrote:
> Here is what I've done so far.
> /usr/local/etc/mpd5/mpd.conf

The config you have made probably suits to mpd3/4, but not to mpd5. Mpd5 
uses alike commands, but general configuration idea is different. There 
is no mpd.links file in mpd5. Read new examples present in package.

> default:
>         load wan1
>         load wan2

Then it would be reasonable to merge "pptpd:" section here.

>         set ipcp ranges static-ip-0/32 isp-gateway-0/32

If you are connecting to the ISP it would be better not to specify IP to 
let them be negotiated.

>         load common_setting
> 
> wan2:
>         new -i ng1 wan2 PPPoE1
>         set iface route default
>         set iface up-script /usr/local/etc/mpd/script-wan2.sh
>         set iface down-script /usr/local/etc/mpd/script-wan2.sh
> 
>         set bundle authname "username1@provider"
>         set bundle password "passwd"
> 
>         set ipcp ranges static-ip-1/32 isp-gateway-1/32
>         load common_setting
> 
> common_setting:
>         set iface addrs 1.1.1.1 2.2.2.2
>         set iface disable on-demand

Without "on-demand" "set iface addrs" is useless.

>         set iface idle 0

This is default.

> # PPTP
> pt0:
>         set link type pptp
>         set pptp enable incoming
>         set pptp disable originate
>         set pptp disable windowing
>         set pptp self 127.0.0.1

It will be difficult to accept incoming while listening on 127.0.0.1.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A4FB57.40203>