tinc bridge inner amazon ec2 local segments

=?ISO-2022-JP?B?GyRCQjkbKEIgGyRCfFsbKEI=?= xsunsmile at gmail.com
Tue Apr 12 16:29:39 CEST 2011


Hi tinc team,

 I am a new user of tinc, and wanna use it inner amazon ec2 for bridging
different network segments.
 First, I wanna try the most simple things, just build a p2p tunnel between
two ec2 instance with segment 10.0.101.0/24.

 I can see the tunnel is established by doing

 lsof -i:655
##############
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
tincd   2893 root    7u  IPv4  11489      0t0  TCP
ip-10-146-74-200.ap-northeast-1.compute.internal:34504->ip-10-146-159-245.ap-northeast-1.compute.internal:tinc
(ESTABLISHED)

and

 tail /var/log/syslog
##############
 Connection with vpn2 (10.146.159.245 port 655) activated (vpn1 server)

 but I can not ping each other with ip 10.0.101.10(vpn1 server),
10.0.101.12(vpn2 server)

 hope anybody can provide some advice.
 Thank you in advance.



 #################################
 my configurations are as below.

/etc/tinc/vpn1/tinc.conf  (vpn1 server)
AddressFamily = ipv4
Device = /dev/net/tun
Name = vpn1
tinc-up: ifconfig $INTERFACE 10.0.101.10 netmask 255.255.255.0

/etc/tinc/vpn1/tinc.conf  (vpn2 server)
AddressFamily = ipv4
Device = /dev/net/tun
Name = vpn2
ConnectTo = vpn1
tinc-up: ifconfig $INTERFACE 10.0.101.12 netmask 255.255.255.0

cat vpn1/hosts/vpn{1,2}
---- vpn1
Address = 10.146.74.200
Subnet = 10.0.101.0/24

-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----

------ vpn2
Address = 10.146.159.245
Subnet = 10.0.101.12/32

-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----
#################################


-- 
----
孫より
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20110412/5b626814/attachment.html>


More information about the tinc mailing list