I have estabilished connection from my workplace to my home PC using OpenVPN and this part works. I had to use port 443 because of my work network restrictions. Now i don't know how to enable it to route internet traffic and how to tell to my work PC to use TAP network adapter for internet instead of network card.
My config files:
Server Config
proto tcp-server
port 443
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
port 443
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
Client Config
proto tcp-client
http-proxy 172.20.3.100 8080
remote x.x.x.x:443
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
http-proxy 172.20.3.100 8080
remote x.x.x.x:443
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key