I followed instructions setting up OpenVPN from http://gentoo-wiki.com/HOWTO_OpenVPN_primer - Very basic setup and was unsuccessful.
I get:
root # /etc/init.d/openvpn start
* Starting openvpn for myhomelan... [ !! ]
I am not sure where to go from here. I am a novice and am not sure how to proceed from here. Why the "!!" and not "OK"?
Any takers? Thanks
VPN Setup
check what your log file says, should be a good place to start
Code: Select all
less /var/log/openvpn/openvpn.log
Yay! I got the log this time!
Code: Select all
Jan 30 00:21:58 xbox syslogd 1.4.1: restart.
Jan 30 08:15:11 xbox smbd[9116]: [2006/01/30 08:15:11, 0] lib/util_sock.c:write_socket_data(430)
Jan 30 08:15:12 xbox smbd[9116]: write_socket_data: write failure. Error = Connection reset by peer
Jan 30 08:15:12 xbox smbd[9116]: [2006/01/30 08:15:12, 0] lib/util_sock.c:write_socket(455)
Jan 30 08:15:12 xbox smbd[9116]: write_socket: Error writing 4 bytes to socket 5: ERRNO = Connection reset by peer
Jan 30 08:15:12 xbox smbd[9116]: [2006/01/30 08:15:12, 0] lib/util_sock.c:send_smb(647)
Jan 30 08:15:12 xbox smbd[9116]: Error writing 4 bytes to client. -1. (Connection reset by peer)
Jan 30 12:39:52 xbox openvpn[24490]: OpenVPN 2.0.5 i686-pc-linux-gnu [SSL] [LZO] built on Jan 30 2006
Jan 30 12:39:52 xbox openvpn[24490]: WARNING: you are using user/group/chroot without persist-key/persist-tun -- this may cause restarts to fail
Jan 30 12:39:52 xbox openvpn[24490]: LZO compression initialized
Jan 30 12:39:53 xbox openvpn[24490]: RESOLVE: Cannot resolve host address: //: [HOST_NOT_FOUND] The specified host is unknown.
Jan 30 12:39:53 xbox openvpn[24490]: OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.1.0
Jan 30 12:39:53 xbox openvpn[24490]: Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Jan 30 12:39:53 xbox openvpn[24490]: Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Jan 30 12:39:56 xbox openvpn[24490]: Cannot allocate TUN/TAP dev dynamically
Jan 30 12:39:56 xbox openvpn[24490]: Exiting
Jan 30 12:41:21 xbox openvpn[24817]: OpenVPN 2.0.5 i686-pc-linux-gnu [SSL] [LZO] built on Jan 30 2006
Jan 30 12:41:21 xbox openvpn[24817]: WARNING: you are using user/group/chroot without persist-key/persist-tun -- this may cause restarts to fail
Jan 30 12:41:21 xbox openvpn[24817]: LZO compression initialized
Jan 30 12:41:21 xbox openvpn[24817]: RESOLVE: Cannot resolve host address: //: [HOST_NOT_FOUND] The specified host is unknown.
Jan 30 12:41:21 xbox openvpn[24817]: OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.1.1
Jan 30 12:41:21 xbox openvpn[24817]: Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Jan 30 12:41:21 xbox openvpn[24817]: Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Jan 30 12:41:24 xbox openvpn[24817]: Cannot allocate TUN/TAP dev dynamically
Jan 30 12:41:24 xbox openvpn[24817]: Exiting
I found the following as solution to the error message in the log:
I get :
* Starting openvpn for myhomelan... [ ok ]
But the log still has errors as follows:
Are these errors I need to be concerned about? I'll check VPN connectivity and report back later tonight. Thanks
Code: Select all
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 750 /dev/net
chmod 660 /dev/net/tun
(maybe you want 755 and 666)
* Starting openvpn for myhomelan... [ ok ]
But the log still has errors as follows:
Code: Select all
Jan 30 13:34:50 xbox openvpn[16756]: LZO compression initialized
Jan 30 13:34:50 xbox openvpn[16756]: TUN/TAP device tun0 opened
Jan 30 13:34:50 xbox openvpn[16756]: /sbin/ifconfig tun0 172.16.1.1 pointopoint 172.16.1.20 mtu 1500
Jan 30 13:34:50 xbox kernel: Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Jan 30 13:34:50 xbox kernel: devfs_register(net/tun): could not append to parent, err: -17
Jan 30 13:34:50 xbox kernel: divert: not allocating divert_blk for non-ethernet device tun0
Jan 30 13:34:50 xbox openvpn[16763]: GID set to nobody
Jan 30 13:34:50 xbox openvpn[16763]: UID set to nobody
Jan 30 13:34:50 xbox openvpn[16763]: UDPv4 link local (bound): [undef]:5000
Jan 30 13:34:50 xbox openvpn[16763]: UDPv4 link remote: [undef]