Forum Discussion
1 Reply
Sort By
- PeteWhiteEmployee
Hi, just to be clear you will need to create a VS with a single host and any port. Then add the iRule to control the connections to specific ports.
To be clear, your iRule is not correct partly because it checks whether the TCP::local_port is two different numbers, which it can't be.
This rule below also uses the switch statement which is more scalable than using if statements.
when CLIENT_ACCEPTED { switch [TCP::local_port] { 799 { pool Test_pool } 8914 { pool Test_pool } 3000 { pool Test_pool } 3050 { pool Test_pool } default { reject } } }