I installed OpenVPN on my dedicated server.
Using Viscosity or Tunnelblick on the client, I successfully connected to this server.
However, after some tests, I realized that not all the traffic generated by the client goes through the server. Rather than using 1000 words to explain it, I made an image :
As you can see, the yellow part on the server side doesn't show any activity. I get the same phenomenon for YouTube videos loading for example.
Here is my OpenVPN server configuration file :
mode server proto tcp port 1199 dev tun ca ca.crt cert server.crt key server.key dh dh1024.pem tls-auth ta.key 0 cipher AES-256-CBC server 10.8.0.0 255.255.255.0 push "redirect-gateway def1" push "dhcp-option DNS 18.104.22.168" push "dhcp-option DNS 22.214.171.124" keepalive 10 120 client-to-client user nobody group nogroup chroot /etc/openvpn/jail persist-key persist-tun comp-lzo verb 3 mute 20 status openvpn-status.log
And here is the client .opvn configuration file :
client dev tun proto tcp remote MY.SER.VER.IP 1199 resolv-retry infinite cipher AES-256-CBC ca ca.crt cert client1.crt key client1.key tls-auth ta.key 1 nobind persist-key persist-tun comp-lzo verb 3
Any idea what's wrong ?
I also tried to create the following iptables rule (found on openvpn.net How To page):
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
It doesn't change my problem. However, I can't see any new rule when using
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination