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 /src | |
parent | cleaner naming for updateRoutingTreeUnlocked now (diff) |
some documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/anytun.cpp | 11 | ||||
-rw-r--r-- | src/man/anytun.8.txt | 6 |
2 files changed, 16 insertions, 1 deletions
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> ~~~~~~~~~~~~~~~~~~~~~~~~~ |