padrevirtual / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

"redirect-gateway def1" doesn't seem to work #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Server config has "redirect-gateway def1"
2. Connect the client.
3. Try browse the web. Nothing happens.

What is the expected output? What do you see instead?
The expectation is that all traffic would be routed via the VPN. Instead no
browsing is possible.

What version of the product are you using? On what operating system?
Nexus 1, Cyanogen 5.0.6

Please provide any additional information below.

Server config file:

dev tun
server 10.8.0.0 255.255.255.0
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh1024.pem
verb 5
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "route SERVERSDEFAULTGWIP 255.255.255.255"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
client-config-dir ccd
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
comp-lzo
status /var/log/openvpn-status.log
log /var/log/openvpn.log
log-append /var/log/openvpn.log

Client config file:

remote myvpnserverdomain.com
dev tun
client
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
comp-lzo
ca ca.crt
cert client1.crt
key client1.key
mute-replay-warnings

Naturally, the server works fine with multiple other desktop clients, all
traffic being redirected via the vpn.

Original issue reported on code.google.com by bina...@gmail.com on 3 May 2010 at 7:30

GoogleCodeExporter commented 8 years ago
I removed the following lines from the server config file to get this to work:

ifconfig-pool-persist ipp.txt
push "route SERVERSDEFAULTGWIP 255.255.255.255"
client-config-dir ccd

This is no longer an issue.

Original comment by bina...@gmail.com on 4 May 2010 at 10:46

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 27 May 2010 at 12:55