![]() |
Re: Openvpn Applet
Nope, still have to manually set the good ol' mc-account with the tun0 address ....
|
Re: Openvpn Applet
Are you trying to get built-in SIP client to talk through tun0?
I have done something like that with Code:
redirect-gateway def1 |
Re: Openvpn Applet
I tried the redirect gateway a while ago and could not get the built-in client to connect to my Asterisk server when the openvpn was up... The only way that I could get it to work is with the mc-account set sip0 string:local-ip-address= $tun0_ip....
|
Re: Openvpn Applet
I was using only google talk, so there could be a difference. If you didn't set nameserver, that could also block sip?
With up script you can anyway run anything when openvpn connection starts |
Re: Openvpn Applet
A while ago I reported bug 1860 in bugzilla... some of the nokia guys commented that the SIP stack is not currently aware of the tun0 interface going up/down, so the workaround that I found (here in the forums) was to manually assign the openvpn address to just the SIP account... Basically what I do is connect to the Openvpn server @ my office and log into my asterisk account with the N810 when out of the office... When I am @ the office i just log into the wlan and connect directly to Asterisk (192.168.x.x)... So I don't need to set the nameservers from the VPN connection...
|
Re: Openvpn Applet
Mikkov:
Now, do the if-up and if-down scripts execute when the tun0 goes up/down? I did some testing yesterday but did not get very far... A nice addition to your applet would be a pre/post-start and pre/post-stop scripts , since I am sure that many users need to do stuff before and after the vpn is up/down just related to the VPN tunnel :-) Anyways, your applet removed a bunch of steps on setting up my SIP connection to the office... |
Re: Openvpn Applet
Maybe there is slight misunderstanding.
Openvpn has up and down parameters which can run any command when tun device is opened and closed Quote:
|
Re: Openvpn Applet
:-) Yeap, seems like there is... let me get into those and will comment on the results!
|
Re: Openvpn Applet
Great! using the up and down parameters from openvpn and borrowing from jimhoy's scripts, I was able to get it working !
Here are Jimhoy's scripts... http://www.internettablettalk.com/fo...=rtcomm&page=3 I used this part for the up: #!/bin/sh sleep 5 VPN_INT="tun0" VPN_IP=`ifconfig $VPN_INT 2> /dev/null | sed -n 's/.*inet[adr: ]*\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/p'` if [ -n "$VPN_IP" ]; then mc-account set sip0 string:local-ip-address=$VPN_IP fi And a similar one for the down ! Excellent! |
Re: Openvpn Applet
Maybe a dumb question but where is the tun/tap device?
I imported a ovpn file that I use on my laptop. Both 'test' and connect appears to work. However, there does not appear to be a tun or tap 'device'. If I type 'ifconfig' there is only lo and wlan0. 'route' does not show anything new. I am running the latest diablo. I do not see a tun.ko module either. (unless is is built into the kernel) Any ideas? |
All times are GMT. The time now is 23:46. |
vBulletin® Version 3.8.8