How to Get Trixbox Working Behind a NAT Firewall

In: General IT Info

17 Apr 2009

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

Comment Form

About this blog

This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.

Web Hosting Discount

    Get the first month for only $0.01 using coupon code HGCOUPONBLOG. No contracts, cancel anytime.

Revolutionary One Time Password Device

Add to Technorati Favorites