呃,好吧,正题。我搞了个OpenVPN,但是运行的时候就提示这个错误。cannot allocate TUN/TAP dev dynamically
代码: 全选
Mon May 3 21:13:05 2010 ROUTE default_gateway=192.168.0.1
Mon May 3 21:13:05 2010 Note: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Mon May 3 21:13:05 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Mon May 3 21:13:05 2010 Cannot allocate TUN/TAP dev dynamically
Mon May 3 21:13:05 2010 Exiting
另一个是说编辑/etc/rc.conf,在MODULES行加tun
好吧,开始是没有rc.conf,原来在Ubuntu 10.04里这个文件根本不在那里,locate一下,在/etc/init/rc.conf。打开根本没有MODULES行
代码: 全选
description "System V runlevel compatibility"
author "Scott James Remnant <scott@netsplit.com>"
start on runlevel [0123456]
stop on runlevel [!$RUNLEVEL]
export RUNLEVEL
export PREVLEVEL
console output
env INIT_VERBOSE
task
exec /etc/init.d/rc $RUNLEVEL
顺便问一下,/etc/init和/etc/init.d是个什么关系?