Dear all,
I tried to set up a openvpn server on my raspberry pi using this tutorial.
http://readwrite.com/2014/04/10/raspberry-pi-vpn-tutorial-server-secure-web-browsing
To test if it did work I used the openvpn app on ios. I managed to get a connection (the app at least says connected) but there isn't any data transmission (ie a few kb) and the app is spitting out errors.
these are AddrMaskPair (addr pair_mask_parse_error) and ip_exception (error parsing route IP addres). The second also says 192.168.178.14/24/225.225.0
This is how I configured server.conf
GNU nano 2.2.6 Bestand: /etc/openvpn/server.conf
local 192.168.178.14 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
dev tun
proto udp #Some people prefer to use tcp. Don't change it if you don't know.
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/server.key # SWAP WITH YOUR KEY NAME
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here!
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OpenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.178.14 255.255.255.0" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
# Set primary domain name server address to the SOHO Router
# If your router does not do DNS, you can use Google DNS 8.8.8.8
push "dhcp-option DNS 192.168.178.14" # This should already match your router address and not need to be changed.
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
My ifconfig echoes:
pi@laurenspi ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:6e:02:9f
inet addr:192.168.178.14 Bcast:192.168.178.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29907 errors:0 dropped:0 overruns:0 frame:0
TX packets:34421 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3480366 (3.3 MiB) TX bytes:10784140 (10.2 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:35171 errors:0 dropped:0 overruns:0 frame:0
TX packets:35171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:393862962 (375.6 MiB) TX bytes:393862962 (375.6 MiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
my router is at 192.168.178.1 and the pi has a fixed local ip
After doing a search online I found a few users with kind off the same issue, but nothing did work.
So I'm at a blank, what is the solution?
p.s. What do I have to get besides 1194 a tunnel on port 110 as well? (to bypass nasty non net neutral hotel wifi, which usually just is port filtering)
Any help would be much appreciated!
Kind gerards
Laurens