View Single Post
Posts: 19 | Thanked: 47 times | Joined on Nov 2010
#13
Just for reference: On the N900 the following works with vpnc:

Code:
/etc/vpnc/vpnc-script-post-connect-action
----------
#!/bin/sh

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do 
        mc-tool update $acct \
string:local-ip-address=$INTERNAL_IP4_ADDRESS
done
----------

/etc/vpnc/vpnc-script-post-disconnect-action
----------
#!/bin/sh

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
        mc-tool update $acct clear:local-ip-address
done
---------
(The backslash is only there, because the forum won't let me enter a line that is long enough. You can also delete the backslash and join it with the next line into one long line.)

Last edited by birefringence; 2010-12-03 at 19:43.