Tunneling Between Instances
From T3
Preliminaries
% yum -y install byacc gcc flex lzo lzo-devel openssl-devel system-config-nfs zlib-devel</tt> % wget http://superb-east.dl.sourceforge.net/sourceforge/vtun/vtun-3.0.1.tar.gz % tar xzf vtun-3.0.1.tar.gz % cd vtun-3.0.1 % ./configure % make % make install
NFS Server
% vtund -n -f vtund.conf 2 [host]
vtund.conf:
options {
port 5000;
ifconfig /sbin/ifconfig;
}
default {
compress no;
encrypt no;
speed 0;
keepalive yes;
stat yes;
}
2 {
passwd DEADBEEF;
type tun;
proto tcp;
up {
ifconfig
"%% 192.168.1.1 pointopoint 192.168.1.2 mtu 1450";
};
down {
ifconfig "%% down";
};
}
/etc/exports:
/shared 192.168.1.0/255.255.255.0(sync,rw,no_root_squash)
NFS Client
% vtund -n -s -f vtund.conf
vtund.conf:
options {
port 5000;
ifconfig /sbin/ifconfig;
}
default {
compress no;
encrypt no;
speed 0;
keepalive yes;
stat yes;
}
2 {
passwd DEADBEEF;
type tun;
proto tcp;
up {
ifconfig
"%% 192.168.1.2 pointopoint 192.168.1.1 mtu 1450";
};
down {
ifconfig "%% down";
};
}
/etc/fstab:
192.168.1.1:/shared /shared nfs rw 0 0
