cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post

Firewall rule for any tcp and udp port

Jump to solution

How can  we create a service for Any tcp and UDP ports.

Port should be-  Any 

And protocol should be - TCP and UDP ?? 

 

0 Kudos
1 Solution

Accepted Solutions

Re: Firewall rule for any tcp and udp port

Jump to solution

Hi @Chauhanrht8 

Creat two new services with a port range from 1 to 65535 for udp service and tcp service.

Set no protocol in protocol field and  don't use ‚match for any‘.

Now add this two new services to your rule.

TCP_ANY:

Port: 1-65535

Match for any: no

Protocol: none

UDP_ANY:

Port: 1-65535

Match for any: no

Protocol: none

View solution in original post

Tags (1)
6 Replies
Maik
Silver

Re: Firewall rule for any tcp and udp port

Jump to solution

Not sure why you would want to do this, but create a group and insert a tcp and udp object.

Each object respectively contains the port range of 1-65535 or just "any" and you are good to go.

0 Kudos
Danny
Pearl

Re: Firewall rule for any tcp and udp port

Jump to solution

* Any also matches for applications and not just TCP/UDP ports as requested.

Therefore just create a new tcp_any and udp_any object  >0, uncheck Match for Any and use these in your rule.

Example:

image.png

How To Describe "Any Application"

Matching unknown traffic

 

0 Kudos
Maik
Silver

Re: Firewall rule for any tcp and udp port

Jump to solution

Hey,

I was not writing about "any" in the typical way of "any" in the service column. With any I meant to write "any" in the TCP or UDP objects itself. "Any" or 1-65535 should end up with the same functionality, doesn't it?

0 Kudos
-TJ-
Iron

Re: Firewall rule for any tcp and udp port

Jump to solution

You may want to be sure to uncheck the 'match for any' in the service properties.   I expect you will receive the warning that service objects may inherit that change.

See sk150553 for an example.

The idea sort of negates having a firewall though.   I assume you likely have a good reason.

Tags (1)
0 Kudos

Re: Firewall rule for any tcp and udp port

Jump to solution

Hi @Chauhanrht8 

Creat two new services with a port range from 1 to 65535 for udp service and tcp service.

Set no protocol in protocol field and  don't use ‚match for any‘.

Now add this two new services to your rule.

TCP_ANY:

Port: 1-65535

Match for any: no

Protocol: none

UDP_ANY:

Port: 1-65535

Match for any: no

Protocol: none

View solution in original post

Tags (1)
Highlighted

Re: Firewall rule for any tcp and udp port

Jump to solution
Hello @HeikoAnken,
Thanks for the information.
0 Kudos