Skip to content

Commit e948747

Browse files
update proxy install, accept local ip on firewall
1 parent c539765 commit e948747

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

script/installOpenSips-3.1.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,16 @@ iptables -P INPUT DROP
247247
iptables -P FORWARD DROP
248248
iptables -P OUTPUT ACCEPT
249249
iptables -A INPUT -p udp -m udp --dport 5060 -j ACCEPT
250-
iptables -A INPUT -p udp -m udp --dport 10000:40000 -j ACCEPT
250+
iptables -A INPUT -p udp -m udp --dport 10000:50000 -j ACCEPT
251251
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
252252
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
253253
iptables -A INPUT -p tcp -m tcp --dport 19639 -j ACCEPT
254254
iptables -I INPUT -p tcp -s $ipMbilling --dport 3306 -j ACCEPT
255255

256+
if [[ ${ipMbilling} != ${localIP} ]]; then
257+
iptables -I INPUT -p tcp -s $localIP --dport 3306 -j ACCEPT
258+
fi
259+
256260

257261
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | debconf-set-selections
258262
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | debconf-set-selections

0 commit comments

Comments
 (0)