File: README

package info (click to toggle)
secnet 0.6.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,956 kB
  • sloc: ansic: 15,234; python: 1,057; perl: 966; sh: 596; tcl: 484; java: 231; asm: 114; yacc: 89; php: 64; makefile: 48; awk: 40
file content (50 lines) | stat: -rw-r--r-- 2,066 bytes parent folder | download | duplicates (2)
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
This directory contains some files useful for ad-hoc tests.
With these it is possible to run a test of secnet on a Linux host
even if that Linux host does not have another working network connection.

The keys here are (obviously) public.  They were generated like this:
 ssh-keygen -C inside@example.com -f test-example/inside.key -t rsa1 -b 1024
 ssh-keygen -C outside@example.com -f test-example/outside.key -t rsa1 -b 1024
 # edit sites to paste {inside,outside}.key.pub into pubkey lines
 base64 <inside.key >inside.key.b64
 base64 <outside.key >outside.key.b64

To run the test:
 Run the makefile:
  make -C test-example/
 In one window, as root
  ./secnet -dvnc test-example/inside.conf
 And in another
  ./secnet -dvnc test-example/outside.conf
 Then in a third
  ping -I secnet-test-i 172.18.232.2 
 
For running under valgrind memcheck, do something like this:
  valgrind --num-callers=40 --gen-suppressions=yes --db-attach=yes \
    --leak-check=full --suppressions=test-example/memcheck.suppressions \
    ./secnet -dvnc test-example/outside.conf
NB that --num-callers is needed as secnet's stack can be deep.

The config file outside-unshare.conf can be used on Linux in
conjunction with test-example/fake-userv and a built checkout of
userv-utils.git to run the "outside" copy of secnet in a new "network
namespace".



Everything in this directory is part of secnet.  See README (in the
directory above) for full list of copyright holders.

secnet is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

secnet is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
version 3 along with secnet; if not, see
https://www.gnu.org/licenses/gpl.html.