How to restrict access to the trixbox web page?
Hi All,
I know that it's not recommended to put trixbox directly online but I really didn't like the perfromance and voice quality behind any firewall inculding the most expensive Cisco. Therefore, my question is: how do I make the trixbox web access more secure:
- how to change the default port from 80 to something else
- enforce log in on everything not just the maint page and FreePBX. I don't anyone to peek at the user page, FOP, etc.
- does anyone have a WORKING iptables cfg to share? Something that allows all outgoing traffic but also allows all incoming VoIP traffic without taxing overhead. All remote SIP/IAX extensions must be able to log in without any problem. Only success stories pelase.
- there is plenty of grabage about changing security paramaters; would it be possible for the trixbox developers to produce a tutorial about changing default passwords? Shouldn't this be the main priority?
Changing default passwords is always good.
If you understand the basics of iptables but have a hard time grasping the syntax, then you should install webmin. The linux firewall module (which controls iptables) included with it is no frills, but gives you a graphical outlay of all the different options you can use in a firewall rule.
As far as password protecting your web interface and changing the port, these are all apache configuration issues. Changing the listening port in webmin for apache is easy. Simply go to Servers>Apache Webserver, click on the Global Configuration tab, click Networking and Addresses, and change port 80 to whatever you need (but you need to keep it out of the range of other services).
To password protect the entire site, you will need to goto your linux console and add a new username to the apache password file. To do this, type the following command, replacing
htpasswd /usr/local/apache/passwd/wwwpasswd <username>
and then go back to webmin, then servers>Apache Webserver and click on default server. Then click Directory /var/www/html, click Access Control, then choose the following options:
- Authentication Realm Name: Restricted Access Here
- Restrict Access By Login: Only these users: (whatever username you entered before)
- User text file: click the radio box next to the text box and type in /usr/local/apache/passwd/wwwpasswd
- Access checking order: Allow then Deny
- Authentication type: Basic
Click Save twice, then click apply changes. You should now be prompted for a username and password to access the user portion of the trixbox.
Webmin is your friend.



Member Since:
2007-08-29