Open DimaK-tracxpoint opened 7 years ago
sorry,i want to use server ping client,but not success,why????
I'm also trying to solve that issue. I will answer this issue when I've found a solution.
I'm currently trying to configure the host routes to redirect packets to the OVPN container which should do the routing. No success yet, but trying...
The other alternative would be that the tun0 device is not created with the network namespace of the container but in the one of the host (e.g. --net=host
) . But I don't like the idea of running the OpenVPN container within the same namespace as the host.
docker-openvpn
container:root@vps9:~/server-ops/docker# docker-compose exec openvpn /bin/bash
bash-4.4# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
docker-openvpn
container:ip route add 192.168.255.0/24 via 172.18.0.11
push "route 172.18.0.0 255.255.0.0 192.168.255.1"
Hi all and thanks for the great product. I have to call a service listening on a TCP port - on the OVPN client machine. There is no issue to do so from OVPN server container - but I want to be able to connect from hosting it machine. Is it possible and how the routing has to be set up? I got the following configuration:
Thanks!