Modify

Opened 10 years ago

Closed 6 years ago

#412 closed enhancement (fixed)

pptp module automation

Reported by: james.cameron@… Owned by: florian
Priority: low Milestone: 0.9/rc6
Component: packages Version: 1.0
Keywords: pptp pptpd kmod-crypto kmod-mppe Cc:

Description

Problem: to use PPTP with MPPE, users have to edit /etc/modules to add ppp_mppe_mppc, arc4, and sha1.

Diagnosis: MPPE is optional, and in some countries it is illegal to use encryption without authority. OpenWrt has already made the decision to ship the White Russian RC4 PPTP package with dependency on kmod-crypto and kmod-mppe, but the modules are not automatically loaded. On desktop Linux systems modprobe is called by the kernel when the ppp-compress-18 compression type is detected, but OpenWrt doesn't have modprobe.

Solution: the module names should be added to a file in /etc/modules.d installed by one of the packages. I'm not sure how this should be done and will leave it up to you guys, but my suggestions are:

  • add an /etc/modules.d/ file to kmod-crypto and kmod-mppe packages, though this begs the question of whether it should be done for all kmod-* packages, or;
  • add an /etc/modules.d/ file to pptp and pptpd packages.

A totally strange solution might be to add a pppd init script that runs insmod for each module.

Attachments (0)

Change History (8)

comment:1 Changed 10 years ago by kaloz

  • Milestone set to 1.0-rc6

comment:2 Changed 10 years ago by james.cameron@…

For the pptp package, an alternative is to include the modules in the insmod in the ifup.pptp script.

For RC5 pptp package, there is no dependency on kmod-crypto and kmod-mppe.

comment:3 Changed 10 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

comment:4 Changed 10 years ago by florian

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [3658]

comment:5 Changed 9 years ago by Jamey Elgin <jamey@…>

  • Resolution fixed deleted
  • Status changed from closed to reopened

I still have trouble with this: on my system (WRT54GS w/ 0.9-pptp) I want a tunnel to come up on boot, so I set up a tun type in NVRAM (including it in ifup_interfaces) with tun_proto of pptp since the scripts will bring this up on boot with the appropriate ppp_ settings...

The kmod-mppe package places a file in /etc/modules.d to load this module during boot but ppp_mppe_mppc is dependant on ppp_generic which is dependant on slhc... so it doesn't load.

I would rather not edit scripts since I believe that once they work the less they are touched the better, so rather than including this in the insmod could we add a /etc/modules.d file for the kmod-ppp package since kmod-crypto & kmod-mppe have them?

comment:6 Changed 9 years ago by florian

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [6551]

comment:7 Changed 6 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:8 Changed 6 years ago by florian

  • Resolution set to fixed
  • Status changed from reopened to closed

Without more explanations, I am re-closing this ticket.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.