Hi Jordan, Jordan Hayes wrote: > I have a (Windows) client that uses a OpenVPN to project an "outside" > address (on a Linux server), by using the tunnel as its default route. > In the client ccd file, I have this: > > ----- > ifconfig-push 10.12.0.45 10.12.0.46 > push "redirect-gateway" > ----- > > And I have iptables set to do the right thing with SNAT: > > -A POSTROUTING -s 10.12.0.45 -o eth0 -j SNAT --to-source 1.2.3.4 > > This all works great ... until it doesn't. What happens is that the > upstream connectivity goes down for whatever reason, and so the tunnel > on the client side breaks and the routes that were installed on the > Windows machine are removed. So it's back to having a "normal" default > route. Later, the upstream connectivity comes back, and the tunnel is > reestablished with the server, but the default routes don't get put back > in. > > I'm using 2.3.4-I003 on the Windows XP client, and it uses IPAPI to do > the routes. > > Has anyone else seen this before? > > this is what the 'def1' option was invented for - try using
push "redirect-gateway def1" for this particular client to see if that helps. HTH, JJK ------------------------------------------------------------------------------ Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users