Changeset 1112
- Timestamp:
- 06/02/08 23:30:10 (6 months ago)
- Files:
-
- fwknop/trunk/ChangeLog (modified) (1 diff)
- fwknop/trunk/fwknop (modified) (3 diffs)
- fwknop/trunk/fwknop.conf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fwknop/trunk/ChangeLog
r1106 r1112 53 53 - Updated the install.pl script to try to determine the OS type as early 54 54 as possible during the install process. 55 - Added the MIN_SPA_PKT_LEN variable with 1 60 (bytes) as the default.55 - Added the MIN_SPA_PKT_LEN variable with 150 (bytes) as the default. 56 56 This allows fwknopd to ignore packets that are not at least this many 57 57 bytes (including packet headers) before any decryption attempt is made. fwknop/trunk/fwknop
r1106 r1112 102 102 my $pcap_sleep_interval = 1; ### seconds 103 103 my $knock_dst_pre_resolve = ''; 104 my $selected_random_nat_port = 0; 104 105 my $rand_port = 0; ### for SPA packet destination port 105 106 my $NAT_rand_port = 0; ### for randomized access based on … … 330 331 331 332 if ($NAT_local and not $NAT_access_str) { 332 $NAT_access_str = "$knock_dst,55000"; 333 print 334 "[-] Requesting NAT support for port 55,000; use --NAT-rand-port for a\n", 333 if ($NAT_rand_port) { 334 my $rand_port = &rand_port(); 335 $NAT_access_str = "$knock_dst,$rand_port"; 336 print "[+] Requesting NAT access for randomized port: $rand_port\n"; 337 $selected_random_nat_port = 1; 338 } else { 339 $NAT_access_str = "$knock_dst,55000"; 340 print 341 "[+] Requesting NAT support for port 55,000; use --NAT-rand-port for a\n", 335 342 " random port.\n"; 343 } 336 344 } 337 345 … … 1599 1607 if ($NAT_rand_port) { 1600 1608 1601 $NAT_access_str =~ s/,\d+$//; 1602 $NAT_access_str =~ s/:\d+$//; 1603 1604 unless ($NAT_access_str =~ /^$ip_re$/) { 1605 die "[*] Must specify '<internal_IP>'"; 1606 } 1607 1608 ### append a random destination port (between 10,000 1609 ### and 65535); this is the port number that will be 1610 ### used on the SSH command line 1611 $NAT_access_str .= ',' . &rand_port(); 1609 unless ($selected_random_nat_port) { 1610 $NAT_access_str =~ s/,\d+$//; 1611 $NAT_access_str =~ s/:\d+$//; 1612 1613 unless ($NAT_access_str =~ /^$ip_re$/) { 1614 die "[*] Must specify '<internal_IP>'"; 1615 } 1616 1617 ### append a random destination port (between 10,000 1618 ### and 65535); this is the port number that will be 1619 ### used on the SSH command line 1620 $NAT_access_str .= ',' . &rand_port(); 1621 } 1612 1622 1613 1623 } else { fwknop/trunk/fwknop.conf
r1099 r1112 218 218 ### Default minimum for any SPA packet (including both the data link, 219 219 ### network, and transport layer headers) 220 MIN_SPA_PKT_LEN 1 60;220 MIN_SPA_PKT_LEN 150; 221 221 222 222 ### Default minimum message size SPA messages encrypted with GnuPG. The
