Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 9:50 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: 2 IP addresses. 1 for Customer UI other for Asterisk.
PostPosted: Tue Apr 16, 2013 5:45 am 
Offline

Joined: Thu Apr 21, 2011 5:22 pm
Posts: 106
I have 2 IP addresses on an a2billing/asterisk box. I want to use one of the ips only for a2billing customer UI access and the other only for asterisk connectivity by sip clients. So if someone tries to access asterisk via the first ip, it should not work and vice versa.


Top
 Profile  
 
 Post subject: Re: 2 IP addresses. 1 for Customer UI other for Asterisk.
PostPosted: Wed May 01, 2013 7:55 pm 
Offline

Joined: Sun Dec 27, 2009 8:39 pm
Posts: 80
Simple method is to add rules to your firewall and allow/block access as needed

WEBONLY="192.168.1.10"
VOICEONLY="10.10.10.10"
iptables -A INPUT -d $WEBONLY --dport 80 -j ACCEPT
iptables -A INPUT -d $WEBONLY --dport 443 -j ACCEPT
iptables -A INPUT -d $WEBONLY -j DROP
iptables -A INPUT -p udp -m udp -d $VOIPONLY --dport 5060 -j ACCEPT
iptables -A INPUT -p udp -m udp -d $VOIPONLY --dport 10000:20000 -j ACCEPT
iptables -A INPUT -d $VOIPONLY -j DROP

To get more complex,you can start messing with the bindports in asterisk and only bind asterisk to the single IP you want. You would need to do the same with the httpd and it's conf files to only listen on the proper IP. I think the firewall is simplest, as you can make changes in one place if your IPs change, rather than messing with a bunch of config files.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group