VPN Setup

A place to ask all newbie questions and not get flamed, though you will get beaten down if you post a newbieish question outside of these walls.
Post Reply
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

VPN Setup

Post by MSB »

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 :)
orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi »

check what your log file says, should be a good place to start

Code: Select all

less /var/log/openvpn/openvpn.log
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Post by MSB »

I get the following:

/var/log/openvpn/openvpn.log: No such file or directory :(
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Post by MSB »

I re-emerged openvpn thinking that may resolve and now receive:

* Re-caching dependency info (mtimes differ)...
* Starting openvpn for myhomelan... [ !! ]

and still no log file!
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

tail -n 100 /var/log/syslog

^^ Run that right after trying to start openvpn.
The original Xbox adaptation of Gentoo
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Post by MSB »

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
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Post by MSB »

I found the following as solution to the error message in the log:

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)
I get :
* 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]
Are these errors I need to be concerned about? I'll check VPN connectivity and report back later tonight. Thanks :)
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Post by MSB »

Could not get it to work. I hate giving up but I kinda have to :(

I think I'll give DD-WRT a try or just stick with SSH
Post Reply