Forum Discussion
Desai_124243
Oct 20, 2015Nimbostratus
Hi, I wanna allow only 4 TCP/UDP ports from Virtual. Is below IRULE correct for it?
rule allowing_tcp_udp_traffic_rl { when CLIENT_ACCEPTED { Check if requested port is allowing only TCP 443, TCP 80, UDP 4500 and UDP 500 if { ( [TCP::client_port] != 443 or [TCP::client_port] != 80 or [UDP::client_port] != 500 or [TCP::client_port] != 4500 ) } { Drop request drop } }
}