|  | @@ -751,6 +751,53 @@ function store_passwords {
 | 
	
		
			
			| 751 | 751 |      esac
 | 
	
		
			
			| 752 | 752 |  }
 | 
	
		
			
			| 753 | 753 |  
 | 
	
		
			
			|  | 754 | +function show_tor_bridges {
 | 
	
		
			
			|  | 755 | +    echo -n ''
 | 
	
		
			
			|  | 756 | +}
 | 
	
		
			
			|  | 757 | +
 | 
	
		
			
			|  | 758 | +function add_tor_bridge {
 | 
	
		
			
			|  | 759 | +    echo -n ''
 | 
	
		
			
			|  | 760 | +}
 | 
	
		
			
			|  | 761 | +
 | 
	
		
			
			|  | 762 | +function remove_tor_bridge {
 | 
	
		
			
			|  | 763 | +    echo -n ''
 | 
	
		
			
			|  | 764 | +}
 | 
	
		
			
			|  | 765 | +
 | 
	
		
			
			|  | 766 | +function menu_security_settings {
 | 
	
		
			
			|  | 767 | +    data=$(tempfile 2>/dev/null)
 | 
	
		
			
			|  | 768 | +    trap "rm -f $data" 0 1 2 5 15
 | 
	
		
			
			|  | 769 | +    dialog --backtitle $"Freedombone Control Panel" \
 | 
	
		
			
			|  | 770 | +           --title $"Tor Bridges" \
 | 
	
		
			
			|  | 771 | +           --radiolist $"Choose an operation:" 12 50 4 \
 | 
	
		
			
			|  | 772 | +           1 $"Show bridges" off \
 | 
	
		
			
			|  | 773 | +           2 $"Add a bridge" off \
 | 
	
		
			
			|  | 774 | +           3 $"Remove a bridge" off \
 | 
	
		
			
			|  | 775 | +           4 $"Go Back/Exit" on 2> $data
 | 
	
		
			
			|  | 776 | +    sel=$?
 | 
	
		
			
			|  | 777 | +    case $sel in
 | 
	
		
			
			|  | 778 | +        1) exit 1;;
 | 
	
		
			
			|  | 779 | +        255) exit 1;;
 | 
	
		
			
			|  | 780 | +    esac
 | 
	
		
			
			|  | 781 | +
 | 
	
		
			
			|  | 782 | +    case $(cat $data) in
 | 
	
		
			
			|  | 783 | +        1)
 | 
	
		
			
			|  | 784 | +            show_tor_bridges
 | 
	
		
			
			|  | 785 | +            exit 0
 | 
	
		
			
			|  | 786 | +            ;;
 | 
	
		
			
			|  | 787 | +        2)
 | 
	
		
			
			|  | 788 | +            add_tor_bridge
 | 
	
		
			
			|  | 789 | +            exit 0
 | 
	
		
			
			|  | 790 | +            ;;
 | 
	
		
			
			|  | 791 | +        3)
 | 
	
		
			
			|  | 792 | +            remove_tor_bridge
 | 
	
		
			
			|  | 793 | +            exit 0
 | 
	
		
			
			|  | 794 | +            ;;
 | 
	
		
			
			|  | 795 | +        4)
 | 
	
		
			
			|  | 796 | +            exit 0
 | 
	
		
			
			|  | 797 | +            ;;
 | 
	
		
			
			|  | 798 | +    esac
 | 
	
		
			
			|  | 799 | +}
 | 
	
		
			
			|  | 800 | +
 | 
	
		
			
			| 754 | 801 |  function menu_security_settings {
 | 
	
		
			
			| 755 | 802 |      data=$(tempfile 2>/dev/null)
 | 
	
		
			
			| 756 | 803 |      trap "rm -f $data" 0 1 2 5 15
 | 
	
	
		
			
			|  | @@ -759,17 +806,18 @@ function menu_security_settings {
 | 
	
		
			
			| 759 | 806 |             --radiolist $"Choose an operation:" 20 76 20 \
 | 
	
		
			
			| 760 | 807 |             1 $"Run STIG tests" off \
 | 
	
		
			
			| 761 | 808 |             2 $"Show ssh host public key" off \
 | 
	
		
			
			| 762 |  | -           3 $"Password storage" off \
 | 
	
		
			
			| 763 |  | -           4 $"Export passwords" off \
 | 
	
		
			
			| 764 |  | -           5 $"Regenerate ssh host keys" off \
 | 
	
		
			
			| 765 |  | -           6 $"Regenerate Diffie-Hellman keys" off \
 | 
	
		
			
			| 766 |  | -           7 $"Update cipersuite" off \
 | 
	
		
			
			| 767 |  | -           8 $"Create a new Let's Encrypt certificate" off \
 | 
	
		
			
			| 768 |  | -           9 $"Renew Let's Encrypt certificate" off \
 | 
	
		
			
			| 769 |  | -           10 $"Enable GPG based authentication (monkeysphere)" off \
 | 
	
		
			
			| 770 |  | -           11 $"Register a website with monkeysphere" off \
 | 
	
		
			
			| 771 |  | -           12 $"Allow ssh login with passwords" off \
 | 
	
		
			
			| 772 |  | -           13 $"Go Back/Exit" on 2> $data
 | 
	
		
			
			|  | 809 | +           3 $"Tor bridges" off \
 | 
	
		
			
			|  | 810 | +           4 $"Password storage" off \
 | 
	
		
			
			|  | 811 | +           5 $"Export passwords" off \
 | 
	
		
			
			|  | 812 | +           6 $"Regenerate ssh host keys" off \
 | 
	
		
			
			|  | 813 | +           7 $"Regenerate Diffie-Hellman keys" off \
 | 
	
		
			
			|  | 814 | +           8 $"Update cipersuite" off \
 | 
	
		
			
			|  | 815 | +           9 $"Create a new Let's Encrypt certificate" off \
 | 
	
		
			
			|  | 816 | +           10 $"Renew Let's Encrypt certificate" off \
 | 
	
		
			
			|  | 817 | +           11 $"Enable GPG based authentication (monkeysphere)" off \
 | 
	
		
			
			|  | 818 | +           12 $"Register a website with monkeysphere" off \
 | 
	
		
			
			|  | 819 | +           13 $"Allow ssh login with passwords" off \
 | 
	
		
			
			|  | 820 | +           14 $"Go Back/Exit" on 2> $data
 | 
	
		
			
			| 773 | 821 |      sel=$?
 | 
	
		
			
			| 774 | 822 |      case $sel in
 | 
	
		
			
			| 775 | 823 |          1) exit 1;;
 | 
	
	
		
			
			|  | @@ -804,41 +852,45 @@ function menu_security_settings {
 | 
	
		
			
			| 804 | 852 |              exit 0
 | 
	
		
			
			| 805 | 853 |              ;;
 | 
	
		
			
			| 806 | 854 |          3)
 | 
	
		
			
			| 807 |  | -            store_passwords
 | 
	
		
			
			|  | 855 | +            menu_tor_bridges
 | 
	
		
			
			| 808 | 856 |              exit 0
 | 
	
		
			
			| 809 | 857 |              ;;
 | 
	
		
			
			| 810 | 858 |          4)
 | 
	
		
			
			| 811 |  | -            export_passwords
 | 
	
		
			
			|  | 859 | +            store_passwords
 | 
	
		
			
			| 812 | 860 |              exit 0
 | 
	
		
			
			| 813 | 861 |              ;;
 | 
	
		
			
			| 814 | 862 |          5)
 | 
	
		
			
			| 815 |  | -            regenerate_ssh_host_keys
 | 
	
		
			
			|  | 863 | +            export_passwords
 | 
	
		
			
			|  | 864 | +            exit 0
 | 
	
		
			
			| 816 | 865 |              ;;
 | 
	
		
			
			| 817 | 866 |          6)
 | 
	
		
			
			| 818 |  | -            regenerate_dh_keys
 | 
	
		
			
			|  | 867 | +            regenerate_ssh_host_keys
 | 
	
		
			
			| 819 | 868 |              ;;
 | 
	
		
			
			| 820 | 869 |          7)
 | 
	
		
			
			|  | 870 | +            regenerate_dh_keys
 | 
	
		
			
			|  | 871 | +            ;;
 | 
	
		
			
			|  | 872 | +        8)
 | 
	
		
			
			| 821 | 873 |              interactive_setup
 | 
	
		
			
			| 822 | 874 |              update_ciphersuite
 | 
	
		
			
			| 823 | 875 |              ;;
 | 
	
		
			
			| 824 |  | -        8)
 | 
	
		
			
			|  | 876 | +        9)
 | 
	
		
			
			| 825 | 877 |              create_letsencrypt
 | 
	
		
			
			| 826 | 878 |              ;;
 | 
	
		
			
			| 827 |  | -        9)
 | 
	
		
			
			|  | 879 | +        10)
 | 
	
		
			
			| 828 | 880 |              renew_letsencrypt
 | 
	
		
			
			| 829 | 881 |              ;;
 | 
	
		
			
			| 830 |  | -        10)
 | 
	
		
			
			|  | 882 | +        11)
 | 
	
		
			
			| 831 | 883 |              enable_monkeysphere
 | 
	
		
			
			| 832 | 884 |              ;;
 | 
	
		
			
			| 833 |  | -        11)
 | 
	
		
			
			|  | 885 | +        12)
 | 
	
		
			
			| 834 | 886 |              register_website
 | 
	
		
			
			| 835 | 887 |              ;;
 | 
	
		
			
			| 836 |  | -        12)
 | 
	
		
			
			|  | 888 | +        13)
 | 
	
		
			
			| 837 | 889 |              allow_ssh_passwords
 | 
	
		
			
			| 838 | 890 |              change_ssh_settings
 | 
	
		
			
			| 839 | 891 |              exit 0
 | 
	
		
			
			| 840 | 892 |              ;;
 | 
	
		
			
			| 841 |  | -        13)
 | 
	
		
			
			|  | 893 | +        14)
 | 
	
		
			
			| 842 | 894 |              exit 0
 | 
	
		
			
			| 843 | 895 |              ;;
 | 
	
		
			
			| 844 | 896 |      esac
 |