Created attachment 444060 [details] patch to allow renaming ppp-interfaces This patch will allow to rename ppp-interfaces. Scenario: WAN-connection is PPPoE Roadwarriors use IPsec with L2TP In this case all interfaces are named as pppN (N=0,1,2,3…) and this makes it difficult to treat these interfaces differently in the firewall i.e. iptables. The patch allows renaming interfaces, i.e. in the above scenario it is possible to use pppoe as interface-name. Or for Roadwarriors you may use ppprw. Several other distros have applied this patch, i.e. suse, debian, ubuntu, openwrt. Pls, apply this patch to make ppp behave less stupid. :) (The patch is done against version 2.4.5 but will apply fine to the current version 2.4.7) Thanks
Created attachment 444098 [details, diff] updated patch for ppp-2.4.7 Updated patch according to reference by openwrt and ppp-2.4.7. Patch will apply after all gentoo patches.
See the emerge-log: INFO: setup Package: net-dialup/ppp-2.4.7-r2 Repository: gentoo Maintainer: polynomial-c@gentoo.org base-system@gentoo.org USE: abi_x86_64 activefilter amd64 dhcp eap-tls elibc_glibc ipv6 kernel_linux pam userland_GNU FEATURES: preserve-libs sandbox suidctl Determining the location of the kernel source code Found kernel source directory: /usr/src/linux Found kernel object directory: /lib/modules/3.14.77-r201608211827/build Found sources for kernel version: 3.14.77-r201608211827 INFO: prepare Applying various patches (bugfixes/updates) ... 02_all_make-vars.patch ... 03_all_use_internal_logwtmp.patch ... 04_all_mpls.patch ... 06_all_killaddr-smarter.patch ... 08_all_wait-children.patch ... 10_all_defaultgateway.patch ... 12_all_linkpidfile.patch ... 16_all_auth-fail.patch ... 18_all_defaultmetric.patch ... 20_all_dev-ppp.patch ... 24_all_passwordfd-read-early.patch ... 26_all_pppd-usepeerwins.patch ... 28_all_connect-errors.patch ... 30_all_Makefile.patch ... 32_all_pado-timeout.patch ... 34_all_lcp-echo-adaptive.patch ... 80_all_eaptls-mppe-0.997.patch ... 85_all_dhcp-make-vars.patch ... 86_all_dhcp-sys_error_to_strerror.patch ... Done with patching Enabling PAM Enabling IPv6 Enabling CBCP Adding ppp-dhcp plugin files Disabling radius Applying user patches from /etc/portage/patches//net-dialup/ppp ... 10_pppd-2.4.7_custom_iface_names.patch ... Done with patching INFO: install Final size of build directory: 5416 KiB Final size of installed tree: 1404 KiB WARN: postinst If the following test report contains a missing kernel configuration option that you need, you should reconfigure and rebuild your kernel before running pppd. INFO: postinst Checking for suitable kernel configuration options... LOG: postinst Pon, poff and plog scripts have been supplied for experienced users. Users needing particular scripts (ssh,rsh,etc.) should check out the /usr/share/doc/ppp-2.4.7-r2/scripts directory. INFO: other SetUID: [chmod go-r] /usr/sbin/pppd ...
I'd like to see this happen. I'm building my own home router using Gentoo, and find this annoying problem.
commit ae130c2572104652c4f7409359c0f2198ca3404c Author: Lars Wendler <polynomial-c@gentoo.org> Date: Mon Mar 13 14:30:26 2017 net-dialup/ppp: Added custom interface names patch (bug #592050). Package-Manager: Portage-2.3.4, Repoman-2.3.2