So there are certain sites such as costco.com that block me using a vpn. I'm trying to just route those sites around the vpn to use my local connection. What I've tried works with some sites like whatismyipaddress.com but for sites like costco, ticketmaster and pizzahut it doesn't work.
# host/port of vpn server
remote * 8888
# file containing username and password
#auth-user-pass openvpn.userpass
# ... or prompt for authentication
auth-user-pass pass.txt
# equivalent to pull, tls-client
client
# redirect all outgoing traffic to the vpn gateway
redirect-gateway
# verify the server certificate for authenticity
remote-cert-tls server
cipher AES-256-CBC
proto udp
dev tun
#keepalive 10 120
nobind
#persist-key
#persist-tun
# ssl certificate / key used for tls
#ca certs/ca.crt
#cert certs/client1.crt
#key certs/client1.key
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
route 0.0.0.0 0.0.0.0 vpn_gateway 500
config custom_configs.txt
route costco.com 255.255.255.255 net_gateway
route whatismyipaddress.com 255.255.255.255 net_gateway
block-outside-dns
Mon Jun 08 21:23:32 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Mon Jun 08 21:23:32 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Mon Jun 08 21:23:32 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Enter Management Password:
Mon Jun 08 21:23:33 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]*:8888
Mon Jun 08 21:23:33 2020 UDP link local: (not bound)
Mon Jun 08 21:23:33 2020 UDP link remote: [AF_INET]*:8888
Mon Jun 08 21:23:33 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Mon Jun 08 21:23:33 2020 [VPN] Peer Connection Initiated with [AF_INET]*:8888
Mon Jun 08 21:23:34 2020 open_tun
Mon Jun 08 21:23:34 2020 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{045DD02E-23E3-480F-9BB7-99BB3E952F9D}.tap
Mon Jun 08 21:23:34 2020 Notified TAP-Windows driver to set a DHCP IP/netmask of */255.255.255.252 on interface {045DD02E-23E3-480F-9BB7-99BB3E952F9D} [DHCP-serv: *, lease-time: 31536000]
Mon Jun 08 21:23:34 2020 Successful ARP Flush on interface [15] {045DD02E-23E3-480F-9BB7-99BB3E952F9D}
Mon Jun 08 21:23:34 2020 Block_DNS: WFP engine opened
Mon Jun 08 21:23:34 2020 Block_DNS: Using existing sublayer
Mon Jun 08 21:23:34 2020 Block_DNS: Added permit filters for exe_path
Mon Jun 08 21:23:34 2020 Block_DNS: Added block filters for all interfaces
Mon Jun 08 21:23:34 2020 Block_DNS: Added permit filters for TAP interface
Mon Jun 08 21:23:39 2020 ROUTE: route addition failed using CreateIpForwardEntry: The object already exists. [status=5010 if_index=15]
Mon Jun 08 21:23:39 2020 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Mon Jun 08 21:23:39 2020 Initialization Sequence Completed
It might have something to do with these messages I get:
Mon Jun 08 21:23:39 2020 ROUTE: route addition failed using CreateIpForwardEntry: The object already exists. [status=5010 if_index=15]
I read that that might have to do with multiple instances of openvpn but there is only one. I just did a clean install of the newest version of openvpn to be sure.
I've tried the costco using different methods:
route 170.167.117.81 255.255.255.255 192.168.1.1
route 170.167.117.81 255.255.255.255 net_gateway
route costco.com 255.255.255.255 192.168.1.1
Doing a route print shows the ip after routing and after disconnecting the vpn the route is gone from route print.
I also tried adding any additional ip's that showed up in tracert to costco.com
I'm at a loss. Are there just certain websites you can't route around the vpn?