View Single Post
  #2  
Old 6th June 2009, 19:08
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

Its is easier to do with openswan, take a look at http://www.linuxhomenetworking.com/w...ing_Linux_VPNs as for starting the connection when ppp0 is up, you can create /etc/ppp/ip-up.local and add your commands there something like

Code:
if [ "$IFNAME" = "ppp0" ]; then
   service ipsec start
fi
And stop if if ppp0 drops, you add that to the ip-down.local file.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote