Hi,
I have a VPS (FC4 on Xen, in a datacenter), I have installed OpenVPN with tun/tap and it works all fine, I can connect to the server from my Windows XP machine and the server give my client (Win XP) the correct IP, however I cannot route all my internet ie web browsing, P2P etc down the VPN.
So im not sure if its the server config file or the client config file or the servers route table? So I thought I would post all my .conf and see what you think...
Server config file (server-tcp-1194.conf) I have a UDP conf file too, its just the same with UDP instaed of TCP.
Code:
local my.domain.com // this is obviously my actual domain
port 1194
proto tcp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
server 192.168.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status-notebook-tcp-1194.log
verb 3
Here is my client config file (client1-tcp-1194.ovpn)
Code:
client
dev tun
proto tcp
remote my.domain.com 1194
float
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client2.crt
key client2.key
ns-cert-type server
comp-lzo
verb 3
Here is my netstat
Code:
[root@ns1 ~]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.4.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
192.168.2.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.4.0 192.168.4.2 255.255.255.0 UG 0 0 0 tun1
192.168.2.0 192.168.2.2 255.255.255.0 UG 0 0 0 tun0
my.public.ip 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 194.150.121.254 0.0.0.0 UG 0 0 0 eth0
If you require more info please post, im really at a dead end here.
Many Thanks