Forum Discussion

Petruk_Cemeng_7's avatar
Petruk_Cemeng_7
Icon for Nimbostratus rankNimbostratus
Oct 10, 2012

How to Blocking ULtrasurf?

Hi All,

 

Is there any irule or configuration on F5 for blocking ultrasurf? I try to use ip intelegence irule on LTM,it did not work because the destination ip address is not registered as bad reputation ip address. I have checked the ip using iprep_lookup or on brigcloud webroot web.

 

I have also write irule to block on traffic client ssl hello traffic, but i dont know why ultrasurf is still work. Below is the irule

 

when CLIENT_ACCEPTED {

 

if { [class match [IP::local_addr] equals block_ip_ultrasurf ] } {

 

log local0. "block ip = [IP::local_addr]"

 

drop

 

} elseif {[TCP::local_port] == 443} {

 

TCP::collect 11

 

}

 

 

 

}

 

 

when CLIENT_DATA {

 

binary scan [TCP::payload 11] H22 payload_hex

 

if {$payload_hex == "804c010300003300000010" } {

 

log local0. "binary print = $payload_hex"

 

drop

 

}

 

 

TCP::release

 

TCP::collect

 

}

 

is there any idea?

 

 

Thanks n Regads

 

- petruk

 

 

20 Replies