Skip to main content
BenJ
New Member
April 23, 2018
Question

Yet another VIP thread

  • April 23, 2018
  • 8 replies
  • 8488 views

I have a 50-E running 5.4.4. It is currently configured and working fine. I have a second 50-E at another building that is also working and an IPsec tunnel exists between the two.

 

I am coming from Junipers, so I feel somewhat comfortable but am running into difficulty w/ VIPs. In fact I just deployed these 50Es to replace a Juniper 208 and 5gt. The VIP service on the Junipers worked without issue.

 

I am attempting to allow outside remote access directly to some DVR systems.

 

I have 5 public IPs attached to wan1 from the ISP box. 

 

Public IP of the wan1 is set to x.x.x.176

VIP I am configuring is x.x.x.168

 

I have configured custom services and grouped them for this task. I will be speaking specifically of just one as whatever the issue is will be resolved once that connects.

 

DVR1 service > TCP protocol. 10.0.0.150 internal IP. TCP Range: dest 0-65535 src 5000

VIP for DVR > external range x.x.x.168 to x.x.x.168. Mapped address is 10.0.0.1 NAT disabled. prt forwarding TCP external 5000 and mapped 5000.

Policy is: wan to lan. src all. destination address is the vip group. service is all the DVR services. This is the only wan to lan policy so nothing above it to create havoc.

 

I am able to connect directly to the DVRs on the internal so they are functioning fine.

 

I'm at a loss. Any help would be very appreciated.

 

8 replies

EMES
New Member
April 23, 2018

Hi,

 

Try removing the IP from the service, it looks like your src and dst service ports are backwards. it should be reversed. from any source port to destination port 5000. Also remove port forwarding from your VIP and let the security policy(and service) dictate what ports are allowed in.

 

Hope that helps

EMES
New Member
April 23, 2018

If that doesnt work then can you show us the CLI config for you have.

 

config firewall service custom

edit xxx

show

end

config firewall vip

edit xxx

show

end

config firewall policy

edit xx

show

end

 

put the name or number each entry where the x's are. Replace any sensitive information as needed.

 

BenJ
BenJAuthor
New Member
April 23, 2018

Eugene.milon wrote:

If that doesnt work then can you show us the CLI config for you have.

 

config firewall service custom

edit xxx

show

end

config firewall vip

edit xxx

show

end

config firewall policy

edit xx

show

end

 

put the name or number each entry where the x's are. Replace any sensitive information as needed.

 

I have verified that the other public addresses are routing as they should. That would've been easier to blame it on the ISP, but at least it's ruled out. 

 

CLI config

The two custom services:

--More-- edit "DVR1 Server"
--More-- set category "Camera Systems"
--More-- set iprange 10.0.0.150
--More-- set tcp-portrange 0-65535:5000 0-65535:100
--More-- next
--More-- edit "DVR2 Server"
--More-- set category "Camera Systems"
--More-- set iprange 10.0.0.151
--More-- set tcp-portrange 0-65535:5001 0-65535:100
--More-- next
--More-- end

VIPs

edit "DVR1 Server"
 set uuid xxxx
 set extip x.x.x.168
 set extintf "wan1"
 set portforward enable
 set mappedip "10.0.0.150"
 set extport 5000
 set mappedport 5000
 next
 edit "DVR2 Server"
 set uuid xxxx
 set extip x.x.x.168
 set extintf "wan1"
 set portforward enable
 set mappedip "10.0.0.1"
 set extport 5001
 set mappedport 5001

 

Policy

wan:

 set name "internet"
 set uuid xxxx
 set srcintf "lan"
 set dstintf "wan1"
 set srcaddr "all"
 set dstaddr "all"
 set action accept
 set schedule "always"
 set service "ALL"
 set nat enable

DVR

--More-- set name "DVR access"
--More-- set uuid xxxx
--More-- set srcintf "wan1"
--More-- set dstintf "lan"
--More-- set srcaddr "all"
--More-- set dstaddr "DVRs"
--More-- set action accept
--More-- set schedule "always"
--More-- set service "DVR1 Server" "DVR2 Server"
--More-- set logtraffic all

I have other policies related to the tunnel and wifi and such but shouldn't be relevant here.

 

Thanks again for the help. I will continue at this but will call support if need be.

kurtli_FTNT
Staff
Staff
April 23, 2018

Hi there,

   What capture tells if run 'diag sniffer packet any 'host VIP or mappedIP' 4'?  Below debug commands are also helpful.

 

diag debug flow filter dport 5000

diag debug flow trace start 10

 

 

Regards