Skip to content

flyw/TP4OpenW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TP4OpenW

Notice:

This script works only on 19.07*

Install

sed -i 's/downloads.openwrt.org/mirrors.tuna.tsinghua.edu.cn\/openwrt/g' /etc/opkg/distfeeds.conf
opkg update
tls_line=$(opkg list | grep libustream | grep tls)
tls_package=$(echo "$tls_line"  | head -n1 | cut -d " " -f1)
opkg install ${tls_package} unzip
wget https://github.com/flyw/TP4OpenW/archive/master.zip -O master.zip
unzip master.zip
mv TP4OpenW-master TP4OpenW
/root/TP4OpenW/installation.sh

Config autossh

ON ROUTE

scp /root/.ssh/id_rsa.pub root@[UPSTREAM_IP]:/tmp/id_rsa.pub

ON UPSTREAM_SERVER

cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys

ON ROUTE

ssh root@[UPSTREAM_IP]

Config

vi /etc/config/autossh
# Update [UPSTREAM_IP]
reboot

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages