Monthly OpenWrt backup Sun Apr 26 07:44:04 UTC 2026

This commit is contained in:
backup-bot
2026-04-26 07:44:04 +00:00
parent eb39f22291
commit 7d51242962
6 changed files with 186 additions and 0 deletions
+23
View File
@@ -687,6 +687,29 @@ protocol bgp {
}
CFGEOF
# WARNING: /etc/init.d/y_startup не существует
#Gen file /etc/rc.local
mkdir -p "/etc"
cat << 'CFGEOF' > "/etc/rc.local"
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
#for pptp
#opkg install pptpd kmod-nf-nathelper-extra
#iptables -t raw -A PREROUTING -p tcp --dport 1723 -j CT --helper pptp
# fot sync mtu diff
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
#activate use routing table 10 (OSPFmy)
ip rule add priority 10 from all lookup 10
#(birdban)
ip rule add priority 10 from all lookup 11
exit 0
CFGEOF
#----------------------------------------------------
#Generating cron
#----------------------------------------------------