Hello all!
I'm new to setting up Open VPN servers and the like and I've recently encountered a problem that I can't seem to fix. I am trying to run this server in a virtual machine. I have disabled its firewall, and set the network adapter to Bridged Networking (Using VMware). The computer that the virtual machine is running on has its firewall disabled, and I've forwarded UTC 1193 on the router (an air port extreme). Router connects to internet using PPPoE.
Since this is the first time I've tried to set this up, I used an install script:
https://github.com/Nyr/openvpn-install
When I run the server with openvpn server.conf it gives this output:
root@kali:/etc/openvpn# openvpn server.conf
Thu Feb 25 23:49:23 2016 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jan 21 2016
Thu Feb 25 23:49:23 2016 library versions: OpenSSL 1.0.2e 3 Dec 2015, LZO 2.08
Thu Feb 25 23:49:23 2016 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Thu Feb 25 23:49:23 2016 Diffie-Hellman initialized with 2048 bit key
Thu Feb 25 23:49:23 2016 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 25 23:49:23 2016 TUN/TAP device tun0 opened
Thu Feb 25 23:49:23 2016 TUN/TAP TX queue length set to 100
Thu Feb 25 23:49:23 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Feb 25 23:49:23 2016 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb 25 23:49:23 2016 /sbin/ip addr add dev tun0 10.8.0.1/24 broadcast 10.8.0.255
Thu Feb 25 23:49:23 2016 UDPv4 link local (bound): [undef]
Thu Feb 25 23:49:23 2016 UDPv4 link remote: [undef]
Thu Feb 25 23:49:23 2016 MULTI: multi_init called, r=256 v=256
Thu Feb 25 23:49:23 2016 IFCONFIG POOL: base=10.8.0.2 size=252, ipv6=0
Thu Feb 25 23:49:23 2016 IFCONFIG POOL LIST
Thu Feb 25 23:49:23 2016 Initialization Sequence Completed
However, when I try and connect using a .ovpn file on a client (I tried on an iOS device and a mac), it can never connect and times out after 1 minute of trying.
Any help would be very much appreciated. Thanks!! 😃
Here are server.conf and client-common.txt
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
cel-verify crl.pem
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote 86.134.40.92 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
comp-lzo
verb 3