use sshfs to mount remote filesystem , command sample

安裝 command :
apt-get install sshfs

sshfs [[email protected]]host:[remote_directory] mountpoint [options]

sshfs -p 2200 [email protected]:/home/rimmon DEV

fusermount -u DEV

sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK

fusermount -u ~/TSLOG_BAK

速度測試

sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK

1.1G 費時 19秒 , 約 55MB/s

[docker] 用 docker 建立 ipsec vpn server


URL: https://github.com/hwdsl2/docker-ipsec-vpn-server

#
docker run \
    --name ipsec-vpn-server \
    --env-file ./vpn.env \
    --restart=always \
    -p 500:500/udp \
    -p 4500:4500/udp \
    -v /lib/modules:/lib/modules:ro \
    -d --privileged \
    hwdsl2/ipsec-vpn-server
#
# docker logs ipsec-vpn-server
# docker exec -it ipsec-vpn-server ipsec status
# docker exec -it ipsec-vpn-server ipsec whack --trafficstatus