ngiannis I can connect via vpn server’s files and server http It is unable to connect to other devices of the lan (such router, pc) and also cannot access internet openvpn.conf is: local 192.168.1.65 port 1194 #forward this port on your router proto udp ;dev tap dev tun tls-server tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0 # server # root certificates ca /etc/openvpn/easy-rsa/keys/ca.crt cert /etc/openvpn/easy-rsa/keys/server.crt key /etc/openvpn/easy-rsa/keys/server.key # This file should be kept secret dh /etc/openvpn/easy-rsa/keys/dh1024.pem push "dhcp-option DNS 192.168.1.254" server 10.8.0.0 255.255.255.0 push "route 10.8.0.0 255.255.255.0 192.168.1.254" # direct all traffic through VPN push "redirect-gateway def1" ifconfig-pool-persist ip.lst # allow clients to be able to "see" each other. client-to-client # allow multiple clients to connect duplicate-cn keepalive 10 120 # extra security cipher BF-CBC # Blowfish ;cipher AES-128-CBC # AES ;cipher DES-EDE3-CBC # Triple-DES # enable compression on the VPN link. comp-lzo max-clients 4 persist-key persist-tun verb 3 status openvpn-status.log I also enable ipv4 forward net.ipv4.ip_forward=1 iptables are not enable iptables v1.4.2: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Some information: Device: DNS 323 openvpn 2.1 Kernel version: 2.6.12.6-arm1 Debian 5
maikcat hi again, first you dont need this: push "route 10.8.0.0 255.255.255.0 192.168.1.254" on your client can you post the output of netstat -nr? what OS your client uses? also your lan pcs , do the have a route for 10.8.0.0/24 network? Michael.
ngiannis Hi Michael netstat –nr is: ubuntu@ubuntu:~$ netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 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 192.168.1.254 0.0.0.0 UG 0 0 0 eth0 Clients normally use windows xp &7, rarely ubuntu. For the above results I use cd boot of Ubuntu. I have not done any configuration about your suggested route. I suppose this is the problem. In witch of lan devices I have to setup route, nas or router? Giannis