|
|
|
I have OpenVPN 2.0.9
installed on my CentOS box, and am trying to get it set up so that it routes all
internet traffic through the VPN when connected. For the most part, this
seems to work. However, for some sites (like www.google.com) it won't let me
connect.
The issue seems to
be when the DNS lookup returns a different host name than what is specified
(like a nslookup of www.google.com returns a
canonical name of www.l.google.com).
Or www.openvpn.net returns
openvpn.net. If I enter the canonical name then it works fine. If I
enter the other name the lookup fails.
I have configured
the system using this command:
echo 1 >
/proc/sys/net/ipv4/ip_forward
And
iptables -t nat -s
10.8.0.0/24 -A POSTROUTING -j SNAT --to <my server IP>
My server doesn't
have ipt_masquerade support compiled into the kernel, so I had to use that
command. I have also added the option:
push
"redirect-gateway def1"
to the server.conf
file.
|