initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023

This commit is contained in:
2023-10-26 11:24:52 +01:00
parent bbc22988a8
commit 9510d1a360
678 changed files with 22721 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
{
$OUT = "LocalIP=$LocalIP";
}

View File

@@ -0,0 +1,11 @@
{
$OUT = 'ppp_options="';
$OUT .= "user $DialupUserAccount name $DialupUserAccount ";
# If you really want to change the options used by ipppd, then
# you can set the IpppdOptions property of the 'isdn' service.
# If you do this, you'd better know what you are doing!
$OUT .= $isdn{'IpppdOptions'} ||
" noauth debug -vj -vjccomp -bsdcomp -ac -pc " .
"noipdefault ipcp-accept-local ipcp-accept-remote";
$OUT .= ' ipparam diald"';
}

View File

@@ -0,0 +1,5 @@
{
my $device = $ExternalInterface{Name} || "eth1";
$OUT .= "/sbin/ifconfig $device up mtu 1500\n\n";
$OUT .= "interface=$device\n";
}

View File

@@ -0,0 +1,7 @@
noaccomp
noccp
nobsdcomp
nodeflate
novj
novjccomp
nopcomp

View File

@@ -0,0 +1 @@
debug

View File

@@ -0,0 +1 @@
default-asyncmap

View File

@@ -0,0 +1 @@
defaultroute

View File

@@ -0,0 +1 @@
hide-password

View File

@@ -0,0 +1,2 @@
ipcp-accept-local
ipcp-accept-remote

View File

@@ -0,0 +1 @@
ipparam wan

View File

@@ -0,0 +1,2 @@
lcp-echo-interval 30
lcp-echo-failure 2

View File

@@ -0,0 +1 @@
linkname pppoe

View File

@@ -0,0 +1 @@
mru 1492

View File

@@ -0,0 +1 @@
mtu 1492

View File

@@ -0,0 +1 @@
noauth

View File

@@ -0,0 +1 @@
nodetach

View File

@@ -0,0 +1 @@
noipdefault

View File

@@ -0,0 +1,27 @@
{
my $inkernel = $pppoe{InKernel} || "no";
my $timeout = $pppoe{Timeout} || 120; # PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
my $device = $pppoe{PhysicalInterface} || "eth1";
my $syncPPP = $pppoe{SynchronousPPP} || "no";
my $syncflag = "";
$OUT = "";
if ($syncPPP eq "yes")
{
$OUT .= "sync\n";
$syncflag = "-s";
}
if ($inkernel eq "yes")
{
# Find Roaring Penguin pppoe plugin
my ($plugin) = glob "/usr/lib*/pppd/*/rp-pppoe.so";
$plugin ||= "pppoe_plugin_could_not_be_found";
$OUT .= "plugin $plugin\n";
$OUT .= "$device";
}
else
{
$OUT .= "pty '/usr/sbin/pppoe -I $device -T $timeout -U -m 1412 $syncflag'";
}
}

View File

@@ -0,0 +1 @@
user "{ "$DialupUserAccount" }"

View File

@@ -0,0 +1,8 @@
{
my $device = $pppoe{PhysicalInterface} || "eth1";
$OUT .= "/sbin/ifconfig $device up mtu 1500\n";
$OUT .= "/sbin/modprobe ppp_generic\n";
$OUT .= "/sbin/modprobe ppp_async\n";
$OUT .= "/sbin/modprobe ppp_synctty\n";
$OUT .= "DEVICE=$device";
}

View File

@@ -0,0 +1,15 @@
{
# memory limit to catch any memory leak before it kills the system
use constant MIN_MEMORY_LIMIT => 100000000;
# If there is a memory limit in the database and it is below the minimum, delete it.
if (defined $pppoe{Mlimit} && $pppoe{Mlimit} < MIN_MEMORY_LIMIT)
{
$DB->get_prop_and_delete('pppoe','Mlimit');
delete $pppoe{Mlimit};
}
$OUT = "PPPD_MLIMIT=";
$OUT .= $pppoe{Mlimit} || MIN_MEMORY_LIMIT;
}

View File

@@ -0,0 +1,2 @@
# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=120