summaryrefslogtreecommitdiff
path: root/src/tools/tor-fw-helper/tor-fw-helper.c
AgeCommit message (Collapse)Author
2015-07-14Remove tor-fw-helper codeNick Mathewson
It did a good idea, but the code-quality of libupnpc and libnatpnp is so dodgy that I'm not really comfortable including them alongside Tor proper. Instead, we'll recommend that people do the pure-go reimplementation instead. Closes ticket 13338.
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2013-06-10Fix tor-fw-helper exit code.Arlo Breault
It's returning the number of initialized backends. (changes file added by nickm; this is a fix for bug #9030)
2013-03-19Merge remote-tracking branch 'public/bug7768' into maint-0.2.4Nick Mathewson
2013-03-19Use option name --test-commandline in tor-fw-helper.David Fifield
It was previously --Test in the help output and --test-commandline in the getopt call. The man page already had --test. (Originally by David, who resolved the tie in favor of "--test"; I chose --test-commandline" instead so that nothing that depended on it could break. -Nick)
2013-03-15Fix brackets in tor-fw-helper help output.David Fifield
Change nesting from [(]) to [()]. Formerly it made it look to me at first glance that "internal port" was optional. [Trivial change; fixes #7767 --nickm]
2013-01-16Update the copyright date to 201.Nick Mathewson
2012-09-05Fix some bugs that did not allow compilation on Windows.George Kadianakis
2012-09-05General tweaks and fixes for Nick's comments.George Kadianakis
* Add changes/ files. * Edit the tor-fw-helper manpage. * Fix check-spaces. * Add prototype for get_list_of_ports_to_forward(). * Fix tor_parse_long() TCP port range. * Improve doc. of tor_check_port_forwarding(). * Check for overflows in tor_check_port_forwarding(). * Demote successful port forwarding to LOG_INFO. Conflicts: src/common/address.c src/or/circuitbuild.c
2012-09-05All loging messages are now sent to stderr.George Kadianakis
stdout should be clean for control messages.
2012-09-05Further implement tor-fw-helper's TCP port forwarding system.George Kadianakis
2012-09-05Implement the new TCP port parsing logic in tor-fw-helper.George Kadianakis
2012-09-05Refactor tor-fw-helper port forwarding logic.George Kadianakis
Make it port-purpose-agnostic; that is it should treat each port as equal, and not expect to get a DirPort and an ORPort.
2012-06-04Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson
2012-01-31Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32Nick Mathewson
This commit is completely mechanical; I used this perl script to make it: #!/usr/bin/perl -w -i.bak -p if (/^\s*\#/) { s/MS_WINDOWS/_WIN32/g; s/\bWIN32\b/_WIN32/g; }
2011-08-22Appease "make check spaces"Steven Murdoch
2011-08-19Link and build tor-fw-helper on WindowsSteven Murdoch
- Update configure script to test for libminiupnpc along with the libws2_32 and libiphlpapi libraries required by libminiupnpc - When building tor-fw-helper, link in libiphlpapi - Link in libminiupnpc statically becasue I could not get the DLL to link properly - Call WSAStartup before doing network operations - Fix up a compiler warning about uninitialized backend_state N.B. The changes to configure.in and Makefile.am will break on non- Windows platforms.
2011-01-03Bump copyright statements to 2011 (master)Nick Mathewson
2010-09-30Fix space and formatting issuesNick Mathewson
2010-09-30Start tor-fw-helper in the background, and log whatever it outputsSteven Murdoch
2010-09-30Changes to tor-fw-helper, some based on Nick's reviewJacob Appelbaum
* MINIUPNPC rather than the generic UPNP * Nick suggested a better abstraction model for tor-fw-helper * Fix autoconf to build with either natpmp or miniupnpc * Add AM_PROG_CC_C_O to fix automake complaint * update spec to address nickm's concern * refactor nat-pmp to match upnp state * we prefer tor_snprintf to snprintf * link properlty for tor_snprintf * rename test_commandline_options to log_commandline_options * cast this uint as an int * detect possible FD_SETSIZE errors * make note about future enhancements for natpmp * add upnp enhancement note * ChangeLog entry * doxygen and check-spaces cleanup * create tor-fw-helper.1.txt
2010-09-30First implementation of tor-fw-helper.Jacob Appelbaum
tor-fw-helper is a command-line tool to wrap and abstract various firewall port-forwarding tools. This commit matches the state of Jacob's tor-fw-helper branch as of 23 September 2010. (commit msg by Nick)