phantun icon indicating copy to clipboard operation
phantun copied to clipboard

两台机器之间只能建立一个phantun连接

Open 1887656 opened this issue 10 months ago • 3 comments

今天尝试在机器A作为phantun client,与机器B作为phantun server之间通过执行两条命令建立2个连接,通过这两个连接封装2个wireguard隧道,但执行后,wireguard无法连接,是phantun目前不支持两台机器之间建立多个连接吗? /usr/bin/phantun_client --ipv4-only --local 127.0.0.1:7699 --remote 1.2.3.4:7699 & /usr/bin/phantun_client --ipv4-only --tun-local 192.168.199.1 --tun-peer 192.168.199.2 --local 127.0.0.1:7609 --remote 1.2.3.4:7609 &

1887656 avatar Apr 22 '24 03:04 1887656

理论上可以,但是对应的 SNAT 和 DNAT 要跟着配上

Ginurx avatar Jul 19 '24 03:07 Ginurx

单个phantun进程能不能同时处理多个端口呀,有些应用udp不止一个,这样要开N个server和client

firawk avatar Aug 19 '24 08:08 firawk

Please use English only for Issues.

Phantun can support multiple instances per machine, but you will need to specify --tun to a different device, as well as --tun-local, --tun-peer to different addresses that are in the same subnet. Run with -h to see the detailed usage.

dndx avatar Aug 19 '24 13:08 dndx