You are not logged in.

#1 2013-01-17 15:00:43

dxxvi
Member
Registered: 2011-07-23
Posts: 95

[Solved] tun module was loaded but not in lsmod?

Hi Everybody,

I loaded the tun module with "sudo modprobe tun" without any error message but didn't see it anywhere in "sudo lsmod". What might be the problems? I'm using linux-ck and wondering if linux-ck does anything here.

The reason I want to load the tun module is that I saw this error:

[root@ArchCustom openvpn]# openvpn --config ibVPN-LU-Luxembourg-\(P2P\).ovpn 
Thu Jan 17 08:03:20 2013 OpenVPN 2.2.2 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Aug 18 2012
Enter Auth Username:dang_vu@yahoo.com
Enter Auth Password:
Thu Jan 17 08:03:30 2013 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Thu Jan 17 08:03:30 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Jan 17 08:03:30 2013 NOTE: --script-security method='system' is deprecated due to the fact that passed parameters will be subject to shell expansion
Thu Jan 17 08:03:30 2013 LZO compression initialized
Thu Jan 17 08:03:30 2013 Control Channel MTU parms [ L:1578 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Jan 17 08:03:30 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Thu Jan 17 08:03:30 2013 Data Channel MTU parms [ L:1578 D:1450 EF:46 EB:135 ET:32 EL:0 AF:3/1 ]
Thu Jan 17 08:03:30 2013 Fragmentation MTU parms [ L:1578 D:1300 EF:45 EB:135 ET:33 EL:0 AF:3/1 ]
Thu Jan 17 08:03:30 2013 Local Options hash (VER=V4): '9a22532e'
Thu Jan 17 08:03:30 2013 Expected Remote Options hash (VER=V4): 'e2a912d8'
Thu Jan 17 08:03:30 2013 UDPv4 link local (bound): [undef]:1194
Thu Jan 17 08:03:30 2013 UDPv4 link remote: 212.117.165.18:1194
Thu Jan 17 08:03:30 2013 TLS: Initial packet from 212.117.165.18:1194, sid=bfe5f406 752fd5e9
Thu Jan 17 08:03:31 2013 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/CN=Fort-Funston_CA/emailAddress=me@myhost.mydomain
Thu Jan 17 08:03:31 2013 VERIFY OK: nsCertType=SERVER
Thu Jan 17 08:03:31 2013 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/CN=server/emailAddress=me@myhost.mydomain
Thu Jan 17 08:03:31 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jan 17 08:03:31 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jan 17 08:03:31 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jan 17 08:03:31 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jan 17 08:03:31 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Jan 17 08:03:31 2013 [server] Peer Connection Initiated with 212.117.165.18:1194
Thu Jan 17 08:03:33 2013 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Jan 17 08:03:33 2013 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.10.10.0 255.255.255.0 vpn_gateway,show-net-up,route-gateway 10.10.10.1,ping 2,ping-restart 120,ifconfig 10.10.10.18 255.255.255.0'
Thu Jan 17 08:03:33 2013 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:5: show-net-up (2.2.2)
Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: timers and/or timeouts modified
Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: --ifconfig/up options modified
Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: route options modified
Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: route-related options modified
Thu Jan 17 08:03:33 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Jan 17 08:03:33 2013 ROUTE default_gateway=192.168.4.1
Thu Jan 17 08:03:33 2013 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Thu Jan 17 08:03:33 2013 /usr/sbin/ip link set dev  up mtu 1500
Usage: ip link add [link DEV] [ name ] NAME
                   [ txqueuelen PACKETS ]
                   [ address LLADDR ]
                   [ broadcast LLADDR ]
                   [ mtu MTU ]
                   [ numtxqueues QUEUE_COUNT ]
                   [ numrxqueues QUEUE_COUNT ]
                   type TYPE [ ARGS ]
       ip link delete DEV type TYPE [ ARGS ]

       ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]
	                  [ arp { on | off } ]
	                  [ dynamic { on | off } ]
	                  [ multicast { on | off } ]
	                  [ allmulticast { on | off } ]
	                  [ promisc { on | off } ]
	                  [ trailers { on | off } ]
	                  [ txqueuelen PACKETS ]
	                  [ name NEWNAME ]
	                  [ address LLADDR ]
	                  [ broadcast LLADDR ]
	                  [ mtu MTU ]
	                  [ netns PID ]
	                  [ netns NAME ]
			  [ alias NAME ]
	                  [ vf NUM [ mac LLADDR ]
				   [ vlan VLANID [ qos VLAN-QOS ] ]
				   [ rate TXRATE ] ] 
				   [ spoofchk { on | off} ] ] 
			  [ master DEVICE ]
			  [ nomaster ]
       ip link show [ DEVICE | group GROUP ]

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can | bridge }
Thu Jan 17 08:03:33 2013 Linux ip link set failed: external program exited with error status: 255
Thu Jan 17 08:03:33 2013 Exiting

And this is the content of ibVPN-LU-Luxembourg-\(P2P\).ovpn:

[root@ArchCustom openvpn]# cat ibVPN-LU-Luxembourg-\(P2P\).ovpn 
remote lu1.ibvpn.com 1194 udp
remote 212.117.165.18 1194 udp
client
dev tap
resolv-retry infinite
script-security 3 system
explicit-exit-notify 3
persist-key
persist-tun
mute-replay-warnings
ca ibvpn.com.crt
comp-lzo
verb 3
mute 20
ns-cert-type server
fragment 1300
route-delay 2
auth-user-pass
auth-nocache
reneg-sec 0
up "/etc/openvpn/change_resolv_conf.sh up"
down "/etc/openvpn/change_resolv_conf.sh down"

Regards.

Solved: didn't know what happened, installed linux-ck 3.7.3-1-ck, rebooted and everything was fine.

Last edited by dxxvi (2013-01-20 06:10:47)

Offline

#2 2013-01-17 15:35:35

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,222
Website

Re: [Solved] tun module was loaded but not in lsmod?

Isn't this the same issue:
https://bbs.archlinux.org/viewtopic.php … 1#p1217611

If so, please search the forums before creating new threads of duplicate issues.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2013-01-18 02:55:40

dxxvi
Member
Registered: 2011-07-23
Posts: 95

Re: [Solved] tun module was loaded but not in lsmod?

Trilby wrote:

Isn't this the same issue:
https://bbs.archlinux.org/viewtopic.php … 1#p1217611

If so, please search the forums before creating new threads of duplicate issues.

It looks like the same issue. Actually, I did a search for "tun" in the Networking forum (but not the newbie forum) and still couldn't find an answer.

My /usr/src/linux-3.7.2-2-ck/.config has CONFIG_TUN=m. Then is there any other reason I cannot load the tun module?

Thanks.

Offline

Board footer

Powered by FluxBB