conupefox / tb-tun

Automatically exported from code.google.com/p/tb-tun
0 stars 0 forks source link

Operation Not Permitted #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Built tb_userspace (gcc tb_userspace.c -l pthread -o tb_userspace)
2. Try and configure a tunnel (setsid ./tb_userspace tb 5.6.7.8 1.2.3.4 sit > 
/dev/null)

What version of the product are you using? On what operating system?
tb-tun_r18.tar.gz 
2.6.26-2-openvz-amd64

Please provide any additional information below.
Worked fine, rebooted my container and it's no longer working :(

Original issue reported on code.google.com by dave%dav...@gtempaccount.com on 22 Oct 2010 at 3:20

GoogleCodeExporter commented 8 years ago
[ root@vps19 ~ ]# /root/tb_userspace tb 216.66.22.2 x.x.x.x sit
tun_create: Operation not permitted

Original comment by dave%dav...@gtempaccount.com on 22 Oct 2010 at 3:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
@Davehope.co.uk ,
Have you checked your tun device? try 

:~# cat /dev/net/tun

and it should be

cat: /dev/net/tun: File descriptor in bad state

Or you can run other programs like

socat - tun:192.168.1.1/32,up

to test your tun device. If the same error occurs, the problem lies on tun/tap 
support of your OpenVZ platform, not tb_userspace.

Original comment by lostrive...@gmail.com on 23 Oct 2010 at 1:47

GoogleCodeExporter commented 8 years ago
Hi,

I believe this was because tb_userspace couldn't allocate enough memory. free 
-m showed 11mb, when increasing the amount of memory assigned to the container 
I've been unable to reproduce this problem again.

Thanks

Original comment by dave%dav...@gtempaccount.com on 28 Oct 2010 at 9:28

GoogleCodeExporter commented 8 years ago

Original comment by lostrive...@gmail.com on 28 Oct 2010 at 1:36