forked from VrayoSystems/vtrunkd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtrunkd_client.conf
72 lines (72 loc) · 1.33 KB
/
vtrunkd_client.conf
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
options {
port 5000;
timeout 2;
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
ip /usr/sbin/tc;
}
default {
tick_secs 3;
max_latency 2000;
max_idle_timeout 20;
ping_interval 2;
tun_txqueue_len 1000;
}
000000_1 {
passwd testpasswd;
device tun1;
timeout 2;
rt_mark 1; # remember to set up policy mark-based routing "ip rule" and "ip table" using IPROUTE2
persist keep;
encrypt no;
up {
ifconfig "%% 10.0.0.2 pointopoint 10.0.0.1 mtu 1350 up";
};
down {
ifconfig "%% down";
};
}
000000_2 {
passwd testpasswd;
device tun1;
timeout 2;
rt_mark 2;
persist keep;
encrypt no;
up {
ifconfig "%% 10.0.0.2 pointopoint 10.0.0.1 mtu 1350 up";
};
down {
ifconfig "%% down";
};
}
000000_3 {
passwd testpasswd;
device tun1;
timeout 2;
rt_mark 3;
persist keep;
encrypt no;
up {
ifconfig "%% 10.0.0.2 pointopoint 10.0.0.1 mtu 1350 up";
};
down {
ifconfig "%% down";
};
}
000000_4 {
passwd testpasswd;
device tun1;
timeout 2;
rt_mark 4;
persist keep;
encrypt no;
up {
ifconfig "%% 10.0.0.2 pointopoint 10.0.0.1 mtu 1350 up";
};
down {
ifconfig "%% down";
};
}