Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592050 - net-dialup/ppp: custom interface names patch
Summary: net-dialup/ppp: custom interface names patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://dev.openwrt.org/browser/trunk...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-24 21:24 UTC by cilly
Modified: 2017-03-13 13:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to allow renaming ppp-interfaces (10_pppd_custom_iface_names.patch,5.04 KB, text/plain)
2016-08-24 21:24 UTC, cilly
Details
updated patch for ppp-2.4.7 (10_pppd-2.4.7_custom_iface_names.patch,5.12 KB, patch)
2016-08-25 14:41 UTC, cilly
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cilly 2016-08-24 21:24:47 UTC
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
Comment 1 cilly 2016-08-25 14:41:05 UTC
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.
Comment 2 cilly 2016-08-25 14:54:10 UTC
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 ...
Comment 3 Fpemud 2016-12-16 07:42:13 UTC
I'd like to see this happen.
I'm building my own home router using Gentoo, and find this annoying problem.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-03-13 13:31:08 UTC
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