JuniperForum.com

Security => NetScreen and SSG/ISG Series Firewalls => Topic started by: manwong on December 08, 2017, 09:14:23 am

Title: 5gt elastix sip
Post by: manwong on December 08, 2017, 09:14:23 am
Hi everybody

We are configuring Juniper Netscreen 5GT to allow VoIP traffic via elastix PBX

The elastix PBX has local address 192.168.1.8, which I associated with its external IP, a.b.c.d by way of a VIP, on the Juniper.


Diagram

Mobile (a.a.a.a) --- INTERNET --- (a.b.c.d)WAN--5gt--LAN(192.168.1.1/24) ---INTERNAL--- A.) Elastix PBX (192.168.1.8), B.) LinkSys IP Phone (192.168.1.101)



Mobile (a.a.a.a) -- extension (123)
LinkSys IP phone -- extension (456)



Before replace netscreen 5gt

both extension register the elastix PBX successfully.
extension (123) call --> extension (456), ring ok, connect ok, both-way audio ok
extension (456) call --> extension (123), ring ok, connect ok, both-way audio ok


After replace netscreen 5gt
both extension register the elastix PBX successfully.
extension (123) call --> extension (456), ring ok, connect ok, both-way NO audio
extension (456) call --> extension (123), ring ok, connect ok, both-way NO audio
and
drop / disconnect call after 30 - 33 second.



Conf shown below:


unset key protection enable
set clock timezone 8
set clock dst recurring start-weekday 2 0 3 02:00 end-weekday 1 0 11 02:00
set vrouter trust-vr sharable
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset auto-route-export
exit
set service "_TOMCAT" protocol tcp src-port 0-65535 dst-port 8080-8080
set service "_SIP" protocol tcp src-port 0-65535 dst-port 5060-5060
set service "_SIP" + udp src-port 0-65535 dst-port 5060-5060
set service "_SIP" + udp src-port 0-65535 dst-port 10000-10030
set service "_SIPS" protocol tcp src-port 0-65535 dst-port 5061-5061
unset alg sip enable
set alg appleichat enable
unset alg appleichat re-assembly enable
set alg sctp enable
set auth-server "Local" id 0
set auth-server "Local" server-name "Local"
set auth default auth server "Local"
set auth radius accounting port 1646
set admin name "netscreen"
set admin password "nKVUM2rwMUzPcrkG5sWIHdCtqkAibn"
set admin auth web timeout 10
set admin auth server "Local"
set admin format dos
set vip multi-port
set zone "Trust" vrouter "trust-vr"
set zone "Untrust" vrouter "trust-vr"
set zone "VLAN" vrouter "trust-vr"
set zone "Untrust-Tun" vrouter "trust-vr"
set zone "Trust" tcp-rst
set zone "Untrust" block
unset zone "Untrust" tcp-rst
set zone "MGT" block
unset zone "V1-Trust" tcp-rst
unset zone "V1-Untrust" tcp-rst
unset zone "VLAN" tcp-rst
set zone "Untrust" screen tear-drop
set zone "Untrust" screen syn-flood
set zone "Untrust" screen ping-death
set zone "Untrust" screen ip-filter-src
set zone "Untrust" screen land
set zone "V1-Untrust" screen tear-drop
set zone "V1-Untrust" screen syn-flood
set zone "V1-Untrust" screen ping-death
set zone "V1-Untrust" screen ip-filter-src
set zone "V1-Untrust" screen land
set interface "trust" zone "Trust"
set interface "untrust" zone "Untrust"
unset interface vlan1 ip
set interface trust ip 192.168.1.1/24
set interface trust nat
set interface untrust ip a.b.c.d/30
set interface untrust route
set interface untrust gateway a.b.c.e
unset interface vlan1 bypass-others-ipsec
unset interface vlan1 bypass-non-ip
set interface trust ip manageable
unset interface untrust ip manageable
set interface untrust vip interface-ip 8080 "_TOMCAT" 192.168.1.60
set interface untrust vip interface-ip 5060 "_SIP" 192.168.1.8
set interface untrust vip interface-ip 5061 "_SIPS" 192.168.1.8
set interface trust dhcp server service
set interface trust dhcp server auto
set interface trust dhcp server option gateway 192.168.1.1
set interface trust dhcp server option netmask 255.255.255.0
set interface trust dhcp server ip 192.168.1.20 to 192.168.1.50
unset interface trust dhcp server config next-server-ip
set flow tcp-mss
unset flow no-tcp-seq-check
set flow tcp-syn-check
unset flow tcp-syn-bit-check
set flow reverse-route clear-text prefer
set flow reverse-route tunnel always
set hostname 090909
set dbuf usb filesize 0
set pki authority default scep mode "auto"
set pki x509 default cert-path partial
set dns host dns1 a.b.c.f src-interface untrust
set address "Trust" "192.168.1.8/32" 192.168.1.8 255.255.255.255
set crypto-policy
exit
set ike respond-bad-spi 1
set ike ikev2 ike-sa-soft-lifetime 60
unset ike ikeid-enumeration
unset ike dos-protection
unset ipsec access-session enable
set ipsec access-session maximum 5000
set ipsec access-session upper-threshold 0
set ipsec access-session lower-threshold 0
set ipsec access-session dead-p2-sa-timeout 0
unset ipsec access-session log-error
unset ipsec access-session info-exch-connected
unset ipsec access-session use-error-log
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
exit
set url protocol websense
exit
set policy id 5 from "Trust" to "Untrust"  "192.168.1.8/32" "Any" "ANY" permit log
set policy id 5
set log session-init
exit
set policy id 1 from "Trust" to "Untrust"  "Any" "Any" "ANY" permit
set policy id 1
exit
set policy id 2 from "Untrust" to "Trust"  "Any" "VIP(untrust)" "_TOMCAT" permit
set policy id 2
exit
set policy id 3 from "Untrust" to "Trust"  "Any" "VIP(untrust)" "_SIP" permit log
set policy id 3
set log session-init
exit
set policy id 4 from "Untrust" to "Trust"  "Any" "VIP(untrust)" "_SIPS" permit log
set policy id 4
set log session-init
exit
set nsmgmt bulkcli reboot-timeout 60
set ssh version v2
set config lock timeout 5
unset license-key auto-update
set telnet client enable
set modem speed 115200
set modem retry 3
set modem interval 10
set modem idle-time 10
set snmp port listen 161
set snmp port trap 162
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset add-default-route
exit
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
exit




Please Help.