Forum Discussion
3 Replies
Sort By
- Lee_SutcliffeNacreous
You have a missing close parenthesis after 'else'. You will also need to make sure you VIP listens on all ports too. Other than that your iRule looks ok
when CLIENT_ACCEPTED { if {([TCP::local_port] >= 23001) && ([TCP::local_port] <= 23005)} { node 10.1.1.1 } else { reject } }
- Bruce_MorrisNimbostratus
Hi Lee, thanks for the reply. I have the Virtual Server configured as suggested, but it is still rejecting valid connections, any thoughts?
Thanks,
Bruce
- Lee_SutcliffeNacreous
Try adding some logging, you'll find the log entries in /var/log/ltm:
when CLIENT_ACCEPTED { log local0. "recevied request from [TCP::local_port]" if {([TCP::local_port] >= 23001) && ([TCP::local_port] <= 23005)} { log local0. "forwarding to node" node 10.1.1.1 } else { log local0. "rejecting request from [TCP::local_port]" reject } }