多個 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)當我啟動任何 openvpn 用戶端時,它會接管所有連接,並且我無法從本地網路或 openvpn 進行連接(所有 ip 均已更改)。

任何想法 ?是否可以在同一個盒子中工作 1 個 openvpn 伺服器和 2 個客戶端?

相關內容