Monthly OpenWrt backup Sun Apr 26 07:44:04 UTC 2026
This commit is contained in:
@@ -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
|
||||
#----------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user