I managed to create a VPN and also force all client's internet traffic throught the VPN.
All works fine but p2p traffic: when I try to download something with utorrent, the connection collapse.
Any help?
Code: Select all
#SERVER CONF
port 443
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-auth ta.key 0
key-direction 0
cipher AES-128-CBC # AES
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 9
tun-mtu 24000
fragment 0
mssfix 0
Code: Select all
client
dev tun
proto tcp
remote 35.202.70.85 443
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
key-direction 1
cipher AES-128-CBC
auth SHA256
verb 3
tun-mtu 24000
fragment 0
mssfix 0
#remote server
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
<ca>
-----BEGIN CERTIFICATE-----