NAT iptables 后面的 SIP 电话

NAT iptables 后面的 SIP 电话

我的局域网上有一部 SIP 电话。外拨电话可以接通,但来电不可以。

当我用手机拨打 SIP 电话时,会直接进入语音信箱。

这是我的网络

Phone --------------- eth1.100|iptables NAT (Debian buster)|eth0.100 ----- Public PBX
10.11.12.13/24      10.11.12.1/24                      xxx.xxx.xxx.xxx    yyy.yyy.yyy.yyy

实际上我有这个 iptables 规则:

# Internet acces for SIP phone
iptables -A INPUT -i eth0.100 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth1.100 -j ACCEPT
iptables -A POSTROUTING -t nat -o eth0.100 -j MASQUERADE
iptables -A FORWARD -i eth0.100 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1.100 -j ACCEPT
# Open SIP port
iptables -A PREROUTING -t nat -i eth0.100 -p udp --src yyy.yyy.yyy.yyy --dport 5060 -j DNAT --to-destination 10.11.12.13:5060

我认为缺少了一些东西,也许禁用源端口重写?

您有用于该目的的 iptables 命令吗?

相关内容