Basic routing question: Bypass VPN for specfic URL
Posted: Sat Nov 05, 2022 7:20 pm
What is the correct modificaion to my openvpn client config to avoid the VPN for a specific address?
My current config (TUN interface type) includes the options:
keepalive 10 120
remote-cert-tls server
redirect-gateway
This routes all my traffic via the VPN. However, this appears to prevent me using gmail's smtp. Therefore, I would like smtp.gmail.com to routed via my normal gateway, but leaving all other traffic routed via the VPN.
I have tried adding the following line to the config:
route smtp.gmail.com 255.255.255.255 net_gateway
but my smtp emails are still blocked. I can send emails via smtp when I stop the VPN and so all traffic is just going through the normal WAN gateway.
My current config (TUN interface type) includes the options:
keepalive 10 120
remote-cert-tls server
redirect-gateway
This routes all my traffic via the VPN. However, this appears to prevent me using gmail's smtp. Therefore, I would like smtp.gmail.com to routed via my normal gateway, but leaving all other traffic routed via the VPN.
I have tried adding the following line to the config:
route smtp.gmail.com 255.255.255.255 net_gateway
but my smtp emails are still blocked. I can send emails via smtp when I stop the VPN and so all traffic is just going through the normal WAN gateway.