mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
safer default interfaces.
git-svn-id: file:///svn/unbound/trunk@737 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
518e7511d7
commit
d41f40b028
4 changed files with 8 additions and 6 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
- default config file is /etc/unbound/unbound.conf.
|
- default config file is /etc/unbound/unbound.conf.
|
||||||
If it doesn't exist, it is installed with the doc/example.conf file.
|
If it doesn't exist, it is installed with the doc/example.conf file.
|
||||||
The file is not deleted on uninstall.
|
The file is not deleted on uninstall.
|
||||||
|
- default listening is not all, but localhost interfaces.
|
||||||
|
|
||||||
8 November 2007: Wouter
|
8 November 2007: Wouter
|
||||||
- Fixup chroot and drop user privileges.
|
- Fixup chroot and drop user privileges.
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,8 @@ server:
|
||||||
# num-threads: 1
|
# num-threads: 1
|
||||||
|
|
||||||
# specify the interfaces to answer queries from by ip-address.
|
# specify the interfaces to answer queries from by ip-address.
|
||||||
# If you give none the default (all) interface is used.
|
# The default is to listen to localhost (127.0.0.1 and ::1).
|
||||||
|
# specify 0.0.0.0 and ::0 to bind to all available interfaces.
|
||||||
# specify every interface on a new 'interface:' labelled line.
|
# specify every interface on a new 'interface:' labelled line.
|
||||||
# interface: 192.0.2.153
|
# interface: 192.0.2.153
|
||||||
# interface: 192.0.2.154
|
# interface: 192.0.2.154
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ The port number, default 53, on which the server responds to queries.
|
||||||
Interface to use to connect to the network. This interface is listened to
|
Interface to use to connect to the network. This interface is listened to
|
||||||
for queries from clients, and answers to clients are given from it.
|
for queries from clients, and answers to clients are given from it.
|
||||||
Can be given multiple times to work on several interfaces. If none are
|
Can be given multiple times to work on several interfaces. If none are
|
||||||
given the default (all) is used.
|
given the default is to listen to localhost.
|
||||||
.It \fBoutgoing-interface:\fR <ip address>
|
.It \fBoutgoing-interface:\fR <ip address>
|
||||||
Interface to use to connect to the network. This interface is used to send
|
Interface to use to connect to the network. This interface is used to send
|
||||||
queries to authoritative servers and receive their replies. Can be given
|
queries to authoritative servers and receive their replies. Can be given
|
||||||
|
|
@ -87,8 +87,8 @@ default (all) is used. You can specify the same interfaces in
|
||||||
.Ic interface:
|
.Ic interface:
|
||||||
and
|
and
|
||||||
.Ic outgoing-interface:
|
.Ic outgoing-interface:
|
||||||
lines, the interfaces are then used for both purposes. Queries are sent
|
lines, the interfaces are then used for both purposes. Outgoing queries are
|
||||||
via a random interface to counter spoofing.
|
sent via a random outgoing interface to counter spoofing.
|
||||||
.It \fBoutgoing-port:\fR <port number>
|
.It \fBoutgoing-port:\fR <port number>
|
||||||
The starting port number where the outgoing query port range is allocated.
|
The starting port number where the outgoing query port range is allocated.
|
||||||
Default is 1053.
|
Default is 1053.
|
||||||
|
|
|
||||||
|
|
@ -409,7 +409,7 @@ listening_ports_open(struct config_file* cfg)
|
||||||
if(cfg->num_ifs == 0) {
|
if(cfg->num_ifs == 0) {
|
||||||
if(do_ip6) {
|
if(do_ip6) {
|
||||||
hints.ai_family = AF_INET6;
|
hints.ai_family = AF_INET6;
|
||||||
if(!ports_create_if(NULL, cfg->do_udp, do_tcp,
|
if(!ports_create_if("::1", cfg->do_udp, do_tcp,
|
||||||
&hints, portbuf, &list)) {
|
&hints, portbuf, &list)) {
|
||||||
listening_ports_free(list);
|
listening_ports_free(list);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
@ -417,7 +417,7 @@ listening_ports_open(struct config_file* cfg)
|
||||||
}
|
}
|
||||||
if(do_ip4) {
|
if(do_ip4) {
|
||||||
hints.ai_family = AF_INET;
|
hints.ai_family = AF_INET;
|
||||||
if(!ports_create_if(NULL, cfg->do_udp, do_tcp,
|
if(!ports_create_if("127.0.0.1", cfg->do_udp, do_tcp,
|
||||||
&hints, portbuf, &list)) {
|
&hints, portbuf, &list)) {
|
||||||
listening_ports_free(list);
|
listening_ports_free(list);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue