diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-22 20:48:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-22 20:48:52 +0000 |
commit | 4da7f8ae611c3f05e2297840cd2e3aacf43f7117 (patch) | |
tree | 840ffb953f5edf125d635cb40af6ddc2c7b947c9 | |
parent | 74f7995d9e5604c064386bd313f3c204b86f0ef1 (diff) | |
download | gnunet-gtk-4da7f8ae611c3f05e2297840cd2e3aacf43f7117.tar.gz gnunet-gtk-4da7f8ae611c3f05e2297840cd2e3aacf43f7117.zip |
enable TCP stealth option configuration
-rw-r--r-- | contrib/gnunet_setup_main_window.glade | 40 | ||||
-rw-r--r-- | src/setup/gnunet-setup-options.c | 27 |
2 files changed, 64 insertions, 3 deletions
diff --git a/contrib/gnunet_setup_main_window.glade b/contrib/gnunet_setup_main_window.glade index 1e21945d..cd51e870 100644 --- a/contrib/gnunet_setup_main_window.glade +++ b/contrib/gnunet_setup_main_window.glade | |||
@@ -2367,6 +2367,24 @@ | |||
2367 | </packing> | 2367 | </packing> |
2368 | </child> | 2368 | </child> |
2369 | <child> | 2369 | <child> |
2370 | <object class="GtkCheckButton" id="GNUNET_setup_transport_http_stealth_checkbutton"> | ||
2371 | <property name="label" translatable="yes">Use TCP Stealth (requires kernel support)</property> | ||
2372 | <property name="visible">True</property> | ||
2373 | <property name="sensitive">False</property> | ||
2374 | <property name="can_focus">True</property> | ||
2375 | <property name="receives_default">False</property> | ||
2376 | <property name="tooltip_text" translatable="yes">Use this option to make your TCP server "stealthy", that is "invisible" (or at least much less visible) to port scanners. This requires kernel support and may not be available on all operating systems. Note that if you use this option, only clients that also support TCP Stealth (on their operating system) will be able to connect to you. You do not need to check this box to enable TCP Stealth client-side.</property> | ||
2377 | <property name="xalign">0</property> | ||
2378 | <property name="draw_indicator">True</property> | ||
2379 | </object> | ||
2380 | <packing> | ||
2381 | <property name="expand">False</property> | ||
2382 | <property name="fill">False</property> | ||
2383 | <property name="padding">5</property> | ||
2384 | <property name="position">2</property> | ||
2385 | </packing> | ||
2386 | </child> | ||
2387 | <child> | ||
2370 | <object class="GtkHBox" id="GNUNET_setup_transport_http_test_hbox"> | 2388 | <object class="GtkHBox" id="GNUNET_setup_transport_http_test_hbox"> |
2371 | <property name="visible">True</property> | 2389 | <property name="visible">True</property> |
2372 | <property name="can_focus">False</property> | 2390 | <property name="can_focus">False</property> |
@@ -2439,7 +2457,7 @@ | |||
2439 | <property name="expand">False</property> | 2457 | <property name="expand">False</property> |
2440 | <property name="fill">False</property> | 2458 | <property name="fill">False</property> |
2441 | <property name="padding">5</property> | 2459 | <property name="padding">5</property> |
2442 | <property name="position">2</property> | 2460 | <property name="position">3</property> |
2443 | </packing> | 2461 | </packing> |
2444 | </child> | 2462 | </child> |
2445 | </object> | 2463 | </object> |
@@ -2842,6 +2860,24 @@ | |||
2842 | </packing> | 2860 | </packing> |
2843 | </child> | 2861 | </child> |
2844 | <child> | 2862 | <child> |
2863 | <object class="GtkCheckButton" id="GNUNET_setup_transport_https_stealth_checkbutton"> | ||
2864 | <property name="label" translatable="yes">Use TCP Stealth (requires kernel support)</property> | ||
2865 | <property name="visible">True</property> | ||
2866 | <property name="sensitive">False</property> | ||
2867 | <property name="can_focus">True</property> | ||
2868 | <property name="receives_default">False</property> | ||
2869 | <property name="tooltip_text" translatable="yes">Use this option to make your TCP server "stealthy", that is "invisible" (or at least much less visible) to port scanners. This requires kernel support and may not be available on all operating systems. Note that if you use this option, only clients that also support TCP Stealth (on their operating system) will be able to connect to you. You do not need to check this box to enable TCP Stealth client-side.</property> | ||
2870 | <property name="xalign">0</property> | ||
2871 | <property name="draw_indicator">True</property> | ||
2872 | </object> | ||
2873 | <packing> | ||
2874 | <property name="expand">False</property> | ||
2875 | <property name="fill">False</property> | ||
2876 | <property name="padding">5</property> | ||
2877 | <property name="position">2</property> | ||
2878 | </packing> | ||
2879 | </child> | ||
2880 | <child> | ||
2845 | <object class="GtkHBox" id="GNUNET_setup_transport_https_test_hbox"> | 2881 | <object class="GtkHBox" id="GNUNET_setup_transport_https_test_hbox"> |
2846 | <property name="visible">True</property> | 2882 | <property name="visible">True</property> |
2847 | <property name="can_focus">False</property> | 2883 | <property name="can_focus">False</property> |
@@ -2914,7 +2950,7 @@ | |||
2914 | <property name="expand">False</property> | 2950 | <property name="expand">False</property> |
2915 | <property name="fill">False</property> | 2951 | <property name="fill">False</property> |
2916 | <property name="padding">5</property> | 2952 | <property name="padding">5</property> |
2917 | <property name="position">2</property> | 2953 | <property name="position">3</property> |
2918 | </packing> | 2954 | </packing> |
2919 | </child> | 2955 | </child> |
2920 | </object> | 2956 | </object> |
diff --git a/src/setup/gnunet-setup-options.c b/src/setup/gnunet-setup-options.c index b35842c0..f3c1213c 100644 --- a/src/setup/gnunet-setup-options.c +++ b/src/setup/gnunet-setup-options.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2010, 2011, 2012 Christian Grothoff (and other contributing authors) | 3 | (C) 2010-2014 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -1940,6 +1940,20 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = { | |||
1940 | NULL, NULL, | 1940 | NULL, NULL, |
1941 | NULL}, | 1941 | NULL}, |
1942 | 1942 | ||
1943 | { | ||
1944 | "GNUNET_setup_transport_http_stealth_checkbutton", | ||
1945 | "toggled", | ||
1946 | "transport-http", | ||
1947 | "TCP_STEALTH", | ||
1948 | gettext_noop ("Should GNUnet use TCP STEALTH for the TCP server?"), | ||
1949 | "https://gnunet.org/knock", | ||
1950 | &load_yes_no_check_tcp_stealth, | ||
1951 | &save_yes_no, NULL, | ||
1952 | NULL, NULL, | ||
1953 | NULL }, | ||
1954 | |||
1955 | |||
1956 | |||
1943 | /* HTTPS client */ | 1957 | /* HTTPS client */ |
1944 | 1958 | ||
1945 | { | 1959 | { |
@@ -2056,6 +2070,17 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = { | |||
2056 | NULL, NULL, | 2070 | NULL, NULL, |
2057 | NULL}, | 2071 | NULL}, |
2058 | 2072 | ||
2073 | { | ||
2074 | "GNUNET_setup_transport_https_stealth_checkbutton", | ||
2075 | "toggled", | ||
2076 | "transport-https", | ||
2077 | "TCP_STEALTH", | ||
2078 | gettext_noop ("Should GNUnet use TCP STEALTH for the TCP server?"), | ||
2079 | "https://gnunet.org/knock", | ||
2080 | &load_yes_no_check_tcp_stealth, | ||
2081 | &save_yes_no, NULL, | ||
2082 | NULL, NULL, | ||
2083 | NULL }, | ||
2059 | 2084 | ||
2060 | /* FS TAB */ | 2085 | /* FS TAB */ |
2061 | 2086 | ||