LoginSignup
0
0

More than 5 years have passed since last update.

sshとsocatでVPN

Posted at

https://blog.monophile.net/posts/20180105_socat_vpn_tap.html
これのssh版

サーバ側

  • socatコマンドをパスワードなしでsudoで実行できるようにしておく

クライアント側

クライアント側で実行
mkfifo fifo
cat fifo | (ssh sakura sudo socat - tun:10.0.0.1/24,tun-type=tap,tun-name=tap1,iff-up,iff-promisc) | sudo socat - tun:10.0.0.2/24,tun-type=tap,tun-name=tap1,iff-up,iff-promisc > fifo
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0