xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
3.14k stars 433 forks source link

error on FreeBSD 12.1 #23

Closed zh-yjie closed 3 years ago

zh-yjie commented 3 years ago
root@freebsd:/usr/local/tun2socks # ./tun2socks-freebsd-amd64 -d tun://tun0 -p socks5://127.0.0.1:1080
FATA[0000] Failed to start: open device tun://tun0: failed to set MTU on tun0
xjasonlyu commented 3 years ago

Try with tun://tun0?mtu=1500

zh-yjie commented 3 years ago

Try with tun://tun0?mtu=1500

The result

root@freebsd:/usr/local/tun2socks # ./tun2socks-freebsd-amd64 -d tun://tun0?mtu=1500 -p socks5://127.0.0.1:1080
./tun2socks-freebsd-amd64: No match.
zh-yjie commented 3 years ago

It has been solved. Thank you.

tun2socks-freebsd-amd64 -d "tun://tun0?mtu=1500" -p socks5://127.0.0.1:1080