![]() |
2016-08-10
, 20:19
|
Posts: 175 |
Thanked: 210 times |
Joined on Mar 2013
|
#2
|
![]() |
2016-08-11
, 07:13
|
Posts: 638 |
Thanked: 1,692 times |
Joined on Aug 2009
|
#3
|
The Following 5 Users Say Thank You to xes For This Useful Post: | ||
![]() |
2016-08-11
, 11:29
|
|
Posts: 584 |
Thanked: 700 times |
Joined on Jan 2010
|
#4
|
The Following User Says Thank You to fw190 For This Useful Post: | ||
![]() |
2016-08-11
, 17:54
|
Posts: 175 |
Thanked: 210 times |
Joined on Mar 2013
|
#5
|
![]() |
2016-08-11
, 18:53
|
Posts: 260 |
Thanked: 1,021 times |
Joined on May 2010
@ Near Munich
|
#6
|
![]() |
2016-08-11
, 19:05
|
|
Posts: 584 |
Thanked: 700 times |
Joined on Jan 2010
|
#7
|
Nokia-N900:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.148.195.203 * 255.255.255.255 UH 0 0 0 gprs0 10.137.1.5 * 255.255.255.255 UH 0 0 0 tun0 46.165.210.1 10.148.195.203 255.255.255.255 UGH 0 0 0 gprs0 10.137.1.1 10.137.1.5 255.255.255.255 UGH 0 0 0 tun0 default 10.137.1.5 128.0.0.0 UG 0 0 0 tun0 128.0.0.0 10.137.1.5 128.0.0.0 UG 0 0 0 tun0 default 10.148.195.203 0.0.0.0 UG 0 0 0 gprs0 default *
nameserver 127.0.0.1
#!/bin/bash # # Parses DHCP options from openvpn to update resolv.conf # To use set as 'up' and 'down' script in your openvpn *.conf: # up /etc/openvpn/maemo-update-resolvconf # plugin /opt/openvpn/lib/openvpn/openvpn-down-root.so "script_type=down /etc/openvpn/maemo-update-resolvconf" # Customized version for Maemo (lacks resolvconf) # 02.08.2009 andrea@borgia.bo.it # # Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk> # and Chris Hanson # Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. # 05/2006 chlauber@bnc.ch # # Example envs set from openvpn: # foreign_option_1='dhcp-option DNS 193.43.27.132' # foreign_option_2='dhcp-option DNS 193.43.27.133' # foreign_option_3='dhcp-option DOMAIN be.bnc.ch' # case $script_type in up) for optionname in ${!foreign_option_*} ; do option="${!optionname}" echo $option part1=$(echo "$option" | cut -d " " -f 1) if [ "$part1" == "dhcp-option" ] ; then part2=$(echo "$option" | cut -d " " -f 2) part3=$(echo "$option" | cut -d " " -f 3) if [ "$part2" == "DNS" ] ; then IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3" fi if [ "$part2" == "DOMAIN" ] ; then IF_DNS_SEARCH="$part3" fi fi done R="" if [ "$IF_DNS_SEARCH" ] ; then R="${R}search $IF_DNS_SEARCH\n" fi for NS in $IF_DNS_NAMESERVERS ; do R="${R}nameserver $NS\n" done if [ ! -f /etc/resolv.conf.prevpn ] ; then mv /etc/resolv.conf /etc/resolv.conf.prevpn fi echo -e "$R" > /etc/resolv.conf ;; down) if [ -f /etc/resolv.conf.prevpn ] ; then mv /etc/resolv.conf.prevpn /etc/resolv.conf fi ;; esac
#!/bin/bash # # Parses DHCP options from openvpn to update resolv.conf # To use set as 'up' and 'down' script in your openvpn *.conf: # up /etc/openvpn/update-resolv-conf # down /etc/openvpn/update-resolv-conf # # Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk> # and Chris Hanson # Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. # # 05/2006 chlauber@bnc.ch # # Example envs set from openvpn: # foreign_option_1='dhcp-option DNS 193.43.27.132' # foreign_option_2='dhcp-option DNS 193.43.27.133' # foreign_option_3='dhcp-option DOMAIN be.bnc.ch' [ -x /sbin/resolvconf ] || exit 0 case $script_type in up) for optionname in ${!foreign_option_*} ; do option="${!optionname}" echo $option part1=$(echo "$option" | cut -d " " -f 1) if [ "$part1" == "dhcp-option" ] ; then part2=$(echo "$option" | cut -d " " -f 2) part3=$(echo "$option" | cut -d " " -f 3) if [ "$part2" == "DNS" ] ; then IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3" fi if [ "$part2" == "DOMAIN" ] ; then IF_DNS_SEARCH="$IF_DNS_SEARCH $part3" fi fi done R="" for SS in $IF_DNS_SEARCH ; do R="${R}search $SS " done for NS in $IF_DNS_NAMESERVERS ; do R="${R}nameserver $NS " done echo -n "$R" | /sbin/resolvconf -a "${dev}.inet" ;; down) /sbin/resolvconf -d "${dev}.inet" ;; esac
The Following User Says Thank You to fw190 For This Useful Post: | ||
![]() |
2016-08-11
, 19:11
|
|
Posts: 584 |
Thanked: 700 times |
Joined on Jan 2010
|
#8
|
client dev tun proto udp remote germany.privateinternetaccess.com 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt tls-client remote-cert-tls server auth-user-pass pass.txt comp-lzo verb 1 reneg-sec 0 crl-verify crl.pem
The Following User Says Thank You to fw190 For This Useful Post: | ||
![]() |
2016-08-11
, 22:06
|
Posts: 638 |
Thanked: 1,692 times |
Joined on Aug 2009
|
#9
|
Without changing anything openvpn applet gives me:
After adding mssfix 14000 to config file still no luck.
The Following User Says Thank You to xes For This Useful Post: | ||
Has anyone managed to set up VPN over cellular?
I have PIA working with openvpn plugin over WiFi but when I try to connect over 2G or 3G websites don't load and other apps also get no connection.
Any hints?
per ardua ad astra