Changeset 826 for trunk/pdns/pdns/pdns_recursor.cc
- Timestamp:
- 05/08/06 09:15:35 (7 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r825 r826 684 684 g_stats.addRemote(addr); 685 685 if(g_allowFrom && !g_allowFrom->match(&addr)) { 686 if(!g_quiet) 687 L<<Logger::Error<<"["<<MT->getTid()<<"] dropping TCP query from "<<addr.toString()<<", address not matched by allow-from"<<endl; 688 686 689 g_stats.unauthorizedTCP++; 687 690 Utility::closesocket(newsock); … … 709 712 } 710 713 } 711 714 712 715 void handleNewUDPQuestion(int fd, boost::any& var) 713 716 { … … 720 723 g_stats.addRemote(fromaddr); 721 724 if(g_allowFrom && !g_allowFrom->match(&fromaddr)) { 725 cout<<"mapped: "<<fromaddr.isMappedIPv4()<<endl; 726 if(!g_quiet) 727 L<<Logger::Error<<"["<<MT->getTid()<<"] dropping UDP query from "<<fromaddr.toString()<<", address not matched by allow-from"<<endl; 728 722 729 g_stats.unauthorizedUDP++; 723 730 return; … … 1587 1594 ::arg().set("remotes-ringbuffer-entries", "maximum number of packets to store statistics for")="0"; 1588 1595 ::arg().set("version-string", "string reported on version.pdns or version.bind")="PowerDNS Recursor "VERSION" $Id$"; 1589 ::arg().set("allow-from", "If set, only allow these comma separated netmasks to recurse")="127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12 ";1596 ::arg().set("allow-from", "If set, only allow these comma separated netmasks to recurse")="127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/16"; 1590 1597 ::arg().set("max-tcp-per-client", "If set, maximum number of TCP sessions per client (IP address)")="0"; 1591 1598 ::arg().set("fork", "If set, fork the daemon for possible double performance")="no";