Page MenuHomeVyOS Platform

PPTP: ppp-options mppe default overrides the RADIUS MS-MPPE-Encryption-Policy
Open, NormalPublicBUG

Description

Since T9462, a PPTP server no longer enforces the MS-MPPE-Encryption-Policy attribute that RADIUS returns for a user: the default of ppp-options mppe (prefer) now overrides it. After an upgrade from 1.5.1, a user that RADIUS marks as "encryption required" can connect without encryption.

Description
PPTP server with RADIUS authentication, ppp-options mppe not set:

set vpn pptp remote-access authentication mode radius
set vpn pptp remote-access authentication protocols mschap-v2
set vpn pptp remote-access authentication radius server <radius-ip> key <secret>
set vpn pptp remote-access client-ip-pool POOL range 10.200.1.0/24
set vpn pptp remote-access default-pool POOL
set vpn pptp remote-access gateway-address 10.200.1.1
set vpn pptp remote-access outside-address <server-ip>

RADIUS returns MS-MPPE-Encryption-Policy = Encryption-Required for the user. The client refuses MPPE (pppd nomppe).

                 session          MPPE
1.5.1            refused          -
rolling, 1.5     up               none

The user is connected without encryption although RADIUS requires it.

Cause
T9462 (https://github.com/vyos/vyos-1x/pull/5557) made the template write the value of ppp-options mppe into the [pptp] section:

[pptp]
mppe=prefer

In 1.5.1 this line was rendered empty (mppe=). accel-ppp applies the RADIUS policy only while the PPTP module's own setting is unset (accel-pppd/ppp/ccp_mppe.c, ev_mppe_keys(): if (ev->ppp->ses.ctrl->mppe == MPPE_UNSET)). ppp-options mppe has a default (prefer), so the [pptp] line now always has a value and the RADIUS policy is never applied.

No setting gives the 1.5.1 behaviour back

Releaseppp-options mppeRADIUS "required" user, client refuses MPPERADIUS "allowed" user, client refuses MPPE
1.5.1not set, or requirerefusedup, not encrypted
rolling, 1.5not setup, not encryptedup, not encrypted
rolling, 1.5preferup, not encryptedup, not encrypted
rolling, 1.5requirerefusedrefused
rolling, 1.5denyup, not encryptedup, not encrypted
  • require enforces encryption, but for every user: a user whose RADIUS policy allows no encryption is now refused.
  • delete vpn pptp remote-access ppp-options mppe commits, but the file still has mppe=prefer.
  • allow is not accepted by the CLI.

Suggested fix
Do not write [pptp] mppe= when ppp-options mppe is not set in the configuration (leave the module setting unset so RADIUS decides), and write it only for an explicitly configured value.

Details

Version
rolling, 1.5
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)