How to allow twilio IPs in your vicidial server for SIP Trunk Origination
Adding In Public zone :-
vici:~ # firewall-cmd --permanent --zone=public --add-rich-rule=' rule family="ipv4" source address="54.172.60.0/29" port protocol="tcp" port="5060-5061" accept'
vici:~ # firewall-cmd --permanent --zone=public --add-rich-rule=' rule family="ipv4" source address="34.203.250.0/23" port protocol="udp" port="10000-20000" accept'
Adding in Trusted zone :-
vici:~ # firewall-cmd --permanent --zone=trusted --add-rich-rule=' rule family="ipv4" source address="54.172.60.0/29" port protocol="tcp" port="5060-5061" accept'
vici:~ # firewall-cmd --permanent
--zone=trusted --add-rich-rule=' rule family="ipv4" source
address="34.203.250.0/23" port protocol="udp" port="10000-20000"
accept'
vici:~ # firewall-cmd --permanent --zone=trusted --add-rich-rule=' rule family="ipv4" source address="54.244.51.0/24" port protocol="udp" port="10000-20000" accept'
block the ip
vici:~ # sudo firewall-cmd --zone=trusted --add-rich-rule 'rule family="ipv4" source address=192.168.0.1 reject'
vici:~ # sudo firewall-cmd --zone=trusted --add-rich-rule 'rule family="ipv4" source address=192.168.0.1 drop'
save the rules using this command
vici:~ # firewall-cmd --reload
check the rules using this command
vici:~ # sudo firewall-cmd --list-all
0 comments:
Post a Comment