Hello,
Apologies if this is a FAQ.
My first experiment with vtun isn't working and I'm not sure why. I've set up
two linux virtual machines for mucking about with. They're on the same subnet
and can see each other. I'm trying to set up a tunnel between the two, just to
see how it works.
The tunnel goes up, but when I ping the other end of it I see the ICMP request,
but there's no repsonse. Syslog shows the connection gets established, and
ifconfig shows what I should expect for the tun0 device. If I start 'ping' on
one side of the tunnel, and listen with tcpdump on the other, I see requests
coming in, but no responses going out. It doesn't look like the responses are
mistakenly going out over eth0 either... ?
I get the same results when I try the experiment in either direction. (Client
pings server, server pings client)
Any suggestions?
My configs say:
On the server:
options {
port 5001;
syslog daemon;
}
default {
type tun;
proto udp;
compress no;
speed 0;
keepalive yes;
}
v1_v2 {
passwd foo;
up {
ifconfig "%% 10.50.50.1 pointopoint 10.50.50.2 mtu 1450"
}
The client is the same as above, but says:
v1_v2 {
passwd foo;
up {
ifconfig "%% 10.50.50.2 pointopoint 10.50.50.1 mtu 1450"
}
ifconfig says (on the client):
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
-00
inet addr:10.50.0.2 P-t-P:10.50.50.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:98 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:8064 (7.8 KB) TX bytes:1092 (1.0 KB)
The server looks the same, but with the IP addresses switched.
If I start:
tcpdump -i any "net 10.50.50.0/24"
on the client (10.50.50.2) and ping it from 10.50.50.1, I see the following:
13:04:34.743192 IP 10.50.50.1 > 10.50.50.2: ICMP echo request, id 52240, seq 1,
length 64
13:04:35.743593 IP 10.50.50.1 > 10.50.50.2: ICMP echo request, id 52240, seq 2,
length 64
13:04:36.743390 IP 10.50.50.1 > 10.50.50.2: ICMP echo request, id 52240, seq 3,
length 64
13:04:37.743557 IP 10.50.50.1 > 10.50.50.2: ICMP echo request, id 52240, seq 4,
length 64
Thanks,
Simon
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vtun-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vtun-users