On 31/10/14 10:26, Ian Brooks wrote: > Hi, > > I'm trying to get a windows 7 machine to talk to our servers using the tun > drive, however its stubbornly refusing to allow traffic. Initially I was > using a standard linux ovpn config but it was complaining about ifconfig so I > added > > ifconfig-push server-ip client-ip > > in the ccd file for the client and > > ifconfig client-ip server-ip > > in the clients ovpn file. After this the output from openvpn looked like it > connected fine and the server shows its passing the ip and the client shows > its ip in ipconfig. However, no traffic passes. I can't even ping the server > ip. > > I was running this as administrator. > > > Any ideas why its failing? > > Server config: > > port #### > proto udp > dev tun > > ca keys/#### > cert keys/#### > key keys/#### > > dh keys/#### > > server #.#.#.# 255.255.255.0 > > ifconfig-pool-persist ipp.txt > > client-config-dir /etc/openvpn/ccd > push "route #.#.#.# 255.255.0.0" > > keepalive 10 120 > > tls-auth keys/#### 0 > > cipher BF-CBC > comp-lzo > > persist-key > persist-tun > > status openvpn-status.log > log openvpn.log > > verb 3 > > server ccd > ifconfig-push 1.2.3.4 5.6.7.8 > > client config: > > dev tun > proto udp > remote #.#.#.# 1194 > resolv-retry infinite > nobind > persist-key > persist-tun > > ns-cert-type server > ifconfig 5.6.7.8 1.2.3.4 > > comp-lzo > > verb 3 > > > <ca> > #### > </ca> > > <cert> > #### > </cert> > > <key> > #### > </key> > > key-direction 1 > <tls-auth> > #### > </tls-auth> > > > your CCD file is most likely not the root cause of the problem - my bet would much sooner be on the 'public' nature of the tap-win adapter; by default windows will place any untrusted adapter in the 'public' zone and will then refuse lots of things, such as ping, windows shares etc. Also, if you insist on using a CCD file then the IPs listed in it are crucial - you need to assign an address from a /30 pool, meaning that the first address in the CCD file needs to follow the rule 4 * n +2 and the second address 4 * n + 1
e.g. 10.200.0.14 10.200.13 etc HTH, JJK ------------------------------------------------------------------------------ _______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users
