chiark / gitweb /
legal: Make a LICENSE symlink for Americans
[secnet.git] / example.conf
index c6bc0d8bbe82c794f80800da3d882af1166f6e49..c7e3eb38ecebc23526ba0d5c1e2cd08afab03d63 100644 (file)
@@ -67,8 +67,8 @@ system {
 # renegotiate-time      set up a new key if we see any traffic after this time
 
 # Defaults that may be overridden on a per-site basis:
-setup-retries 10;
-setup-timeout 2000;
+#setup-retries 10;
+#setup-timeout 2000;
 
 # Use the universal TUN/TAP driver to get packets to and from the kernel,
 # through a single interface.  secnet will act as a router; it requires
@@ -115,6 +115,11 @@ netlink tun {
 #mtu 1400;
 #buffer sysbuffer(2048);
 
+# This is small enough that it fits without fragmentation into
+# the foolish wifi on Greater Anglia's now-retired Class 379s.
+# This is good because they mishandle fragmentation.
+mtu-target 1260;
+
 
 # This defines the port that this instance of secnet will listen on, and
 # originate packets on. It does not _have_ to correspond to the advertised
@@ -147,6 +152,9 @@ random randomfile("/dev/urandom",no);
 local-name "your-site-name";
 local-key rsa-private("/etc/secnet/key");
 
+# Are we a mobile site?
+#local-mobile true;
+
 # On dodgy links you may want to specify a higher maximum sequence number skew
 transform eax-serpent { }, serpent256-cbc { };
 
@@ -163,7 +171,7 @@ include /etc/secnet/sites.conf
 sites map(site,all-sites);
 
 # Or with a particular VPN
-sites map(site,vpn/Vexample/all-sites);
+#sites map(site,vpn/Vexample/all-sites);
 
 # If you only want to communicate with a subset of the VPN sites, list
 # them explicitly: