简体   繁体   English

路由问题,带有通过FusionPBX运行Debian Jessie的LAN和WAN端口的服务器

[英]Routing issue, server with LAN & WAN ports running Debian Jessie with FusionPBX

I am trying to wrap up a FusionPBX install on Jessie. 我正在尝试在Jessie上打包一个FusionPBX安装。 The network for this company is not what im used to. 这家公司的网络不是我以前习惯的。

The server has two Ethernet ports, one is LAN the other is WAN. 服务器有两个以太网端口,一个是LAN,另一个是WAN。 I am running iptables, fail2ban(both setup by the Fusion PBX script, however I have been trying my own iptables chains from the working server this will replace). 我正在运行iptables,fail2ban(均由Fusion PBX脚本设置,但是我一直在尝试从将要替换的工作服务器中使用自己的iptables链)。 The sever I am replacing is setup the exact same far as networking and iptables. 我要替换的服务器设置与网络和iptables完全相同。

On the new sever when I try to have my phones register to the new server they fail if my network config is like I have posted below. 在新服务器上,当我尝试将电话注册到新服务器时,如果我的网络配置如下所示,它们将失败。 They will register when I change the default gate way to 192.168.0.1 on eth0. 当我在eth0上将默认网关方式更改为192.168.0.1时,它们将注册。 However when that happens I get one way audio, since the calls come in the wan(eth1) and try to exit via eth0(default gateway). 但是,发生这种情况时,我会得到一种音频方式,因为呼叫来自wan(eth1),并尝试通过eth0(默认网关)退出。

When I change the default gateway to be on the WAN and use interface eth1 the calls have 2 way audio, but the phones will not register via the LAN. 当我将默认网关更改为WAN并使用接口eth1时,呼叫具有2路音频,但电话不会通过LAN注册。

I am used to servers typically having either a wan or a lan but not both. 我习惯于通常具有wan或lan而不同时具有两者的服务器。 Do I just need 2 default routes? 我是否只需要2条默认路线? Any insight would be a great big help. 任何见解都会有很大的帮助。

The primary network interface 主网络接口

allow-hotplug eth0
auto eth0
iface eth0 inet static

address 192.168.0.45
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
####gateway 192.168.0.1
dns-nameservers 192.168.0.1
dns-search mydomain.com

WAN interface 广域网接口

allow-hotplug eth1
auto eth1
iface eth1 inet static

address 172.217.3.174
netmask 255.255.255.252
network 172.217.3.172
broadcast 172.217.3.175  
gateway 172.217.3.173

Each SIP profile in FreeSWITCH binds to one IP address and port. FreeSWITCH中的每个SIP配置文件都绑定到一个IP地址和端口。 You need to control that, and probably you need multiple profiles, as you have two NICs. 您需要控制它,并且可能需要多个配置文件,因为您有两个NIC。 I don't know how it's controlled in Fusionpbx, but there should be settings about that. 我不知道如何在Fusionpbx中对其进行控制,但是应该对此进行设置。

如果要在服务器上注册多个接口,则需要在freeswitch中具有多个接口的多个配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM