我想创建一个配置,其中一个客户端是另一个特定客户端的默认网关。

我有一个在客户端到客户端模式下配置的openvpn服务器。两个客户端的配置如下:

cd /etc/openvpn/staticclients

root@host:/etc/openvpn/staticclients# cat test1
ifconfig-push 10.7.0.10 255.255.255.255
root@host:/etc/openvpn/staticclients# cat test2
ifconfig-push 10.7.0.5 255.255.255.255

我如何为test1客户端设置默认网关以通过test2客户端移动所有流量?因此,连接到vpn test1之后,默认网关将通过test2。是否可以通过某些推送路径进行这种配置?

感谢您的帮助和最诚挚的问候

最佳答案

push "route-gateway 10.7.0.5"
--client-to-client
iroute