mpd with a dual pppoe setup
    Reinhold 
    freebsd at violetlan.net
       
    Sun Feb  3 10:51:56 PST 2008
    
    
  
Thanks for the reply.
>> 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.
Thanks for that, I have added my new config file below.
>> 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.
How will I go ahead and set the static ips for both my wan connections?
For wan1 I have one ip and for wan2 I have 5 ips
I was orginally thinking of seting up proxy-arp to add the extra 4 ips on
wan2 after connecting using the first ip, but now I'm not to sure anymore.
We need these ips because some of the websites and servers that we manage
are ip restricked for added security, this is also the reason why I have a
pptp server for the people thats not in our office.
Here is my new conf file.
default:
        load wan1
        load wan2
        load pptp
wan1:
        create bundle static WAN1
        set iface route default
        set iface up-script /usr/local/etc/mpd/script-wan1.sh
        set iface down-script /usr/local/etc/mpd/script-wan1.sh
        set ipcp ranges 0.0.0.0/0 0.0.0.0/0
        create link static L1 pppoe
        set link action bundle WAN1
        set auth authname "username0 at provider"
        set auth password "passwd"
        set pppoe iface fxp0
        set pppoe service "BTConnect1"
        load common_setting
wan2:
        create bundle static WAN2
        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 ipcp ranges 0.0.0.0/0 0.0.0.0/0
        create link static L2 pppoe
        set link action bundle WAN2
        set auth authname "username1 at provider"
        set auth password "passwd"
        set pppoe iface fxp1
        set pppoe service "BTConnect2"
        load common_setting
common_setting:
        set bundle disable multilink
        set link disable pap chap
        set link accept chap
        set link max-redial -1
        set link mtu 1492
        set link mru 1492
        set link keep-alive 10 60
        set ipcp yes vjcomp
        set ipcp enable req-sec-dns
        open
pptp:
        set ippool add pool1 192.168.1.220 192.168.1.240
        create bundle template B
        set iface enable proxy-arp
        set iface idle 1800
        set iface enable tcpmssfix
        set ipcp yes vjcomp
        set ipcp ranges 192.168.1.1/32 ippool pool1
        set ipcp dns 192.168.1.5
        set bundle enable compression
        set ccp yes mppc
        set mppc yes e40
        set mppc yes e128
        set mppc yes stateless
        create link template L pptp
        set link action bundle B
        set link enable multilink
        set link yes acfcomp protocomp
        set link no pap chap
        set link enable chap
        set link keep-alive 10 60
        set link mtu 1460
        set pptp self wan1-static-ip
        set link enable incoming
How does mpd5 assign the ng interfaces, in my previose cong there was a
line new -i ng0 provider PPPoE0, does mpd5 do this automatically?
Thanks again for the help.
Reinhold
    
    
More information about the freebsd-questions
mailing list