From 2bea8f2de7235330fdfaaf050234b92541ca914e Mon Sep 17 00:00:00 2001 From: chandi Date: Mon, 13 Jul 2020 17:40:55 +0200 Subject: [PATCH] ipv6: small variable updates --- README.md | 1 + docker-compose.yml | 5 ++--- mod/freeswitch/entrypoint.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5e36771..249c126 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ - TURN server included - Fully automated HTTPS certificates - Runs on almost any major linux distributon (Debian, Ubuntu, CentOS,...) +- Full IPv6 support ## Install 1. Install docker-ce & docker-compose diff --git a/docker-compose.yml b/docker-compose.yml index 6effb5b..a7a1916 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,9 +32,8 @@ services: environment: DOMAIN: ${DOMAIN} EXTERNAL_IPv4: ${EXTERNAL_IPv4} - EXTERNAL_IPv6: ${EXTERNAL_IPv6} - SIP_IP_ALLOWLIST: ${SIP_IP_ALLOWLIST} - NETWORK_INTERFACE: ${NETWORK_INTERFACE:-} + EXTERNAL_IPv6: ${EXTERNAL_IPv6:-::1} + SIP_IP_ALLOWLIST: ${SIP_IP_ALLOWLIST:-} volumes: - ./conf/sip_profiles:/etc/freeswitch/sip_profiles/external - ./conf/dialplan_public:/etc/freeswitch/dialplan/public_docker diff --git a/mod/freeswitch/entrypoint.sh b/mod/freeswitch/entrypoint.sh index 780e2ab..75cce30 100755 --- a/mod/freeswitch/entrypoint.sh +++ b/mod/freeswitch/entrypoint.sh @@ -4,8 +4,8 @@ iptables -S INPUT | grep "\-\-dport 5060 " | cut -d " " -f 2- | xargs -rL1 iptables -D # block requests to 5060 (tcp/udp) -iptables -A INPUT -i "$NETWORK_INTERFACE" -p tcp --dport 5060 -s 0.0.0.0/0 -j REJECT -iptables -A INPUT -i "$NETWORK_INTERFACE" -p udp --dport 5060 -s 0.0.0.0/0 -j REJECT +iptables -A INPUT -p tcp --dport 5060 -s 0.0.0.0/0 -j REJECT +iptables -A INPUT -p udp --dport 5060 -s 0.0.0.0/0 -j REJECT # allow some IPs IFS=',' read -ra ADDR <<< "$SIP_IP_ALLOWLIST"