[ previous ] [ next ] [ threads ]
 
 From:  drovalev at kaluga dash gov dot ru
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Ha: RE: [m0n0wall] MPD PPPoE - CHAP: rec'd FAILURE #0
 Date:  Thu, 5 Oct 2006 15:45:11 +0400
Configs are identical!!! Why it is not established PPPoE?

Working config:
Frebsd 4.11 (kernel from MONOWALL)
mpd.conf

default:
        load PPPoE
PPPoE:
        new -i ng0 PPPoE PPPoE
        set iface addrs 1.1.1.1 2.2.2.2
        set iface route default
        set iface disable on-demand
        set iface idle 0
        set bundle disable multilink
        set bundle authname agg at agg dot intranet
        set bundle password ********
        set link keep-alive 10 60
        set link max-redial 0
        set link no acfcomp protocomp
        set link disable pap chap
        set link accept chap
        set link mtu 1492
        set ipcp yes vjcomp
        set ipcp ranges 192.168.180.13 192.168.180.1
        open iface

mpd.links

PPPoE:
        set link type pppoe
        set pppoe iface rl0
        set pppoe service "whatever"
        set pppoe enable originate
        set pppoe disable incoming

MONOWALL (intreface.inc) - don't work
mpd.conf
pppoe:
        new -i ng0 pppoe pppoe
        set iface route default
        set iface {$ondemand} on-demand
        set iface idle {$idle}
        set iface up-script /usr/local/sbin/ppp-linkup

EOD;

        if (isset($pppoecfg['ondemand'])) {
                if (isset($pppoecfg['local-ip']) &&
isset($pppoecfg['remote-ip'])) {
                        $mpdconf .= <<<EOD
        set iface addrs {$pppoecfg['local-ip']} {$pppoecfg['remote-ip']}

EOD;
                } else {
                        $mpdconf .= <<<EOD
        set iface addrs 1.1.1.1 2.2.2.2

EOD;
                }
        }

        $mpdconf .= <<<EOD
        set bundle disable multilink
        set bundle authname "{$pppoecfg['username']}"
        set bundle password "{$pppoecfg['password']}"
        set link keep-alive 10 60
        set link max-redial 0
        set link no acfcomp protocomp
        set link disable pap chap
        set link accept chap
        set link mtu 1492
        set ipcp yes vjcomp
        set ipcp ranges "{$pppoecfg['local']}" "{$pppoecfg['remote']}"

EOD;

mpd.links
pppoe:
        set link type pppoe
        set pppoe iface {$wancfg['if']}
        set pppoe service "{$pppoecfg['provider']}"
        set pppoe enable originate
        set pppoe disable incoming

EOD;