#10 vtun pakets only to lo interface

open
Bishop
None
5
2007-10-19
2007-10-19
Bishop
No

I have a problem with vtun client mode. I have vtun-3.0.0 and vtun-2.6
crosscompiled (uclibc) for mips on Linux whithout lzo.
Now i can start the vtun-server on the mips engine and can connect from
another computer with vtun. All ok.

Now i stop the server and start the client on the mips engine an connect
to another computer with
vtund -nf /etc/vtun.conf lion 172.16.0.2

Result:
vtund[1273]: Connecting to 172.16.0.2
vtund[1273]: Connect to 172.16.0.2 failed. Connection refused(146)

I see the packet only on the loopback interace:
<TCPDUMP>
00:38:48.642662 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto:
TCP (6), length: 40) 127.0.0.1.5000 > 127.0.0.1.15000: R, cksum 0xfb22
(correct), 0:0(0) ack 14923301 win 0
00:40:08.043824 IP (tos 0x0, ttl 64, id 1687, offset 0, flags [DF],
proto: TCP (6), length: 60) 127.0.0.1.15000 > 127.0.0.1.5000: S, cksum
0x18b4 (correct), 3524209692:3524209692(0) win 32767 <mss
16396,sackOK,timestamp 2108043 0,nop,wscale 2>

</TCPDUMP>

from time to time the source and target ip-address in the paket change
to 172.16.0.1. This is the client engine.
<TCPDUMP>
00:34:19.695251 IP (tos 0x0, ttl 64, id 3962, offset 0, flags [DF],
proto: TCP (6), length: 60) 172.16.0.1.34260 > 172.16.0.1.5000: S, cksum
0x2f74 (correct), 3155744437:3155744437(0) win 32767 <mss
16396,sackOK,timestamp 1759695 0,nop,wscale 2>
00:34:19.695279 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto:
TCP (6), length: 40) 172.16.0.1.5000 > 172.16.0.1.34260: R, cksum 0x2b80
(correct), 0:0(0) ack 3155744438 win 0
</TCPDUMP>

My configfile define udp as protocol but tcpdump show me a tcp connect.

My config:
<CONFIG>
~# cat /root/vtun.conf
options {
bindaddr { iface eth1; }; #only for vtun 3
port 5000;
timeout 120;

# Path to various programs
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
ip /sbin/ip;
}

default {
compress no;
encrypt no;
keepalive yes;
persist yes;
speed 0;
}

lion {
passwd asdf;
type ether;
#device tap1;
proto udp;
compress no;
encrypt no;
stat no;
keepalive yes;

srcaddr {
iface eth1;
};

up {
ifconfig "%% 172.16.0.10 netmask 255.255.255.252";
};

down {
ifconfig "%% 172.16.0.10 netmask 255.255.255.252 down ";
}
}
</CONFIG>

Discussion


Log in to post a comment.