Package: ppp
Version: 2.4.6-3.2
Severity: wishlist
Tags: patch

   * Tried to rename interfaces for each technology I'm using
* Doing some different iptables setups based on the prefix of the interface

Based on the original Debian patch which is using ifname parameter to rename the interface of the outgoing interfaces I've create 2 patches to solve the issue of the incomming connections
of different technologies I'm using on my routers: pptp, pppoe or l2tp.
I want to do differences between those thenologies and rename the interfaces in format like:
pptp0, pptp1, pppoes2, pppoes3, l2tp4.
I've changed the original patch and I've added a detection of the ifname format. If you put "ifname pppoesN" the patch will detect the character 'N' and will rename the interfaces using
the prefix "pppoes" and add the unit of the ppp interface.
Then using a regex in radius plugin split the prefix part of the interface name (previously was using a sscanf function) and extract the unit id and create correct NAS-port-id.

First I've tried to use ip-pre-up/ip-up scripts but I discover that radius plugin couldn't detect the interface and also some parts of the ppp couldn't get the correct interface name. So I've decided to rename the interface
directly in ppp core.

Hope this patch will be useful for many administrators.

Here are the patches:
https://github.com/AdrianBan/ppp-debian/blob/master/debian/patches/ppp-2.4.6-radius-plugin-ifname-fix.patch
https://github.com/AdrianBan/ppp-debian/blob/master/debian/patches/ppp-2.4.2-ifname-enhanced.patch

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ppp depends on:
ii  init-system-helpers  1.24
ii  libc6                2.19-22
ii  libpam-modules       1.1.8-3.1
ii  libpam-runtime       1.1.8-3.1
ii  libpam0g             1.1.8-3.1
ii  libpcap0.8           1.7.4-1
ii  procps               2:3.3.10-4

ppp recommends no packages.

ppp suggests no packages.

-- no debconf information
adrian@RouterFW:/opt/devel/ppp/ppp-2.4.6/debian/patches$ exit
exit
root@RouterFW:/opt/devel/ppp/ppp-2.4.6/debian/patches# cp /tmp/reportbug-ppp-20151031-22781-KhGO3b .
root@RouterFW:/opt/devel/ppp/ppp-2.4.6/debian/patches#
root@RouterFW:/opt/devel/ppp/ifname-enhanced# cat reportbug-ppp-20151031-22781-KhGO3b
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Adrian Ban <adr...@abtelecom.ro>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: ppp: Enhanced arbitrary interface names (ifname)
Message-ID: <144629429023.22781.3037784529480381644.report...@routerfw.abtelecom.ro>
X-Mailer: reportbug 6.6.5
Date: Sat, 31 Oct 2015 14:24:50 +0200

Package: ppp
Version: 2.4.6-3.2
Severity: wishlist
Tags: patch

   * Tried to rename interfaces for each technology I'm using
* Doing some different iptables setups based on the prefix of the interface

Based on the original Debian patch which is using ifname parameter to rename the interface of the outgoing interfaces I've create 2 patches to solve the issue of the incomming connections
of different technologies I'm using on my routers: pptp, pppoe or l2tp.
I want to do differences between those thenologies and rename the interfaces in format like:
pptp0, pptp1, pppoes2, pppoes3, l2tp4.
I've changed the original patch and I've added a detection of the ifname format. If you put "ifname pppoesN" the patch will detect the character 'N' and will rename the interfaces using
the prefix "pppoes" and add the unit of the ppp interface.
Then using a regex in radius plugin split the prefix part of the interface name (previously was using a sscanf function) and extract the unit id and create correct NAS-port-id.

First I've tried to use ip-pre-up/ip-up scripts but I discover that radius plugin couldn't detect the interface and also some parts of the ppp couldn't get the correct interface name. So I've decided to rename the interface
directly in ppp core.

Hope this patch will be useful for many administrators.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ppp depends on:
ii  init-system-helpers  1.24
ii  libc6                2.19-22
ii  libpam-modules       1.1.8-3.1
ii  libpam-runtime       1.1.8-3.1
ii  libpam0g             1.1.8-3.1
ii  libpcap0.8           1.7.4-1
ii  procps               2:3.3.10-4

ppp recommends no packages.

ppp suggests no packages.

-- no debconf information

Reply via email to