Forum Discussion
mohamed_80579
Nimbostratus
Feb 19, 2013Irule for IP forwarding based on remote port
I Need the virtual server 0.0.0.0/0 with IP fowarding as virtual Type. Now the traffic is initiated from server to internet gateway device via F5 LTM and response is fine.
Now i need to create ...
Kevin_Stewart
Employee
Feb 19, 2013To allow just SMTP, DNS, and TLS, you can use the above data group method (preferred for complex filtering) or this simple iRule:
when CLIENT_ACCEPTED {
if { not ( [TCP::local_port] eq "53" or [TCP::local_port] eq "443" or [TCP::local_port] eq "25" ) } {
drop
}
}
If you literally meant "DNS UDP", then you could expand the evaluation like this:
not ( ( [TCP::local_port] eq "53" and [IP::protocol] eq "17" ) or [TCP::local_port] eq "443" or [TCP::local_port] eq "25" )
and if you literally meant "TLS" versus SSL, you could add something like the following:
not ( ( [TCP::local_port] eq "53" and [IP::protocol] eq "17" ) or ( [TCP::local_port] eq "443" and [SSL::cipher version] eq "TLSv1" ) or [TCP::local_port] eq "25" )
You should also be able to configure BIG-IP packet filters rules to accommodate your needs.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects