查看“FreePBX 12 中的NAT 设置”的源代码
←
FreePBX 12 中的NAT 设置
跳转至:
导航
、
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:用户
您可以查看并复制此页面的源代码:
'''NAT Configuration FreePBX 12''' '''NAT issues''' Some of the biggest problems that plague people such as "one way audio" or "Calls dropping after XX Seconds" are caused by NAT not being correctly setup. '''Make sure you have a resolvable address on the Internet.''' If you don't want to pay a few bucks to get a static IP address, and are served by an ISP that periodically changes your IP address, then get an account with a dynamic DNS service such as [http://www.dyndns.com/services/dns/dyndns/ DynDNS] . Your router may already have built-in support for one or more of these services, if so, use one that your router supports and then configure your router to automatically update your dynamic address when your ISP changes your IP address. Failing that, you can set up an updater program such as inadyn, there are instructions for doing that at [http://michigantelephone.wordpress.com/2006/06/23/a-quick-way-for-freepbxelastixtrixbox-users-to-auto-update-dyndns-maybe/ this blog page] '''Adding NAT information in FreePBX ''' All of your settings will be under Settings > Asterisk SIP settings http://wiki.freepbx.org/download/attachments/24051965/SipRightMenu.png Next Click Chan SIP in the right menu [[image:Picture 2|165x73px|C:\aef3702e49caad622478b08b9c1f3e09]] VERSION SPECIFIC This right menu is specific to FreePBX 12. In 2.11 all settings are on the main page Set NAT as yes '''Static IP from your ISP ''' Select "Static IP" and enter your external IP http://wiki.freepbx.org/download/attachments/24051965/settings_nat_static.png '''Dynamic IP Updated through dynamic IP service''' Select "Dynamic IP" and put the Full host name in such as "<nowiki>foo.dyndns.net</nowiki>" http://wiki.freepbx.org/download/attachments/24051965/settings_nat_dynamic.png REMEMBER Icon Whenever you make a change in the UI you need to "submit" the changes then click "APPLY" at the top After clicking "submit changes" and the Red Apply click "General SIP Settings" on the right menu [[image:Picture 5|165x73px|C:\aef3702e49caad622478b08b9c1f3e09]] '''Local Networks''' Under "NAT" you will see a box for "Local Networks" In these boxes you will put your LAN information with the IP in the first box and the SUBNET in the second box If your IP is 192.168.0.254 you would put 192.168.0.0 / 255.255.255.0 http://wiki.freepbx.org/download/attachments/24051965/settings_nat_localnet.png Click "Submit changes" And the red "APPLY" button. '''RTP Port Range''' '''Open the SIP and RTP ports to your Asterisk server''' You must make sure that you open the correct UDP ports in your router's firewall and pointed at your Asterisk server. For SIP protocol, open UDP (NOT TCP) port 5060 (SIP) AND ports 10000-20000 (RTP, which must also be defined in /etc/asterisk<nowiki>/rtp.co</nowiki>nf, see below). All these ports are UDP, opening the TCP ports will NOT help anything and may expose your system needlessly. While you are in your firewall configuration, you may as well also open UDP port 4569 (IAX), since sooner or later you'll probably want to accept IAX connections. You can see the actual range under the "General SIP Settings" page. http://wiki.freepbx.org/download/attachments/24051965/RTPSettings.png If the port values are any different, change them. These MUST match what you opened in your firewall Warning Icon You may need to set this to start with 10001, as port 10000, conflicts with usage in Webmin. This only matters if you have installed Webmin Some people feel the need to open fewer than 10,000 ports. I don't recommend this because six months from now when you start having audio problems you may not remember that you opened fewer than the recommended number of ports, and may spend hours troubleshooting the issue. But if you are simply obsessive about open ports, remember that each open SIP connection may require as many as FOUR concurrent ports, so don't cut it down to some ridiculously small number. For the non-paranoid, I suggest sticking with the recommendations above (and remember, if a hacker is looking at ports on your system, he's going to scan ALL of them, so having fewer UDP ports open really doesn't make you any more secure).
返回至
FreePBX 12 中的NAT 设置
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
合作伙伴
FreePBX官方
IPPBX软硬件
SIP 终端话机
SBC
语音网关,Sangoma语音板卡
工具
链入页面
相关更改
特殊页面
页面信息