Forum Discussion
Ariel_Zeitlin_1
Nimbostratus
Jan 19, 2015Redirect unallowed traffic
In my network I would like to have a way to redirect traffic that is not allowed by policy into some logging network or honeynet instead of just blocking it.
Can I do that with the f5 firewall product? I could not find any action such as "redirect" only "accept/drop/reject".
6 Replies
- Brad_Parker
Cirrus
What kind of traffic are we talking about? Also, what do you mean by redirect? HTTP redirect or send the packets to a dummy device? - Ariel_Zeitlin_1
Nimbostratus
Hi, Brad, I am talking about any TCP traffic and I want the packets to be sent to to a dummy device. For instance, if machine A is accessing machine B on SSH port that is "denied" by F5 firewall, I would like it to be redirected to a Honeypot (say by DNAT) and the Honeypot would investigate why someone tried to violate explicit policy. - StephanManthey
Nacreous
Hi Ariel,
I would simply use an iRule:when CLIENT_ACCEPTED { check client source IP and target IP / target service and forward to honeypot if {([IP::client_addr] eq "10.131.131.171") && ([IP::local_addr] eq "10.131.131.100") && ([TCP::local_port] eq "22")} { node 10.131.131.111 } }And sorry for answering a bit off-topic.
I do not have AFM ready-to-run. But I assume it has the ability to assign a pool depending on policy match. The pool would contain the honeypot servers (configured to port "0", so no port translation applied). Thanks, Stephan - InnO
Nimbostratus
I think you then would need to have your VIP listen to all ports (0), and then filter the ones allowed through an irule. Probably a switch or a if condition to select different destination pools would make it. - InnO
Nimbostratus
Seems Stephan gave the answer below before I had to read it :) - Ariel_Zeitlin_1
Nimbostratus
Hi, actually I could not understand how in the 'when CLIENT_ACCEPTED' context can I know if this specific connection is allowed through the AFM. Also if some connection is not allowed (dropped) by AFM is it even processed through the 'when CLIENT_ACCEPTED' clause - I mean what comes first? Sorry for asking questions one can actually try in the lab - I do not have an LTM or AFM modules with me, we are trying to solve an issue for a client. Thanks.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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