Changeset 1124
- Timestamp:
- 06/07/08 13:08:24 (6 months ago)
- Files:
-
- fwknop/trunk/fwknop (modified) (3 diffs)
- fwknop/trunk/fwknop.h (modified) (1 diff)
- fwknop/trunk/fwknop_serv (modified) (1 diff)
- fwknop/trunk/fwknopd (modified) (4 diffs)
- fwknop/trunk/install.pl (modified) (1 diff)
- fwknop/trunk/knopmd.c (modified) (1 diff)
- fwknop/trunk/knoptm (modified) (6 diffs)
- fwknop/trunk/knopwatchd.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fwknop/trunk/fwknop
r1121 r1124 19 19 # Version: 1.9.5-pre1 20 20 # 21 # Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)21 # Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 22 22 # 23 23 # License (GNU Public License): … … 1748 1748 -D, --Destination <IP> - The IP address of the fwknopd server (the 1749 1749 IP want to connect to). 1750 - l, --last-cmd- Run the fwknop with the same command line1750 --last-cmd - Run the fwknop with the same command line 1751 1751 arguments as in the previous invocation. 1752 1752 The args are stored in ~/fwknop.run. … … 1868 1868 knock sequence (synonym for -D). 1869 1869 -d, --debug - Run fwknop in debugging mode. 1870 --locale <locale> - Manually define a locale setting. 1871 --no-locale - Don't set the locale to anything (the 1872 default is the "C" locale). 1870 1873 -v, --verbose - Verbose mode. 1871 1874 -V, --Version - Display version and exit. fwknop/trunk/fwknop.h
r1032 r1124 12 12 * Version: 1.8 13 13 * 14 * Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)14 * Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 15 15 * 16 16 * License (GNU Public License): fwknop/trunk/fwknop_serv
r1121 r1124 18 18 # Version: 1.9.5-pre1 19 19 # 20 # Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)20 # Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 21 21 # 22 22 # License (GNU Public License): fwknop/trunk/fwknopd
r1121 r1124 22 22 # Version: 1.9.5-pre1 23 23 # 24 # Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)24 # Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 25 25 # 26 26 # License (GNU Public License): … … 3667 3667 ### make Getopts case sensitive 3668 3668 Getopt::Long::Configure('no_ignore_case'); 3669 die "[ -] Use --help for usage information.\n" unless (GetOptions(3669 die "[*] Use --help for usage information.\n" unless (GetOptions( 3670 3670 'config=s' => \$config_file, 3671 3671 'access-conf=s' => \$access_conf_file, … … 4041 4041 $cmd .= ' --no-logs' if $test_mode; 4042 4042 $cmd .= " --fw-type $config{'FIREWALL_TYPE'}" if $fw_type; 4043 $cmd .= " --locale $cmdline_locale" if $cmdline_locale; 4043 4044 4044 4045 ### always start knoptm … … 4884 4885 have the pcap_datali.al file. 4885 4886 -d, --debug - Run fwknopd in debugging mode. 4887 --locale <locale> - Manually define a locale setting. 4888 --no-locale - Don't set the locale to anything (the 4889 default is the "C" locale from the LOCALE 4890 variable in the fwknop.conf file). 4886 4891 -v, --verbose - Verbose mode. 4887 4892 -V, --Version - Display version and exit. fwknop/trunk/install.pl
r1095 r1124 11 11 # Credits: (see the CREDITS file) 12 12 # 13 # Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)13 # Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 14 14 # 15 15 # License (GNU Public License): fwknop/trunk/knopmd.c
r798 r1124 13 13 * Version: 1.8 14 14 * 15 * Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)15 * Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 16 16 * 17 17 * License (GNU Public License): fwknop/trunk/knoptm
r1121 r1124 21 21 # Version: 1.9.5-pre1 22 22 # 23 # Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)23 # Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 24 24 # 25 25 # License (GNU Public License): … … 80 80 my $zero_ip_re = qr|(?:0\.){3}0|; 81 81 82 my $ locale = 'C'; ### default LC_ALL env variable82 my $cmdline_locale = ''; 83 83 my $no_locale = 0; 84 84 … … 95 95 'no-voluntary-exits' => \$no_voluntary_exits, 96 96 'no-logs' => \$no_logs, 97 'LC_ALL=s' => \$locale,98 'locale=s' => \$locale,99 'no-LC_ALL' => \$no_locale,100 'no-locale' => \$no_locale,97 'LC_ALL=s' => \$cmdline_locale, 98 'locale=s' => \$cmdline_locale, 99 'no-LC_ALL' => \$no_locale, 100 'no-locale' => \$no_locale, 101 101 'help' => \$print_help 102 102 )); … … 112 112 &usage(0) if $print_help; 113 113 114 ### set LC_ALL env variable115 $ENV{'LC_ALL'} = $locale unless $no_locale;116 117 114 ### set things up, deal with pid's, and import config 118 115 &knoptm_init(); 116 117 &handle_locale(); 119 118 120 119 print STDERR "[+] Opening $config{'KNOPTM_IP_TIMEOUT_SOCK'} socket, ", … … 744 743 ALERTING_METHODS FIREWALL_TYPE KNOPTM_SYSLOG_IDENTITY 745 744 KNOPTM_SYSLOG_FACILITY KNOPTM_SYSLOG_PRIORITY 746 ENABLE_VOLUNTARY_EXITS EXIT_INTERVAL FWKNOP_PID_FILE) { 745 ENABLE_VOLUNTARY_EXITS EXIT_INTERVAL FWKNOP_PID_FILE 746 LOCALE 747 ) { 747 748 748 749 die "[*] Variable $var is not defined in $config_file" … … 832 833 close D; 833 834 $warn_msg = ''; 835 return; 836 } 837 838 sub handle_locale() { 839 $config{'LOCALE'} = $cmdline_locale if $cmdline_locale; 840 841 if ($config{'LOCALE'} ne 'NONE' and not $no_locale) { 842 ### set LC_ALL env variable 843 $ENV{'LC_ALL'} = $config{'LOCALE'}; 844 } 834 845 return; 835 846 } fwknop/trunk/knopwatchd.c
r1119 r1124 16 16 * Version: 1.9.5-pre1 17 17 * 18 * Copyright (C) 2004-200 7Michael Rash (mbr@cipherdyne.org)18 * Copyright (C) 2004-2008 Michael Rash (mbr@cipherdyne.org) 19 19 * 20 20 * License (GNU Public License):
