[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] redirect-gateway + http-proxy + ppp problem + Workaround

  • Subject: Re: [Openvpn-users] redirect-gateway + http-proxy + ppp problem + Workaround
  • From: jan <jan@xxxxxxxxxxxx>
  • Date: Wed, 05 Dec 2007 16:53:10 +0100


it´s vodafone based: They don't push gw informations.
I have a workaround for debian (Should run on other dists as well); awk 
& iproute2 is needed.
I don´t know if other dists also set the ppp route devicebased, if they 
do it, i think some similar code should be integrated directly in 
openvpn. How does Wintendo?

My Workaround, lying in ip-up.d:

if [ $(ip route list exact default |\
  awk '/^default/ {print $2}') = dev ];
         IF=$(ip route | awk '/^default/ {print $3}')
         GW=$(ip address show $IF |\
	 awk '/peer/ {print $4}' | cut -d"/" -f1)
         ip route replace default via $GW dev $IF

Debians Maintainer for the ppp made the decision for devicebased routing 
about 4 years ago, caused by this "Bug": 

Greetings, Jan
OpenVPN mailing lists