Kulska
@Kulska
Sat, Jul 2, 2022 2:18 AM
wireguard remote site 在server ip變的時候 沒有透過domain name更新ip...
掰噗~
@baipu
說
Sat, Jul 2, 2022 2:18 AM
更新好花時間@@
Kulska
@Kulska
Sat, Jul 2, 2022 6:23 AM
vi /opt/check_oet1
!/bin/sh
ping 192.168.9.254 -c 1 >/dev/null 2>&1
logger -p
https://user.info
'Check 192.168.9.254 avaliable.'
if [ $? -gt 0 ]
then
logger -p
https://user.info
'192.168.9.254 not avaliable, restart wireguard.'
/sbin/
https://wireguard-restart.sh
fi
Kulska
@Kulska
Sat, Jul 2, 2022 6:24 AM
vi /etc/cron.d/checkoet1
/10
* root /opt/sbin/check_oet1
Kulska
@Kulska
Sat, Jul 2, 2022 6:27 AM
想不出怎麼處理 就先這樣子作了
Kulska
@Kulska
Sat, Jul 2, 2022 6:37 AM
印表機分享又死掉了 還不知道怎麼搞
Kulska
@Kulska
Sat, Jul 2, 2022 6:47 AM
stopservice cron && startservice cron
Kulska
@Kulska
Sat, Jul 2, 2022 6:47 AM
收工
Kulska
@Kulska
Sat, Jul 2, 2022 7:48 AM
印表機改用USB over IP處理 但還沒寫boot start script 然後小孩子醒惹
Kulska
@Kulska
Sat, Jul 2, 2022 8:30 AM
usbip在usb重插的時候要重bind...
Kulska
@Kulska
Mon, Jul 4, 2022 11:35 PM
換ip後client連不上的 解決惹
載入新的回覆
!/bin/sh
ping 192.168.9.254 -c 1 >/dev/null 2>&1
logger -p https://user.info 'Check 192.168.9.254 avaliable.'
if [ $? -gt 0 ]
then
logger -p https://user.info '192.168.9.254 not avaliable, restart wireguard.'
/sbin/https://wireguard-restart.sh
fi
/10 * root /opt/sbin/check_oet1