hi
I just installed an openvpn server on an Ubuntu server. and I just connected fine to the server and start surfing with a windows client.
but the problem is I cant use it on linux (ubuntu in my case)
it connects fine to server and every thing is done without errors.
but when I come to start surfing, it gives me nothing!
So, because of the workin fine stuff on windows clients, my idea is its a routing problem on the linux client side where the openvpn server pushes the routing parameters. So here is my server.conf openvpn configuration file:
dev tun
proto tcp
# Notice: here we set the listening port to be 8090
port 8090
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret
dh /etc/openvpn/dh1024.pem
user nobody
group nogroup
[color=#BF4040]server 10.8.0.0 255.255.255.0[/color]
persist-key
persist-tun
status /etc/openvpn/openvpn-status.log
log-append /etc/openvpn/openvpn.log
#verb 3
client-to-client
# push "redirect-gateway def1"
[color=#BF4040]push "redirect-gateway def1 bypass-dhcp"[/color]
#Note that the following two IPs are public DNS IPs
#If you have problem in data transfer after VPN is connected, maybe your ISP has blocked them
#In that case you need to change them to other public DNS IPs
[color=#BF4000]push "dhcp-option DNS 10.8.0.1"[/color]
# push "dhcp-option DNS 208.67.222.220"
comp-lzo
besides, I use dnsmasq for dns redirectin and that's why I used
push "dhcp-option DNS 10.8.0.1"
I'm telling you again, it's ok on windows clients
and here's my ubutu networking stuffs that are set after the connection with openvpn server
(consider my server's ip is 178.178.178.178 and 11.11.0.3 is another lan network on my eth0 interface and does not make scence on the progress)
$ ip route sh
0.0.0.0/1 via 10.8.0.5 dev tun0
default via 192.168.1.1 dev eth1
10.8.0.0/24 via 10.8.0.5 dev tun0
10.8.0.5 dev tun0 proto kernel scope link src 10.8.0.6
11.11.0.0/24 dev eth0 proto kernel scope link src 11.11.0.3
128.0.0.0/1 via 10.8.0.5 dev tun0
169.254.0.0/16 dev eth0 scope link metric 1000
178.178.178.178 via 192.168.1.1 dev eth1
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.110 metric 2
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:e8:d5:12:11
inet addr:11.11.0.3 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::224:e8ff:fed5:1211/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:53646 errors:0 dropped:0 overruns:0 frame:0
TX packets:109727 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9468580 (9.4 MB) TX bytes:65288765 (65.2 MB)
Interrupt:47 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 0c:60:76:4d:a2:14
inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e60:76ff:fe4d:a214/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138160 errors:0 dropped:0 overruns:0 frame:5190749
TX packets:81671 errors:30 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76459431 (76.4 MB) TX bytes:15080213 (15.0 MB)
Interrupt:18
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1548 (1.5 KB) TX bytes:1548 (1.5 KB)
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.6 P-t-P:10.8.0.5 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:829 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:60708 (60.7 KB)
So if you got an idea, please let me know