Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
RichardH
New Contributor

Custom Service and VIP (FTP using TLS - port 990)

My firewall isn' t allowing me to pass custom service' s to my VIP policies. FortiGate 110C v4.0,build0185,091020 (MR1 Patch 1) Service FTPS - TCP Port 990:990 -> 990:990 Virtual IP VIP : VIP_TEST WAN IP : 111.222.333.444 Internal : 4.3.2.1 No port ranges, no port forwards. Firewall WAN : ALL -> Internal : VIP_TEST Service : FTPS (port 990) Nat - No I try and connect, I get nothing. If I change the service to 21 and allow non-TLS connections, it works. If I set port 990 as port forward on the VIP, it works. This isn' t a solution, I have a few services this computer will be providing and need to provide many custom ports...
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
10 REPLIES 10
rwpatterson
Valued Contributor III

Is the service built in, or is it one you created? If the latter, did you set the source range to 1024-65535? The source isn' t the same port every time.

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
RichardH
New Contributor

I set the source port to 990 - 990 The service is static, for TLS connection is listens on port 990 (SSL Certificate)
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
rwpatterson
Valued Contributor III

ORIGINAL: RichardH The service is static, for TLS connection is listens on port 990 (SSL Certificate)
Listening indicates the destination port. The source port would be the ' yelling' side...

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
RichardH
New Contributor

Here' s the Service I created
 config firewall service custom
     edit " FTPS" 
         set protocol TCP/UDP
         set tcp-portrange 990-990:990-990 
     next
 end
 
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
RichardH
New Contributor

Firewall Rule
     edit 20
         set srcintf " wan2" 
         set dstintf " any" 
             set srcaddr " all"              
             set dstaddr " VIP_MIS_RICH_TEST"              
         set action accept
         set schedule " always" 
             set service " FTPS"              
     next
 
 
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
RichardH
New Contributor

rwpatterson, after repeating yourself, I think I understand... I set the source to 1024 and 65536 and the service is working. Thanks!
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
-Richard FGT110Cx2 HA A-P - 4.2.11 FGT 80C,60B,50B x 3,FWF50B - 4.2.11 FGT50B - 4.3.3 FGT40C x 2 - 4.3.7 FAMS
rwpatterson
Valued Contributor III

Any time! FYI, take a look at the traffic monitor, and filter on destination port 990. You' ll see what I mean.

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
dudarra

hey guys,

i have one question about FTPS....

 

for the destination port i choose --> 990

for the source port i choose --> 1024-65535

 

is this correct?

 

cheers raffa

thanks in advanced Rafael

thanks in advanced Rafael
Nils
Contributor II

raffau wrote:

hey guys,

i have one question about FTPS....

 

for the destination port i choose --> 990

for the source port i choose --> 1024-65535

 

is this correct?

 

cheers raffa

Thats correct, you dont have to choose a source-port if you don't care about it.

 

 

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors