Layer 7
-
I would like to block some extençõe in layer 7 discovered that I can create a file inside: (/ usr / local / share / protocols / swf.pat) and make it
to limit or block flash he put it into the file:
swf
swf \ x21 \ x1a \ x07did not work so well because I found that youtube uses these encodings: Mp4, AAC-LC, H.264 and would also block these extensions: (avi|mpg|mpeg|mpe|m1v|m2v|mpv2|mp2v|pva|evo|m2p|ts|tp|trp|m2t|m2ts|mts|rec|vob|ifo|mkv|webm|mp4|m4v|mp4v|mpv4|hdmov|mov|3gp|3gpp|swf|3ga|3g2|3gp2|flv|f4v|ogm|ogv|rm|ram|rt|rp|rmm|wmv|wmp|wm|asf|smk|bik|fli|flc|flic|dsm|dsv|dsa|dss|ivf|d2v|divx|rmvb|amv|ac3|dts|aif|aifc|aiff|alac|amr|ape|apl|au|snd|cda|flac|m4a|m4b|m4r|aac|mid|midi|rmi|mka|mp3|mpa|mp2|m1a|m2a|mpc|ofr|ofs|ogg|oga|opus|ra|tak|tta|wav|wma|wv|aob|mlp|asx|m3u|m3u8|pls|wvx|wax|wmx|mpcpl|mpls|bdmv|vbr|wmv8|psp|mpg1|mpg2|mpeg-4|mpeg4|)
but did not understand the logic of these numbers below the extension "swf \ x21 \ x1a \ x07" read something on the websites down, but as know nothing about programming is there any other easier way to do this in Layer7, or someone who to help me?
https://forum.pfsense.org/index.php?topic=62863.0
https://forum.pfsense.org/index.php?topic=48832.0
http://l7-filter.sourceforge.net/Pattern-HOWTO
http://translate.googleusercontent.com/translate_c?depth=1&hl=pt-BR&prev=/search%3Fq%3Dpfsense%2B.pat%26espv%3D2%26biw%3D1024%26bih%3D653&rurl=translate.google.com.br&sl=en&u=http://l7-filter.sourceforge.net/V8regex&usg=ALkJrhhv74Q_RoIXEIqkXCNi57yKJsEaCA
http://translate.googleusercontent.com/translate_c?depth=1&hl=pt-BR&prev=/search%3Fq%3Dpfsense%2B.pat%26espv%3D2%26biw%3D1024%26bih%3D653&rurl=translate.google.com.br&sl=en&u=http://l7-filter.sourceforge.net/Pattern-HOWTO&usg=ALkJrhi0R7Nlz_bJFmh-Ez9pj-7pGo89Lg#format
http://l7-filter.sourceforge.net/protocols