Connection to server success but no internet
Posted: Thu Sep 17, 2015 8:29 pm
Hello,
I want to install OpenVPN on my Raspberry Pi 2.
Using the following tutorial http://readwrite.com/2014/04/10/raspber ... b-browsing with some slight modifications, I have managed to install an OpenVPN on a Raspbian. It is working well, I can connect to the server and surf the Internet through the VPN.
Now, I want to install it on a Archlinux (for PI2). I have followed the same tutorial and used the same configuration files as for Raspbian (presented bellow). I can connect to the server but I cannot surf the Internet.
Each time I try to open a web page the log file shows the message MULTI: bad source address from client [....], packet dropped.
I don't understand why the config is working with one distro and not with the other. I have read several post presenting the problem but so far have no clue how to solve the problem...
Here are the configurations:
I want to install OpenVPN on my Raspberry Pi 2.
Using the following tutorial http://readwrite.com/2014/04/10/raspber ... b-browsing with some slight modifications, I have managed to install an OpenVPN on a Raspbian. It is working well, I can connect to the server and surf the Internet through the VPN.
Now, I want to install it on a Archlinux (for PI2). I have followed the same tutorial and used the same configuration files as for Raspbian (presented bellow). I can connect to the server but I cannot surf the Internet.
Each time I try to open a web page the log file shows the message MULTI: bad source address from client [....], packet dropped.
I don't understand why the config is working with one distro and not with the other. I have read several post presenting the problem but so far have no clue how to solve the problem...
Here are the configurations:
- serve.conf:
Code: Select all
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/rasp_server.crt
key /etc/openvpn/easy-rsa/keys/rasp_server.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC # AES
comp-lzo
max-clients 10
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 5
- client.conf:
Code: Select all
client
dev tun
proto udp
remote XX.XX.XX.XX 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 1
mute 20
- and I have enable forwarding with:
Code: Select all
net.ipv4.ip_forward=1
- and allow the routing on firewall (this is different from the tutorial):
Code: Select all
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE