Hi folks,
I want to establish the following scenario.
My smartphone should route all the traffic thru my VPN (10.8.0.0/24) and all the other clients should just reach one server (192.168.0.10) in my local LAN (192.168.0.0/24).
server.conf
port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.0.254"
push "dhcp-option DNS 8.8.8.8"
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
ipp.txt
client1,10.8.0.4
client2,10.8.0.8
client3,10.8.0.12
client4,10.8.0.16
client.conf
client
dev tun
proto udp
remote myhost.no-ip.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client4.crt
key client4.key
ns-cert-type server
comp-lzo
verb 3
script-security 3 system
route 192.168.0.0 255.255.255.0
up /var/mobile/Library/OpenVpn/update-resolv-conf
down /var/mobile/Library/OpenVpn/update-resolv-conf
And in my router (192.168.0.254) there is a static route to 10.8.0.0 255.255.255.0 network thru 192.168.0.11 (which is the OpenVPN Server)
My client is an iphone with GizmoVPN and its working quite well, I reach the machines in 192.168.0.0 network but I want to route all inet traffic thru the vpn which is not working.
All the traffic is routed to the 3G network... (checked with whatsmyip.com)
Any suggestions?