Network traffic between my VPN server and my clients appears clear (not encrypted). Yet the traffic is well encrypted when clients go on the internet. Tested with wireshark.
I have a VPN server: openvpn.myserver.com. I have a website on the same server: mywebsite.myserver.com I have several clients.
When my client connects to the mywebsite.myserver.com: it seems that the traffic is not going through the VPN. The traffic is visible on wireshark and nginx tells me that the internet IP is used by the client and not the VPN network IP.
Other than this, everything seems to be working fine with my VPN.
Code: Select all
sudo /sbin/iptables -t nat -L POSTROUTING -n --line-number
Code: Select all
Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination
1 MASQUERADE all -- 172.17.0.0/16 0.0.0.0/0
2 MASQUERADE all -- 172.9.0.0/24 0.0.0.0/0
3 MASQUERADE all -- 10.0.0.0/8 0.0.0.0/0
4 MASQUERADE all -- 192.168.255.0/24 0.0.0.0/0
5 MASQUERADE tcp -- 172.9.0.6 172.9.0.6 tcp dpt:80
7 MASQUERADE udp -- 172.9.0.2 172.9.0.2 udp dpt:1194
Code: Select all
sudo route -n
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.255.255.1 0.0.0.0 UG 0 0 0 ens192
10.255.255.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens192
172.9.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-7f61684f857e
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.255.0 172.9.0.2 255.255.255.0 UG 0 0 0 br-7f61684f857e
My host server use : 172.9.0.1.
My clients use : 192.168.255.3
Anyone have an idea?
Than you in advance.