GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sqproxy/source_query_proxy/ebpf_template.py at master · sqproxy/sqproxy Expand file tree/ Copy pathebpf_template.pyMore file actions 35 lines (24 loc) · 992 Bytes / Copy pathebpf_template.pyFile metadata and controls35 lines (24 loc) · 992 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 """ Пришел пакет IP не в белом списке - DROP Белый список - список подключенных клиентов <action start> if пакет == qconnect: bpf_tail_call(prog_array, qconnect_prog_index); return TC_ACT_SHOT; // сюда никогда не дойдем <action end> <action start> if пакет == A2S: bpf_tail_call(prog_array, a2s_prog_index); return TC_ACT_SHOT; // сюда никогда не дойдем <action end> return TC_ACT_SHOT; // по умолчанию отбрасываем пакет ---- - У каждого сервереа (порта) своя программа защиты - Защищаемые порты храним в BPF_HASH: port -> prog_index - Далее BPF_PROG_ARRAY: prog_index -> prog_fd (bpf_tail_call) - Т - qconnect - добавляем в белый список - a2s (not whitelist) - ratelimit (IP ratelimit exceed - ban) - a2s (whitelist) - pass """ |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |