View Single Post
  #2   (View Single Post)  
Old 23rd May 2008
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Code:
root@gw:/etc/ovpn # pg /etc/hostname.tun0
inet 169.254.235.1 255.255.255.252 169.254.235.2
!/sbin/route add 169.254.235.0/24 169.254.235.1
#
used in place of...

Code:
root@gw:pg /etc/ovpn/server.ovpn
ifconfig 169.254.235.1 169.254.235.2
route 169.254.235.0/24 169.254.235.1
#
I haven't drilled into it, but the openVPN uid _openvpn doesn't appear to have authority to effect the tun0 ifconfig nor the route add. By letting it happen through the hostname.tun0, it "just works."

Perhaps someone knows a better fix. It may be related to the fact that I mimicked -- likely imperfectly -- the _openvpn uid/gid framwork of openvpn 2.0.n package install.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote