summaryrefslogtreecommitdiff
path: root/src/daemon/dlt.conf
diff options
context:
space:
mode:
authorAdrianStoenescu <51166009+AdrianStoenescu@users.noreply.github.com>2019-07-25 13:36:49 +0300
committerSaya Sugiura <ssugiura@jp.adit-jv.com>2019-09-03 10:44:45 +0900
commit01a1935ec1e2ebf0601a6ff55ac957c92d6cbfa5 (patch)
treea5388bbd0300b8f77ba6e9b317b316c137fcc010 /src/daemon/dlt.conf
parent716ecb8e223f1c89ca2a6200091ad15febb09144 (diff)
downloadDLT-daemon-01a1935ec1e2ebf0601a6ff55ac957c92d6cbfa5.tar.gz
Add option in dlt.conf for bindAddress to specific IPs (#130)
Add the possibility to have in dlt.conf an option that specifies a set of IP addresses. The daemon will do a socket bind only for this list, therefore external connections will be limited to this set of IP addresses. If this option is not given, the default INADDR_ANY is used ("0.0.0.0") as before. The option in dlt.conf can look like this: BindAddress = 160.48.199.98;160.48.199.97;160.48.199.226,160.48.199.186;160.48.199.139;172.16.222.99 There can be as many addresses but only specified on one single line. They have to be delimited by ',' or ';'. ' ' (space) delimiter does not work. IPv6 addresses are supported as well. For instance: BindAddress = fe80::255:7bff:feb5:7df7 IPv6 addresses are acceptable only if DLT_USE_IPv6 flag is ON at compile time. IPv4 addresses are acceptable only if DLT_USE_IPv6 flag is OFF at compile time. One cannot have both IPv4 and IPv6 format in the same time. Signed-off-by: Adrian Stoenescu Adrian.Stoenescu@harman.com
Diffstat (limited to 'src/daemon/dlt.conf')
-rw-r--r--src/daemon/dlt.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon/dlt.conf b/src/daemon/dlt.conf
index 47e9b6d..ab5883f 100644
--- a/src/daemon/dlt.conf
+++ b/src/daemon/dlt.conf
@@ -195,3 +195,12 @@ UDPMulticastIPAddress = 225.0.0.37
# UDP multicast port(default:3491)
UDPMulticastIPPort = 3491
+
+##############################################################################
+# BindAddress Limitation #
+##############################################################################
+# Accept connections only on this list of IP addresses (Default: "0.0.0.0" INADDR_ANY)
+# The IP addresses must be separated with ',' or ';' but not with space character ' '
+# If DLT_USE_IPv6 flag is ON, then only IPv6 addresses are accepted
+# If DLT_USE_IPv6 flag is OFF, then only IPv4 addresses are accepted
+# BindAddress = 160.48.199.97;160.48.199.98