connecting vmware through tinc on host system (linux)

Till Wimmer g4-lisz at tonarchiv.ch
Thu Sep 20 19:05:45 CEST 2007


Hello,

i'm using a debian etch box (2.6.18-5-686) with tinc 1.0.5 for 
connecting to my office LAN.

On the same box there's a vmware virtual machine running (Windows 2k). 
Now i'd like to connect this virtual machine through the VPN, too.

All my attempts did fail...

The virtual machine runs with a "host only" network (vmnet1). On the 
linux side i tried to configure NAT for translating the vmnet1 addresses 
to the VPN addresses.

For some reason iptables does not translate the address at all :(

My configuration on the linux box:

  ath0: 192.168.178.22/24 = connection to ISP
  subvpn: 192.168.6.1/16 = VPN (tinc)
  vmnet: 192.168.29.1/24 = "host only" net from VMware

  route -n
  Destination     Gateway         Genmask         Flags Metric Ref    
Use Iface
  192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        
0 ath0
  192.168.29.0    0.0.0.0         255.255.255.0   U     0      0        
0 vmnet1
  192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        
0 subvpn
 0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 
ath0

My configuration on the vmware w2k:

  ether nic 192.168.29.128/24, gateway = 192.168.29.1

  i can ping 192.168.29.1
  i can ping 192.168.6.1
  i can not ping 192.168.1.1

tcpdump on 192.168.1.1:
18:22:14.666258 IP 192.168.29.128 > 192.168.1.1: ICMP echo request, id 
512, seq 34074, length 40
18:22:14.666319 IP 192.168.1.1 > 192.168.29.128: ICMP echo reply, id 
512, seq 34074, length 40
18:22:14.666350 IP 192.168.29.128 > 192.168.1.1: ICMP net 192.168.29.128 
unreachable - unknown, length 68

I set up the iptables NAT using fwbuilder. The rule was like this:
Original Source 192.168.29.128 Translated Source 192.168.6.1
Every thing else is unchanged.

No idea what's going on here...

Any help would be greatly appreciated!
Till


More information about the tinc mailing list