diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-12-23 15:27:33 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-12-23 15:27:33 +0000 |
commit | 78d5d6ac9bfc8a7bee7e5c7ddd2e5ef9489d0557 (patch) | |
tree | 840f57e66951c6c2b06a2f9da1b77fe4fb097601 | |
parent | cleaner naming for updateRoutingTreeUnlocked now (diff) |
some documentation
-rw-r--r-- | ChangeLog | 14 | ||||
-rw-r--r-- | etc/anytun/client1/config | 4 | ||||
-rw-r--r-- | etc/anytun/client2/config | 4 | ||||
-rw-r--r-- | etc/anytun/client3/config | 4 | ||||
-rw-r--r-- | src/anytun.cpp | 11 | ||||
-rw-r--r-- | src/man/anytun.8.txt | 6 |
6 files changed, 42 insertions, 1 deletions
@@ -1,3 +1,17 @@ +2008.12.23 -- Version 0.3_rc1_svn655 +* IMPORTANT: no automatic default route + if you are using anytun in single connection mode + (without configuration server) + make sure to add + route 0.0.0.0/0 for ipv4 and + route ::/0 for ipv6 to your config +* changed used libarys (to boost) +* full ipv6 support + - ipv6 multible connection routing + - syncronisation over ipv6 + - 4in6,6in6 tunnels +* code cleanup for easier porting + 2008.6.20 -- Version 0.2.1svn556 * finished own tun/tap devices and removed openvpn source code diff --git a/etc/anytun/client1/config b/etc/anytun/client1/config index ae08ac8..ff36b38 100644 --- a/etc/anytun/client1/config +++ b/etc/anytun/client1/config @@ -31,6 +31,10 @@ auth-algo sha1 #control-host 127.0.0.1:4445 ### Connection Parameters (for clients without config server) +## Allow all ipv4 and ipv6 traffic +## this does not set operating system routes +route 0.0.0.0/0 +route ::/0 ## remote host remote-host example.com ## remote port diff --git a/etc/anytun/client2/config b/etc/anytun/client2/config index 6c2a1b5..b1351f0 100644 --- a/etc/anytun/client2/config +++ b/etc/anytun/client2/config @@ -31,6 +31,10 @@ auth-algo sha1 #control-host 127.0.0.1:4445 ### Connection Parameters (for clients without config server) +## Allow all ipv4 and ipv6 traffic +## this does not set operating system routes +route 0.0.0.0/0 +route ::/0 ## remote host remote-host example.com ## remote port diff --git a/etc/anytun/client3/config b/etc/anytun/client3/config index 3d8ab04..b19b109 100644 --- a/etc/anytun/client3/config +++ b/etc/anytun/client3/config @@ -31,6 +31,10 @@ auth-algo sha1 #control-host 127.0.0.1:4445 ### Connection Parameters (for clients without config server) +## Allow all ipv4 and ipv6 traffic +## this does not set operating system routes +route 0.0.0.0/0 +route ::/0 ## remote host remote-host example.com ## remote port diff --git a/src/anytun.cpp b/src/anytun.cpp index d8f2159..50f2437 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -425,7 +425,16 @@ int main(int argc, char* argv[]) NetworkPrefix prefix( addr, rit->prefix_length ); gRoutingTable.addRoute( prefix, gOpt.getMux() ); } - + if (connect_to.begin() == connect_to.end() && routes.begin() == routes.end() && gOpt.getDevType()=="tun") + { + std::cout << "No Routes and no syncronisation hosts have be specified"<< std::endl; + std::cout << "anytun won't be able to send any data"<< std::endl; + std::cout << "most likely you want to add --route 0.0.0.0/0 --route ::/0"<< std::endl; + std::cout << "to your command line to allow both ipv4 and ipv6 traffic"<< std::endl; + std::cout << "(this does not set operation system routes, use the post-up script"<< std::endl; + std::cout << " to set them)"<< std::endl; + return -1; + } #ifndef NODAEMON if(gOpt.getChroot()) chrootAndDrop(gOpt.getChrootDir(), gOpt.getUsername()); diff --git a/src/man/anytun.8.txt b/src/man/anytun.8.txt index 6a6dd0f..76c274d 100644 --- a/src/man/anytun.8.txt +++ b/src/man/anytun.8.txt @@ -30,6 +30,7 @@ SYNOPSIS [ *-x|--post-up-script* <script> ] [ *-w|--window-size* <window size> ] [ *-m|--mux* <mux-id> ] +[ *-R|--route* <net>/<prefix length> ] [ *-c|--cipher* <cipher type> ] [ *-K|--key* <master key> ] [ *-A|--salt* <master salt> ] @@ -245,6 +246,11 @@ window size of 0 is used. the multiplex id to use. default: 0 +-R|--route <net>/<prefix length> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +add a route to connection. This can be invoked several times. + -c|--cipher <cipher type> ~~~~~~~~~~~~~~~~~~~~~~~~~ |