Forum Discussion
Michael_C_16907
Nimbostratus
Jan 30, 2010simple iRule problem
I'm new in writing an iRule, and I need to write a simple iRule to direct my outbound traffic into 3 different pools. But after I write this iRule, it stops all my traffic. What is the problem with this?
I need my TCP services SMTP(port25), POP3(port110), LLTP(port1723) and L2TP(port1701) traffic goes through my pool 1.
users with 118.143.13.0/24 to my pool 2.
and 203.186.55.0/24 to my pool 3.
when CLIENT_ACCEPTED {
if{([TCP::port[TCP::client_port] equals 25]) or ([TCP::port[TCP::client_port] equals 110]) or ([TCP::port[TCP::client_port] equals 1723]) or ([TCP::port[TCP::client_port] equals 1701])}{
use pool 1
}elseif{[IP::addr [IP::client_addr] equals 118.143.13.0/24]}{
use pool 2
}elseif{[IP::addr [IP::client_addr] equals 203.186.55.0/24]}{
use pool 3
}
}
Thanks
4 Replies
- Hamish
Cirrocumulus
If it stops all traffic, it's probably a TCL error. What do your logs say? - Michael_C_16907
Nimbostratus
I actually need all those 4 ports services to go out via pool1, so I guess I need it to be on the of the rule - Michael_C_16907
Nimbostratus
Thanks, I have made those changes abt the TCP port codes. - hoolio
Cirrostratus
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