Forum Discussion
4 Replies
Sort By
- What_Lies_Bene1CirrostratusThere's two ways you can achieve this that I can think of;
- sandy16AltostratusThnx Steve,... what will be something equivalent of deny all, except 80, 8080?
- What_Lies_Bene1CirrostratusThis should do it;
when CLIENT_ACCEPTED { if { (! [TCP::local_port] == 80 || ! [TCP::local_port] == 8080 ) } { drop return } }
- nitassEmployeee.g.
if-clause [root@ve10:Active] config b rule myrule list rule myrule { when CLIENT_ACCEPTED { if { !([TCP::local_port] == 80) and !([TCP::local_port] == 8080) } { drop } } } switch [root@ve10:Active] config b rule myrule list rule myrule { when CLIENT_ACCEPTED { switch [TCP::local_port] { 80 - 8080 { } default { drop } } } }