多个 openvpn 客户端/服务器 + 热点 + torrent + pihole

多个 openvpn 客户端/服务器 + 热点 + torrent + pihole

我家里有这样的设置:

Router(internet) <---> (eth0) nanopiK2 (wlan0-hotspot)<---->
                             |
               Ubuntu 18.04 server
                   OpenVPN Server.  PiHole (accessible from openvpn server and internal network).
          Torrent Server (direct connection).

现在一切正常,我甚至可以通过 openvpn 从我的手机上访问,并且可以随时从我的手机上使用 pihole。

现在我想要实现的是下一个目标。

PiHole (accessible from openvpn server and internal network).
                                           192.168.0.X/24                       192.168.1.X/24
         Router(internet) <---> (eth0) nanopiK2 (wlan0-hotspot)<----> Clients
                               /             |             \
                              /      10.0.0.X/24      \
                             /               |                 \
                            /    OpenVPN Server        \
Torrent Server via one opevpn                       All traffic comming via wlan0 must
client (routing via ports?).                             be routed to use other openvpn
                                                            client different of the one using for torrent.   

我尝试了几种方法,但遇到了下一种问题:

1) 当我启动热点时,出现一些错误,pihole 正在使用 dchp 的端口,我想继续使用它(或者最好使用其他东西?)

2)当我启动任何 opevpn 客户端时,它都会接管所有连接,并且我无法从本地网络或 openvpn 连接(所有 ip 都已更改)。

有什么想法吗? 可以在同一个盒子里运行 1 个 openvpn 服务器和 2 个客户端吗?

相关内容