[ previous ] [ next ] [ threads ]
 From:  "Frans J King" <kingf1 at cs dot man dot ac dot uk>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Possible bug in pb14r457 PPTP code (vpn.inc)
 Date:  Sat, 23 Aug 2003 18:17:42 +0100

When dnsmasq is set m0n0wall is supposed to put the lan ip in mpd.conf as the first dns server:

   if (isset($config['dnsmasq']['enable'])) {
    $mpdconf .= " set ipcp dns " . $lancfg['ipaddr'];

However it doesn't appear in mpd.conf - you just get an extra space because I don't think $langcfg
has been initialized in vpn_pptpd_configure().
It looks like the line $lancfg = $config['interfaces']['lan']; got missed out somehow so if anyone
is unsure why their PPTP clients aren't getting the right DNS server then is probably it.