mpd with a dual pppoe setup
Alexander Motin
mav at FreeBSD.org
Sat Feb 2 16:23:08 PST 2008
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 at 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
More information about the freebsd-questions
mailing list