[MBT] new entry in pkg vtun "devfsd and vtun"

bugs at pld.org.pl bugs at pld.org.pl
Wed Oct 9 12:19:25 CEST 2002


Date: 2002-10-09 12:19:24+02	Author:  (gglas) <georg at glas.eu.org> 
Title:         devfsd and vtun
Ticket ID:     #379
Ticket URL:    http://bugs.pld.org.pl/?bug=379
Package:       vtun-2:2.5-3
Distribution:  PLD-Ra.main PLD-1.0.devel.main
Category:      doesn't work as it should
Current state: opened
Text:

Here a strace of the broken vtund (client trying to connect to server):



writev(2, [{"vtund[12862]: Connecting to icew"..., 46}, {"\n", 1}], 2) = 47
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<30>Oct  9 12:11:19 vtund[12862]"..., 67, 0) = 67
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
fcntl(5, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
connect(5, {sin_family=AF_INET, sin_port=htons(5000), sin_addr=inet_addr("213.47.157.236")}}, 16) = -1 EINPROGRESS (Operation now in progress)
select(6, NULL, [5], NULL, {30, 0})     = 1 (out [5], left {29, 990000})
getsockopt(5, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
fcntl(5, F_SETFL, O_RDWR)               = 0
select(6, [5], NULL, NULL, {60, 0})     = 1 (in [5], left {59, 980000})
read(5, "VTUN server ver 2.5 10/07/2002\n{TEXT}"..., 50) = 50
write(5, "HOST: robert_georg\n{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}"..., 50) = 50
select(6, [5], NULL, NULL, {60, 0})     = 1 (in [5], left {59, 980000})
read(5, "OK CHAL: <xxxxxxxxxxxxxxxxxxxxxxx"..., 50) = 50
time([1034158279])                      = 1034158279
getpid()                                = 12862
writev(2, [{"vtund[12862]: Use SSL-aware chal"..., 46}, {"\n", 1}], 2) = 47
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<30>Oct  9 12:11:19 vtund[12862]"..., 67, 0) = 67
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
write(5, "CHAL: <xxxxxxxxxxxxxxxxxxxxxxxx"..., 50) = 50
select(6, [5], NULL, NULL, {60, 0})     = 1 (in [5], left {59, 990000})
read(5, "OK FLAGS: <UuS100L9K>\n{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}"..., 50) = 50
time([1034158279])                      = 1034158279
getpid()                                = 12862
writev(2, [{"vtund[12862]: Session robert_geo"..., 61}, {"\n", 1}], 2) = 62
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<30>Oct  9 12:11:19 vtund[12862]"..., 82, 0) = 82
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/dev/tun0", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun1", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun2", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun3", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun4", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun5", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun6", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun7", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun8", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun9", O_RDWR)               = -1 ENOENT (No such file or directory)
open("/dev/tun10", O_RDWR)              = -1 ENOENT (No such file or directory)
open("/dev/tun11", O_RDWR)              = -1 ENOENT (No such file or directory)
open("/dev/tun12", O_RDWR)              = -1 ENOENT (No such file or directory)
open("/dev/tun13", O_RDWR)              = -1 ENOENT (No such file or directory)


-----------------------------------------------------------
Here a strace of the working vtund (ftp://fr2.rpmfind.net/linux/sourceforge/vtun/vtun-2.5-1.rh72.i386.rpm) (client trying to connect to server):

writev(2, [{"vtund[13192]: VTun client ver 2."..., 52}, {"\n", 1}], 2) = 53
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(4, "<30>Oct  9 12:14:06 vtund[13192]"..., 73, 0) = 73
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGCHLD, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x804c940, [], SA_NOCLDWAIT|0x4000000}, NULL, 8) = 0
gettimeofday({1034158446, 415879}, NULL) = 0

[skipped the reslover chunk]

connect(5, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.
0.254")}}, 28) = 0
send(5, "jb{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}icewolfhomeipnet{TEXT}"..., 36, 0) = 36
gettimeofday({1034158449, 650114}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(5, "jb10{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}icewolfhomeipnet{TEXT}"..., 1024, 0, {s
in_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.254")}}, [1
6]) = 52
close(5)                                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(5, {sin_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}},
 16) = 0
brk(0x8062000)                          = 0x8062000
time([1034158449])                      = 1034158449
getpid()                                = 13192
writev(2, [{"vtund[13192]: Connecting to icew"..., 46}, {"\n", 1}], 2) = 47
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<30>Oct  9 12:14:09 vtund[13192]"..., 67, 0) = 67
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
fcntl(5, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(5, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
connect(5, {sin_family=AF_INET, sin_port=htons(5000), sin_addr=inet_addr("213.47
.157.236")}}, 16) = -1 EINPROGRESS (Operation now in progress)
select(6, NULL, [5], NULL, {30, 0})     = 1 (out [5], left {29, 990000})
getsockopt(5, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
fcntl(5, F_SETFL, O_RDWR)               = 0
select(6, [5], NULL, NULL, {60, 0})     = 1 (in [5], left {59, 990000})
read(5, "VTUN server ver 2.5 10/07/2002\n{TEXT}"..., 50) = 50
write(5, "HOST: robert_georg\n{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}"..., 50) = 50
select(6, [5], NULL, NULL, {60, 0})     = 1 (in [5], left {59, 980000})
read(5, "OK CHAL: <xxxxxxxxxxxxxxxxxxxx"..., 50) = 50
write(5, "CHAL: <xxxxxxxxxxxxxxxxxx"..., 50) = 50
select(6, [5], NULL, NULL, {60, 0})     = 1 (in [5], left {59, 990000})
read(5, "OK FLAGS: <UuS100L9K>\n{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}{TEXT}"..., 50) = 50
time([1034158453])                      = 1034158453
getpid()                                = 13192
writev(2, [{"vtund[13192]: Session robert_geo"..., 61}, {"\n", 1}], 2) = 62
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<30>Oct  9 12:14:13 vtund[13192]"..., 82, 0) = 82
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/dev/net/tun", O_RDWR)            = 6
ioctl(6, TUNSETIFF, 0xbffff754)         = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
getsockname(5, {sin_family=AF_INET, sin_port=htons(33819), sin_addr=inet_addr("2
12.17.106.212")}}, [16]) = 0
bind(7, {sin_family=AF_INET, sin_port=htons(33819), sin_addr=inet_addr("212.17.1
06.212")}}, 16) = 0
getsockname(7, {sin_family=AF_INET, sin_port=htons(33819), sin_addr=inet_addr("2
12.17.106.212")}}, [16]) = 0
write(5, "4", 2)                  = 2
select(6, [5], NULL, NULL, {30, 0})     = 1 (in [5], left {29, 990000})
read(5, "0", 2)                   = 2
getpeername(5, {sin_family=AF_INET, sin_port=htons(5000), sin_addr=inet_addr("21
3.47.157.236")}}, [16]) = 0
connect(7, {sin_family=AF_INET, sin_port=htons(5000), sin_addr=inet_addr("213.47
.157.236")}}, 16) = 0
close(5)                                = 0
time([1034158453])                      = 1034158453
getpid()                                = 13192
writev(2, [{"vtund[13192]: UDP connection ini"..., 40}, {"\n", 1}], 2) = 41
rt_sigaction(SIGPIPE, {0x2ed88c, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(4, "<30>Oct  9 12:14:13 vtund[13192]"..., 61, 0) = 61
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
fork()                                  = 13194




More information about the pld-bugs mailing list