gdr / tuntox (public) (License: GPLv3) (since 2017-01-24) (hash sha1)
Tunnel TCP connections over the Tox protocol
List of commits:
Subject Hash Author Date (UTC)
Nicer help message d77375c08113707235fe3949a7020bb87a7fdc41 Francesco Gazzetta 2017-01-24 18:16:03
CID 122502 (#1 of 1): 'Constant' variable guards dead code 5d23e782ff74a287202dec0b61132258d42c3221 GDR! 2017-01-24 16:23:16
CID 122516 (#1 of 1): Resource leak (RESOURCE_LEAK)10. leaked_storage: cd1aa90632cf8853cbeb3610d254afc3d7d95b6b GDR! 2017-01-24 16:18:17
Update .travis.yml e5483bc4662dc95665aeef5bc84adf95a81f7f3c GDR! 2017-01-24 15:23:06
Update .travis.yml 5c2e4263fae3b78be4c4424fa846cd06915a0b8c GDR! 2017-01-24 15:15:34
Update .travis.yml 370e83c0fabcad3899944398cf0b06c3f91e4d3c GDR! 2017-01-24 15:01:45
Updated BUILD.md to use c-toxcore fad23001af27f1cd380f7d05270ddcc04244f507 GDR! 2017-01-07 18:45:28
Cleaned up .PHONY in Makefile 44cfc1bd5e81a8ba5c7206453bcc6fed02486caf GDR! 2016-12-12 12:32:33
gitversion.h dep missing 361edc084a1d53bce46563c9a3135034acb917bf GDR! 2016-12-12 12:21:27
Travis 6d74a7a2da9690ca56b3543a240d53b6b3915bf3 GDR! 2016-12-07 14:50:01
Fixed some warnings b3b0e345a94830a186168a4ecd53e0259a00b0c0 GDR! 2016-12-07 14:26:38
Travis 5667e567a59041b673861804fc6eba3cf99fcb05 GDR! 2016-12-07 14:11:16
Travis 16bea5fe486f6d1bf47de820642e4568c1b1dc20 GDR! 2016-12-07 14:05:50
Made tuntox build with TokTok/c-toxcore e093c65637385fe3b3db6ce5a830e5c9c2a00dd4 GDR! 2016-12-07 13:56:26
Obtain shared secret from TUNTOX_SHARED_SECRET env variable ae6ff817c202fa6e41b6ec705152fbfee6c92cd1 GDR! 2016-12-07 12:55:06
Typo in -f help 3af296c20050408ec4c668bf052fe77441ebc538 GDR! 2016-10-12 11:46:55
corrected typo 315ee76599c2ebf92c9fed9b13ffad5ef50b849b Pietro Bonfa 2016-10-10 19:54:39
better comments and if logic f5da6d8db758db9367807b45fdf4fb1a5d09e815 Pietro Bonfa 2016-10-10 19:44:50
removed enforce option bb08cc0ae4789084f88586460c9c617fe6cbb328 Pietro Bonfa 2016-10-09 16:31:39
changed arguments for rules optoins fd085c2862153d16443451d96fc56d2e67873e9e Pietro Bonfa 2016-10-08 12:10:47
Commit d77375c08113707235fe3949a7020bb87a7fdc41 - Nicer help message
Indented, made the lines 80 chars long and divided by category.

Solves #22
Author: Francesco Gazzetta
Author date (UTC): 2017-01-24 18:16
Committer name: GitHub
Committer date (UTC): 2017-01-24 18:16
Parent(s): 5b1cad03a674ed6ac41e5e0081a087b99b00aefd
Signer:
Signing key:
Signing status: N
Tree: 3baa4a290357b1f93599981f3c73bfd137f19dae
File Lines added Lines deleted
main.c 30 16
File main.c changed (mode: 100644) (index bbbebe5..a13fc46)
... ... void do_daemonize()
1156 1156
1157 1157 void help() void help()
1158 1158 { {
1159 fprintf(stderr, "tuntox - Forward ports over the Tox protocol\n");
1160 fprintf(stderr, "USAGE:\n\n");
1161 fprintf(stderr, "-i <toxid> - remote point Tox ID\n");
1162 fprintf(stderr, "-L <localport>:<remotehostname>:<remoteport> - forward <remotehostname>:<remoteport> to 127.0.0.1:<localport>\n");
1163 fprintf(stderr, "-P <remotehostname>:<remoteport> - forward <remotehostname>:<remoteport> to stdin/stdout (SSH ProxyCommand mode)\n");
1164 fprintf(stderr, "-p - ping the server from -i and exit\n");
1165 fprintf(stderr, "-C <dir> - save private key in <dir> instead of /etc/tuntox in server mode\n");
1166 fprintf(stderr, "-s <secret> - shared secret used for connection authentication (max %u characters)\n", TOX_MAX_FRIEND_REQUEST_LENGTH-1);
1167 fprintf(stderr, "-f <file> - only allow connections to hostname/port combinations contained in <file>. Rules must be entered one per line with the <hostname>:<port> format\n");
1168 fprintf(stderr, "-d - debug mode\n");
1169 fprintf(stderr, "-q - quiet mode\n");
1170 fprintf(stderr, "-S - send output to syslog instead of stderr\n");
1171 fprintf(stderr, "-D - daemonize (fork) and exit (implies -S)\n");
1172 fprintf(stderr, "-F <path> - create a PID file named <path>\n");
1173 fprintf(stderr, "-U <username|userid> - drop privileges to <username> before forking. Use numeric <userid> in static builds.\n");
1174 fprintf(stderr, "-h - this help message\n");
1159 fprintf(stderr, "tuntox - Forward ports over the Tox protocol\n\n");
1160 fprintf(stderr, "Usage:\n");
1161 fprintf(stderr, " tuntox ... # starts the server\n");
1162 fprintf(stderr, " tuntox -i <servertoxid> -L <localport>:<remoteaddress>:<remoteport> ... # starts the client\n\n");
1163 fprintf(stderr, "Options:\n");
1164 fprintf(stderr, " Server:\n");
1165 fprintf(stderr, " -i <toxid> - whitelisted Tox ID (can be used multiple times)\n");
1166 fprintf(stderr, " -f <file> - only allow connections to hostname/port combinations contained\n");
1167 fprintf(stderr, " in <file>. Rules must be entered one per line with the\n");
1168 fprintf(stderr, " <hostname>:<port> format\n");
1169 fprintf(stderr, " Client:\n");
1170 fprintf(stderr, " -i <toxid> - remote point Tox ID\n");
1171 fprintf(stderr, " -L <localport>:<remotehostname>:<remoteport>\n");
1172 fprintf(stderr, " - forward <remotehostname>:<remoteport> to 127.0.0.1:<localport>\n");
1173 fprintf(stderr, " -P <remotehostname>:<remoteport> - forward <remotehostname>:<remoteport> to\n");
1174 fprintf(stderr, " stdin/stdout (SSH ProxyCommand mode)\n");
1175 fprintf(stderr, " -p - ping the server from -i and exit\n");
1176 fprintf(stderr, " Common:\n");
1177 fprintf(stderr, " -C <dir> - save private key in <dir> instead of /etc/tuntox in server\n");
1178 fprintf(stderr, " mode\n");
1179 fprintf(stderr, " -s <secret> - shared secret used for connection authentication (max\n");
1180 fprintf(stderr, " %u characters)\n", TOX_MAX_FRIEND_REQUEST_LENGTH-1);
1181 fprintf(stderr, " -d - debug mode\n");
1182 fprintf(stderr, " -q - quiet mode\n");
1183 fprintf(stderr, " -S - send output to syslog instead of stderr\n");
1184 fprintf(stderr, " -D - daemonize (fork) and exit (implies -S)\n");
1185 fprintf(stderr, " -F <path> - create a PID file named <path>\n");
1186 fprintf(stderr, " -U <username|userid> - drop privileges to <username> before forking. Use\n");
1187 fprintf(stderr, " numeric <userid> in static builds.\n");
1188 fprintf(stderr, " -h - this help message\n");
1175 1189 } }
1176 1190
1177 1191 int main(int argc, char *argv[]) int main(int argc, char *argv[])
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/gdr/tuntox

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/gdr/tuntox

Clone this repository using git:
git clone git://git.rocketgit.com/user/gdr/tuntox

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main