6 local-address "172.18.232.9";
7 secnet-address "172.18.232.10";
8 remote-networks "172.18.232.0/28";
10 set netlink(outside) {
11 local-address "172.18.232.1";
12 secnet-address "172.18.232.2";
13 remote-networks "172.18.232.0/28";
16 set ports(inside) {16913 16910}
17 set ports(outside) 16900
30 set pipefp test/$which.netlink
32 file delete $pipefp.$tr
33 exec mkfifo -m600 $pipefp.$tr
34 set netlinkfh($which.$tr) [set fh [open $pipefp.$tr r+]]
35 fconfigure $fh -blocking 0 -buffering none -translation binary
37 fileevent $netlinkfh($which.r) readable [list netlink-readable $which]
38 set fakeuf test/$which.fake-userv
39 set fakeuh [open $fakeuf w 0755]
40 puts $fakeuh "#!/bin/sh
51 userv-path \"$fakeuf\";
54 buffer sysbuffer(2048);
55 interface \"secnet-test-[string range $which 0 0]\";
60 foreach port $ports($which) {
64 buffer sysbuffer(4096);
70 local-name \"test-example/$which/$which\";
71 local-key rsa-private(\"test-example/$which.key\");
73 append cfg $extra($which)
77 class "info","notice","warning","error","security","fatal";
84 random randomfile("/dev/urandom",no);
85 transform eax-serpent { }, serpent256-cbc { };
86 include test-example/sites.conf
87 sites map(site,vpn/test-example/all-sites);
92 proc spawn-secnet {which} {
93 upvar #0 pids($which) pid
94 set cf test/$which.conf
96 puts $ch [mkconf $which]
98 set argl [list -dvnc $cf]