summarylogtreecommitdiffstats
path: root/vtund-ipv6-client.conf
blob: df2ca2b90add202591147905d7a57edfa2d8a806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Functionality verified by Mats Erik Andersson
# for tunnels wrapping in IPv4 and in IPv6.
#
options {
	port 5000;

	syslog user;

	ifconfig  /sbin/ifconfig;
	ip        /sbin/ip;
	route     /sbin/route;
	firewall  /sbin/iptables;
}

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

big-buck-bunny {
	passwd blender;
	type tun;
	proto udp;
	compress yes;
	encrypt yes;

	up {
		ip "link set %d up multicast off mtu 1450";
		ip "-4 addr add 10.3.0.2 peer 10.3.0.1 dev %d";
	};

	down {
		ip "link set %d down";
	};
}

big-buck-bunny-ipv6 {
	passwd blender;
	type tun;
	proto udp;
	compress yes;
	encrypt yes;

	up {
		ip "-6 link set %d up multicast off mtu 1450";
		ip "-6 addr add fc00:170:0:6a::2/112 dev %d";
	};

	down {
		ip "-6 link set %d down";
	};
}