diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2017-10-30 17:27:22 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2017-12-05 20:39:15 +0500 |
commit | ae72e179afa46d82865aa8d459b32cc27541e4a7 (patch) | |
tree | f426671bf7ef9cecf06937f7a673f8b03b7a58bd /accel-pppd/accel-ppp.conf | |
parent | 71770d7a41278731f676a11ff943da735a09c5b0 (diff) | |
download | accel-ppp-ae72e179afa46d82865aa8d459b32cc27541e4a7.tar.gz accel-ppp-ae72e179afa46d82865aa8d459b32cc27541e4a7.zip |
ppp: implement per-ctrl ppp interface rename support, may be overrided by radius
Reuse exsisting radius functionality and allow set iterface name
template for pppoe/pptp/l2tp, '%d' specification will be replaced
automagically to the next available index by kernel.
PPP interface rename allows to easy differ client's interfaces from
the other ppp ones, for example, with just netfilter interface rules.
Example:
[pptp]
ifname=pptp%d will produce pptp0, pptp1, ...
Diffstat (limited to 'accel-pppd/accel-ppp.conf')
-rw-r--r-- | accel-pppd/accel-ppp.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/accel-ppp.conf b/accel-pppd/accel-ppp.conf index 7ab2efd9..146585e6 100644 --- a/accel-pppd/accel-ppp.conf +++ b/accel-pppd/accel-ppp.conf @@ -70,6 +70,7 @@ unit-cache=1 [pptp] verbose=1 #echo-interval=30 +#ifname=pptp%d [pppoe] verbose=1 @@ -81,6 +82,7 @@ called-sid=mac #tr101=1 #padi-limit=0 #ip-pool=pppoe +#ifname=pppoe%d #sid-uppercase=0 #vlan-mon=eth0,10-200 #vlan-timeout=60 @@ -103,6 +105,7 @@ verbose=1 #dataseq=allow #reorder-timeout=0 #ip-pool=l2tp +#ifname=l2tp%d [ipoe] verbose=1 |