From e3e3f2a8231ef19ab06adb6905bfb2f3a0dd76f0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Mon, 23 Dec 2024 00:54:54 -0500 Subject: [PATCH] * Mon Dec 23 2024 Jean-Philippe Pialasse 11.0.0-16.sme - add kernel module support for rp-pppoe plugin [SME: 12678] will allow faster fiber connexion when using multiple queue interface (RSS) set-gateway-ip will propagate both wan and diald ip run.pppoe call an interface --- root/etc/e-smith/events/actions/set-gateway-ip | 2 +- .../templates/etc/rc.d/init.d/masq/29PPPOEclampMSS | 3 +++ .../sysconfig/network-scripts/chat-ppp0/20LINUX_PLUGIN | 1 + .../templates/var/service/wan/pppoe.pppd.conf/plugin | 1 + .../templates/var/service/wan/run.pppoe.conf/device_more | 2 ++ root/var/service/wan/run.pppoe | 2 +- smeserver-base.spec | 8 +++++++- 7 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 root/etc/e-smith/templates/etc/rc.d/init.d/masq/29PPPOEclampMSS create mode 100755 root/etc/e-smith/templates/etc/sysconfig/network-scripts/chat-ppp0/20LINUX_PLUGIN create mode 100644 root/etc/e-smith/templates/var/service/wan/pppoe.pppd.conf/plugin create mode 100644 root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/device_more diff --git a/root/etc/e-smith/events/actions/set-gateway-ip b/root/etc/e-smith/events/actions/set-gateway-ip index f4186f9..516d455 100644 --- a/root/etc/e-smith/events/actions/set-gateway-ip +++ b/root/etc/e-smith/events/actions/set-gateway-ip @@ -34,7 +34,7 @@ # remote_ip = $6 # ipparam = $7 -if [ "$7" = "diald" ] +if [ "$7" = "diald" ] || [ "$7" = "wan" ] then exec /sbin/e-smith/config set GatewayIP "$6" fi diff --git a/root/etc/e-smith/templates/etc/rc.d/init.d/masq/29PPPOEclampMSS b/root/etc/e-smith/templates/etc/rc.d/init.d/masq/29PPPOEclampMSS new file mode 100644 index 0000000..3935786 --- /dev/null +++ b/root/etc/e-smith/templates/etc/rc.d/init.d/masq/29PPPOEclampMSS @@ -0,0 +1,3 @@ +# PPPOE needs this if using kernel space with rp-pppoe.se plugin +/sbin/iptables -t mangle -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu + diff --git a/root/etc/e-smith/templates/etc/sysconfig/network-scripts/chat-ppp0/20LINUX_PLUGIN b/root/etc/e-smith/templates/etc/sysconfig/network-scripts/chat-ppp0/20LINUX_PLUGIN new file mode 100755 index 0000000..fdd6d86 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/network-scripts/chat-ppp0/20LINUX_PLUGIN @@ -0,0 +1 @@ +LINUX_PLUGIN=/usr/lib64/pppd/2.4.5/rp-pppoe.so diff --git a/root/etc/e-smith/templates/var/service/wan/pppoe.pppd.conf/plugin b/root/etc/e-smith/templates/var/service/wan/pppoe.pppd.conf/plugin new file mode 100644 index 0000000..e117ce2 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/wan/pppoe.pppd.conf/plugin @@ -0,0 +1 @@ +plugin /usr/lib64/pppd/2.4.5/rp-pppoe.so diff --git a/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/device_more b/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/device_more new file mode 100644 index 0000000..3d6b359 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/device_more @@ -0,0 +1,2 @@ +# add pppoe module +/sbin/modprobe pppoe diff --git a/root/var/service/wan/run.pppoe b/root/var/service/wan/run.pppoe index 81f3a7b..7880766 100644 --- a/root/var/service/wan/run.pppoe +++ b/root/var/service/wan/run.pppoe @@ -29,4 +29,4 @@ exec \ /usr/local/bin/softlimit -m $PPPD_MLIMIT \ /usr/bin/setsid \ /usr/sbin/pppd ${extaddr:+$extaddr:} \ - file pppoe.pppd.conf + file pppoe.pppd.conf ${interface} diff --git a/smeserver-base.spec b/smeserver-base.spec index 0e63008..183ffa6 100644 --- a/smeserver-base.spec +++ b/smeserver-base.spec @@ -4,7 +4,7 @@ Summary: smeserver server and gateway - base module %define name smeserver-base Name: %{name} %define version 11.0.0 -%define release 15 +%define release 16 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -184,6 +184,12 @@ fi %changelog +* Mon Dec 23 2024 Jean-Philippe Pialasse 11.0.0-16.sme +- add kernel module support for rp-pppoe plugin [SME: 12678] + will allow faster fiber connexion when using multiple queue interface (RSS) + set-gateway-ip will propagate both wan and diald ip + run.pppoe call an interface + * Sat Dec 21 2024 Jean-Philippe Pialasse 11.0.0-15.sme - fix use of passwd command when ldap auth enabled [SME: 6453] - delete spool file only if exists to avoid error [SME: 12763]