How to Get Trixbox Working Behind a NAT Firewall

trixbox is a line of Asterisk-based IP-PBX products designed to meet the needs of companies from 2 to 500 employees. trixbox is available in a free open source Community Edition. If you are experimenting with trixbox at home, then you are probably in the situation where you have trixbox running on your home network which is behind a Firewall that uses NAT. Here is how to get your trixbox intall communicating outside of your home network:

  1. Be sure the LAN/Private address is statically assigned to the Trixbox server.
  2. Forward the following ports on your firewall to your Trixbox server IP:
    • UDP Port 5060 is for SIP communication.
    • UDP Port 5060-5082 range, SIP communications.
    • TCP Port 5060 is for SIP but thought to be rarely used.
    • UDP Port 10000 – 20000 is for RTP – the media stream, voice/video channel.
  3. You must also edit the sip_nat.conf file. Go to Trixbox home page, then select administrator mode. Select from PBX -> Config File Editor, click on sip_nat.conf and insert the following lines:
    • If you have a static external IP address:
      • Externip = your_external_ip_address
      • localnet = internal.network.address_of_your machine/255.255.255.0
    • If you have a dynanic IP external IP address, use a dynamic IP address hosting service like DynDNS.org:
      • externhost = home.mydomain.com
      • externrefresh = 5 (which means lookup hostname every 5 minutes to refresh ip adress)
      • localnet = internal.network.address_of_your machine/255.255.255.0

Then click on update and then “Re-Read Configs”. Or just restart the Trixbox machine.

trixbox_logo

How to Backup and Restore a MySQL Database Using mysqldump

How to Backup a MySQL Database With mysqldump

mysqldump -u userNameWithPrivileges -p databaseName > outputFileName.sql

How to Restore a mysqldump Backup

mysql -u userNameWithPrivileges -p database < outputFileName.sql

* Replace “userNameWithPrivileges” with the username of a MySQL account that can read/write to the database being backed up / restored.

MySQL logo

How to Reset the Admin Password in ColdFusion MX 6

  1. Locate the “neo-security.xml” file in the \lib\ subdirectory of your ColdFusion install
  2. Find the following line in the file
    <var name=’admin.security.enabled’><boolean value=’true’/></var>

    and change it to

    <var name=’admin.security.enabled’><boolean value=’false’/></var>
  3. Restart the ColdFusion Application Server service.
  4. Now you can log straight into the admin interface without being prompted for a password.
  5. Go to the change password screen for the admin interface and then set a new password. DO NOT CHECK THE BOX near the top labeled something like “Use password”. Just press the submit button after specifying a password.
  6. Now reedit the “neo-security.xml” file and change the variable back to “true”.
  7. Then restart the Coldfusion Application Server services again to put the changes into effect.
  8. You should not be able to log into the admin interface with the new password that you set.

ColdFusion

How to Enable ReadyBoost for an ExpressCard SSD in Vista

Sometimes after inserting a new SSD ExpressCard device into your Vista computer for the first time you may see the following message under the device’s “ReadyBoost” tab: “Device interface is not supported”. Do the following to enable ReadyBoost for the device (assuming the device is ReadyBoost compatible):

  1. Start up the “Disk Management” manager under: Right-click over Computer in the Start menu->Manage->Storage->Disk Management
  2. Find the SSD device and right-click over it to bring up its properties
  3. Select the Policies tab
  4. Choose the option “Optimize for performance”
  5. Drive will remount and ReadyBoost should now be enabled for the device

Note: You can change the policy back to the default of “Optimize for quick removal” and the ReadyBoost option will still be enabled for the device. So the fact that you have to initially change the policy for the device just to enable ReadyBoost is probably a bug. This behavior was observed on an HP Pavilion DV6871US notebook computer with an 8GB Lexar ExpressCard SSD.

Lexar 8GB SSD