>Hi, On Sun, Sep 03, 2023 at 06:05:09AM +0000, Jason Long wrote: > push "route 10.0.2.0 255.255.255.0 10.0.2.2 1" > push "dhcp-option DNS 172.20.1.2" > push "dhcp-option DNS 172.20.1.7" > push "redirect-gateway autolocal"
>This *should* install a default gateway, but if it doesn't, check the >client log files what goes wrong. I've never used "autolocal" without >also setting "def1", but according to the manpage it might work. >Generally speaking, for anyone still bothering with IPv4, using "def1" >is always recommended. So >push "redirect-gateway def1 autolocal" > The routing table is: > > C:\> route print 4 > > IPv4 Route Table > =========================================================================== > Active Routes: > None > Persistent Routes: > None > > When the OpenVPN virtual NIC has the DNS server IP addresses, then why I > can't ping the target with their names? >because you have no routes toward the DNS server IPs. >(Somthing is wrong with your "route print" command anyway, I do not think >that "4" is doing what you want, namely, show only IPv4 - most likely it >tries to lookup a route towards "4", however that is interpreted) >Again, this is all basic understanding of IP and routing, and not an >OpenVPN problem. >gert >-- >"If was one thing all people took for granted, was conviction that if you >feed honest figures into a computer, honest figures come out. Never doubted >it myself till I met a computer with a sense of humor." > Robert A. Heinlein, The Moon is a Harsh Mistress >Gert Doering - Munich, Germany g...@greenie.muc.de Hi Gert, Thank you so much for your reply. I added the "topology subnet" and problem solved!!! _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users