Помогите разобраться с проблемой
Добавлено: Ср ноя 06, 2013 22:03
По инструкциям сайта установил и настроил rejik на Ubuntu 13.10 desktop i386.
В redirector.conf прописал одно единственное правило для блокировки порно контента.
Страница замены доступна.
Squid запущен и работает.
Редиректор прописан в squid.conf
Однако сайты открываются, никакой замены не происходит. Прошу помочь разобраться с проблемой и сильно не пинать, так как только начинаю разбираться с программой. Заранее спасибо.
Прикрепляю (если для решения проблемы нужна ещё какая либо информация, скажите какая) :
./check-redirector
redirector.err
redirector.log
Лог работы сквид
access_log пустой
В redirector.conf прописал одно единственное правило для блокировки порно контента.
Код: Выделить всё
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno
url http://127.0.0.1/porno.html
Squid запущен и работает.
Редиректор прописан в squid.conf
Код: Выделить всё
redirect_program /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf
Прикрепляю (если для решения проблемы нужна ещё какая либо информация, скажите какая) :
./check-redirector
Код: Выделить всё
root@Sahib:/usr/local/rejik3/tools# ./check-redirector
http://127.0.0.1/porno.html 127.0.0.1/- - GET
Код: Выделить всё
2013-11-06 10:17:12 [4491] Run make-cache (3.2.11)
2013-11-06 10:17:12 [4491] Make-cache finished
2013-11-06 10:17:12 [4491] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 10:17:12 [4491] Redirector start and working (3.2.11)
2013-11-06 10:24:00 [2888] Run make-cache (3.2.11)
2013-11-06 10:24:00 [2888] Make-cache finished
2013-11-06 10:24:00 [2888] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 10:24:00 [2888] Redirector start and working (3.2.11)
2013-11-06 10:24:17 [2907] Run make-cache (3.2.11)
2013-11-06 10:24:17 [2907] Make-cache finished
2013-11-06 10:24:17 [2907] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 10:24:17 [2907] Redirector start and working (3.2.11)
2013-11-06 10:25:54 [2933] Run make-cache (3.2.11)
2013-11-06 10:25:54 [2933] Make-cache finished
2013-11-06 10:25:54 [2933] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 10:25:54 [2933] Redirector start and working (3.2.11)
2013-11-06 10:38:22 [3589] Run make-cache (3.2.11)
2013-11-06 10:38:22 [3589] Make-cache finished
2013-11-06 10:38:22 [3589] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 10:38:22 [3589] Redirector start and working (3.2.11)
2013-11-06 10:48:02 [3948] Run make-cache (3.2.11)
2013-11-06 10:48:02 [3948] Make-cache finished
2013-11-06 10:48:02 [3948] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 10:48:02 [3948] Redirector start and working (3.2.11)
2013-11-06 19:18:03 [4413] Run make-cache (3.2.11)
2013-11-06 19:18:03 [4413] Make-cache finished
2013-11-06 19:18:03 [4413] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 19:18:03 [4413] Redirector start and working (3.2.11)
2013-11-06 19:47:32 [5016] Run make-cache (3.2.11)
2013-11-06 19:47:32 [5016] Make-cache finished
2013-11-06 19:47:32 [5016] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 19:47:32 [5016] Redirector start and working (3.2.11)
2013-11-06 19:51:29 [5189] Run make-cache (3.2.11)
2013-11-06 19:51:29 [5189] Make-cache finished
2013-11-06 19:51:29 [5189] Load 330591 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-11-06 19:51:29 [5189] Redirector start and working (3.2.11)
Код: Выделить всё
2013-11-06 10:17:12 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 10:24:00 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 10:24:17 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 10:25:54 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 10:38:22 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 19:18:03 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 19:47:32 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
2013-11-06 19:51:29 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
Код: Выделить всё
2013/11/06 18:58:06| Starting Squid Cache version 3.3.8 for i686-pc-linux-gnu...
2013/11/06 18:58:07| Process ID 1015
2013/11/06 18:58:07| Process Roles: master worker
2013/11/06 18:58:07| With 65536 file descriptors available
2013/11/06 18:58:07| Initializing IP Cache...
2013/11/06 18:58:07| DNS Socket created at [::], FD 5
2013/11/06 18:58:07| DNS Socket created at 0.0.0.0, FD 6
2013/11/06 18:58:07| Warning: Could not find any nameservers. Trying to use localhost
2013/11/06 18:58:07| Please check your /etc/resolv.conf file
2013/11/06 18:58:07| or use the 'dns_nameservers' option in squid.conf.
2013/11/06 18:58:07| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 18:58:07| helperOpenServers: No 'redirector' processes needed.
2013/11/06 18:58:07| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 18:58:07| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 18:58:07| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2013/11/06 18:58:07| Store logging disabled
2013/11/06 18:58:07| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2013/11/06 18:58:07| Target number of buckets: 1008
2013/11/06 18:58:07| Using 8192 Store buckets
2013/11/06 18:58:07| Max Mem size: 262144 KB
2013/11/06 18:58:07| Max Swap size: 0 KB
2013/11/06 18:58:07| Using Least Load store dir selection
2013/11/06 18:58:07| Set Current Directory to /var/spool/squid3
2013/11/06 18:58:07| Loaded Icons.
2013/11/06 18:58:07| HTCP Disabled.
2013/11/06 18:58:07| Pinger socket opened on FD 11
2013/11/06 18:58:07| pinger: Initialising ICMP pinger ...
2013/11/06 18:58:07| pinger: ICMP socket opened.
2013/11/06 18:58:07| pinger: ICMPv6 socket opened
2013/11/06 18:58:07| Squid plugin modules loaded: 0
2013/11/06 18:58:07| Adaptation support is off.
2013/11/06 18:58:07| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 18:58:08| storeLateRelease: released 0 objects
2013/11/06 18:58:15| Reconfiguring Squid Cache (version 3.3.8)...
2013/11/06 18:58:15| Closing HTTP port [::]:3128
2013/11/06 18:58:15| Closing Pinger socket on FD 11
2013/11/06 18:58:15| Logfile: closing log daemon:/var/log/squid3/access.log
2013/11/06 18:58:15| Logfile Daemon: closing log daemon:/var/log/squid3/access.log
2013/11/06 18:58:15| Startup: Initializing Authentication Schemes ...
2013/11/06 18:58:15| Startup: Initialized Authentication Scheme 'basic'
2013/11/06 18:58:15| Startup: Initialized Authentication Scheme 'digest'
2013/11/06 18:58:15| Startup: Initialized Authentication Scheme 'negotiate'
2013/11/06 18:58:15| Startup: Initialized Authentication Scheme 'ntlm'
2013/11/06 18:58:15| Startup: Initialized Authentication.
2013/11/06 18:58:15| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2013/11/06 18:58:15| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 18:58:15| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 18:58:15| Squid plugin modules loaded: 0
2013/11/06 18:58:15| Adaptation support is off.
2013/11/06 18:58:15| Store logging disabled
2013/11/06 18:58:15| DNS Socket created at [::], FD 7
2013/11/06 18:58:15| DNS Socket created at 0.0.0.0, FD 8
2013/11/06 18:58:15| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2013/11/06 18:58:15| Adding domain mshome.net from /etc/resolv.conf
2013/11/06 18:58:15| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 18:58:15| helperOpenServers: No 'redirector' processes needed.
2013/11/06 18:58:15| HTCP Disabled.
2013/11/06 18:58:15| Pinger socket opened on FD 11
2013/11/06 18:58:15| pinger: Initialising ICMP pinger ...
2013/11/06 18:58:15| pinger: ICMP socket opened.
2013/11/06 18:58:15| pinger: ICMPv6 socket opened
2013/11/06 18:58:15| Loaded Icons.
2013/11/06 18:58:15| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 18:58:16| Reconfiguring Squid Cache (version 3.3.8)...
2013/11/06 18:58:16| Closing HTTP port [::]:3128
2013/11/06 18:58:16| Closing Pinger socket on FD 11
2013/11/06 18:58:16| Logfile: closing log daemon:/var/log/squid3/access.log
2013/11/06 18:58:16| Logfile Daemon: closing log daemon:/var/log/squid3/access.log
2013/11/06 18:58:16| Startup: Initializing Authentication Schemes ...
2013/11/06 18:58:16| Startup: Initialized Authentication Scheme 'basic'
2013/11/06 18:58:16| Startup: Initialized Authentication Scheme 'digest'
2013/11/06 18:58:16| Startup: Initialized Authentication Scheme 'negotiate'
2013/11/06 18:58:16| Startup: Initialized Authentication Scheme 'ntlm'
2013/11/06 18:58:16| Startup: Initialized Authentication.
2013/11/06 18:58:16| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2013/11/06 18:58:16| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 18:58:16| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 18:58:16| Squid plugin modules loaded: 0
2013/11/06 18:58:16| Adaptation support is off.
2013/11/06 18:58:16| Store logging disabled
2013/11/06 18:58:16| DNS Socket created at [::], FD 7
2013/11/06 18:58:16| DNS Socket created at 0.0.0.0, FD 8
2013/11/06 18:58:16| Adding nameserver 127.0.1.1 from /etc/resolv.conf
2013/11/06 18:58:16| Adding domain mshome.net from /etc/resolv.conf
2013/11/06 18:58:16| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 18:58:16| helperOpenServers: No 'redirector' processes needed.
2013/11/06 18:58:16| HTCP Disabled.
2013/11/06 18:58:16| Pinger socket opened on FD 11
2013/11/06 18:58:16| pinger: Initialising ICMP pinger ...
2013/11/06 18:58:16| pinger: ICMP socket opened.
2013/11/06 18:58:16| pinger: ICMPv6 socket opened
2013/11/06 18:58:16| Loaded Icons.
2013/11/06 18:58:16| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 18:58:24| Pinger exiting.
2013/11/06 18:58:34| Pinger exiting.
2013/11/06 19:15:41| Reconfiguring Squid Cache (version 3.3.8)...
2013/11/06 19:15:41| Closing HTTP port [::]:3128
2013/11/06 19:15:41| Closing Pinger socket on FD 11
2013/11/06 19:15:41| Logfile: closing log daemon:/var/log/squid3/access.log
2013/11/06 19:15:41| Logfile Daemon: closing log daemon:/var/log/squid3/access.log
2013/11/06 19:15:41| Startup: Initializing Authentication Schemes ...
2013/11/06 19:15:41| Startup: Initialized Authentication Scheme 'basic'
2013/11/06 19:15:41| Startup: Initialized Authentication Scheme 'digest'
2013/11/06 19:15:41| Startup: Initialized Authentication Scheme 'negotiate'
2013/11/06 19:15:41| Startup: Initialized Authentication Scheme 'ntlm'
2013/11/06 19:15:41| Startup: Initialized Authentication.
2013/11/06 19:15:41| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2013/11/06 19:15:41| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 19:15:41| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 19:15:41| Squid plugin modules loaded: 0
2013/11/06 19:15:41| Adaptation support is off.
2013/11/06 19:15:41| Store logging disabled
2013/11/06 19:15:41| DNS Socket created at [::], FD 7
2013/11/06 19:15:41| DNS Socket created at 0.0.0.0, FD 8
2013/11/06 19:15:41| Adding nameserver 127.0.1.1 from /etc/resolv.conf
2013/11/06 19:15:41| Adding domain mshome.net from /etc/resolv.conf
2013/11/06 19:15:41| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 19:15:41| helperOpenServers: No 'redirector' processes needed.
2013/11/06 19:15:41| HTCP Disabled.
2013/11/06 19:15:41| Pinger socket opened on FD 11
2013/11/06 19:15:41| pinger: Initialising ICMP pinger ...
2013/11/06 19:15:41| pinger: ICMP socket opened.
2013/11/06 19:15:41| pinger: ICMPv6 socket opened
2013/11/06 19:15:41| Pinger exiting.
2013/11/06 19:15:41| Loaded Icons.
2013/11/06 19:15:41| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 19:15:46| Preparing for shutdown after 0 requests
2013/11/06 19:15:46| Waiting 30 seconds for active connections to finish
2013/11/06 19:15:46| Closing HTTP port [::]:3128
2013/11/06 19:15:46| Closing Pinger socket on FD 11
2013/11/06 19:15:46| Shutdown: NTLM authentication.
2013/11/06 19:15:46| Shutdown: Negotiate authentication.
2013/11/06 19:15:46| Shutdown: Digest authentication.
2013/11/06 19:15:46| Shutdown: Basic authentication.
2013/11/06 19:15:51| Starting Squid Cache version 3.3.8 for i686-pc-linux-gnu...
2013/11/06 19:15:51| Process ID 4343
2013/11/06 19:15:51| Process Roles: master worker
2013/11/06 19:15:51| With 65536 file descriptors available
2013/11/06 19:15:51| Initializing IP Cache...
2013/11/06 19:15:51| DNS Socket created at [::], FD 5
2013/11/06 19:15:51| DNS Socket created at 0.0.0.0, FD 6
2013/11/06 19:15:51| Adding nameserver 127.0.1.1 from /etc/resolv.conf
2013/11/06 19:15:51| Adding domain mshome.net from /etc/resolv.conf
2013/11/06 19:15:51| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 19:15:51| helperOpenServers: No 'redirector' processes needed.
2013/11/06 19:15:51| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 19:15:51| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 19:15:51| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2013/11/06 19:15:51| Store logging disabled
2013/11/06 19:15:51| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2013/11/06 19:15:51| Target number of buckets: 1008
2013/11/06 19:15:51| Using 8192 Store buckets
2013/11/06 19:15:51| Max Mem size: 262144 KB
2013/11/06 19:15:51| Max Swap size: 0 KB
2013/11/06 19:15:51| Using Least Load store dir selection
2013/11/06 19:15:51| Set Current Directory to /var/spool/squid3
2013/11/06 19:15:51| Loaded Icons.
2013/11/06 19:15:51| HTCP Disabled.
2013/11/06 19:15:51| Pinger socket opened on FD 11
2013/11/06 19:15:51| Squid plugin modules loaded: 0
2013/11/06 19:15:51| Adaptation support is off.
2013/11/06 19:15:51| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 19:15:51| pinger: Initialising ICMP pinger ...
2013/11/06 19:15:51| pinger: ICMP socket opened.
2013/11/06 19:15:51| pinger: ICMPv6 socket opened
2013/11/06 19:15:52| storeLateRelease: released 0 objects
2013/11/06 19:16:01| Pinger exiting.
2013/11/06 19:45:47| Preparing for shutdown after 0 requests
2013/11/06 19:45:47| Waiting 30 seconds for active connections to finish
2013/11/06 19:45:47| Closing HTTP port [::]:3128
2013/11/06 19:45:47| Closing Pinger socket on FD 11
2013/11/06 19:45:47| Shutdown: NTLM authentication.
2013/11/06 19:45:47| Shutdown: Negotiate authentication.
2013/11/06 19:45:47| Shutdown: Digest authentication.
2013/11/06 19:45:47| Shutdown: Basic authentication.
2013/11/06 19:45:52| Starting Squid Cache version 3.3.8 for i686-pc-linux-gnu...
2013/11/06 19:45:52| Process ID 4951
2013/11/06 19:45:52| Process Roles: master worker
2013/11/06 19:45:52| With 65536 file descriptors available
2013/11/06 19:45:52| Initializing IP Cache...
2013/11/06 19:45:52| DNS Socket created at [::], FD 5
2013/11/06 19:45:52| DNS Socket created at 0.0.0.0, FD 6
2013/11/06 19:45:52| Adding nameserver 127.0.1.1 from /etc/resolv.conf
2013/11/06 19:45:52| Adding domain mshome.net from /etc/resolv.conf
2013/11/06 19:45:52| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 19:45:52| helperOpenServers: No 'redirector' processes needed.
2013/11/06 19:45:52| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 19:45:52| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 19:45:52| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2013/11/06 19:45:52| Store logging disabled
2013/11/06 19:45:52| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2013/11/06 19:45:52| Target number of buckets: 1008
2013/11/06 19:45:52| Using 8192 Store buckets
2013/11/06 19:45:52| Max Mem size: 262144 KB
2013/11/06 19:45:52| Max Swap size: 0 KB
2013/11/06 19:45:52| Using Least Load store dir selection
2013/11/06 19:45:52| Set Current Directory to /var/spool/squid3
2013/11/06 19:45:52| Loaded Icons.
2013/11/06 19:45:52| HTCP Disabled.
2013/11/06 19:45:52| Pinger socket opened on FD 11
2013/11/06 19:45:52| Squid plugin modules loaded: 0
2013/11/06 19:45:52| Adaptation support is off.
2013/11/06 19:45:52| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 19:45:52| pinger: Initialising ICMP pinger ...
2013/11/06 19:45:52| pinger: ICMP socket opened.
2013/11/06 19:45:52| pinger: ICMPv6 socket opened
2013/11/06 19:45:52| Pinger exiting.
2013/11/06 19:45:53| storeLateRelease: released 0 objects
2013/11/06 19:46:02| Reconfiguring Squid Cache (version 3.3.8)...
2013/11/06 19:46:02| Closing HTTP port [::]:3128
2013/11/06 19:46:02| Closing Pinger socket on FD 11
2013/11/06 19:46:02| Logfile: closing log daemon:/var/log/squid3/access.log
2013/11/06 19:46:02| Logfile Daemon: closing log daemon:/var/log/squid3/access.log
2013/11/06 19:46:02| Startup: Initializing Authentication Schemes ...
2013/11/06 19:46:02| Startup: Initialized Authentication Scheme 'basic'
2013/11/06 19:46:02| Startup: Initialized Authentication Scheme 'digest'
2013/11/06 19:46:02| Startup: Initialized Authentication Scheme 'negotiate'
2013/11/06 19:46:02| Startup: Initialized Authentication Scheme 'ntlm'
2013/11/06 19:46:02| Startup: Initialized Authentication.
2013/11/06 19:46:02| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2013/11/06 19:46:02| Logfile: opening log daemon:/var/log/squid3/access.log
2013/11/06 19:46:02| Logfile Daemon: opening log /var/log/squid3/access.log
2013/11/06 19:46:02| Squid plugin modules loaded: 0
2013/11/06 19:46:02| Adaptation support is off.
2013/11/06 19:46:02| Store logging disabled
2013/11/06 19:46:02| DNS Socket created at [::], FD 7
2013/11/06 19:46:02| DNS Socket created at 0.0.0.0, FD 8
2013/11/06 19:46:02| Adding nameserver 127.0.1.1 from /etc/resolv.conf
2013/11/06 19:46:02| Adding domain mshome.net from /etc/resolv.conf
2013/11/06 19:46:02| helperOpenServers: Starting 0/20 'redirector' processes
2013/11/06 19:46:02| helperOpenServers: No 'redirector' processes needed.
2013/11/06 19:46:02| HTCP Disabled.
2013/11/06 19:46:02| Pinger socket opened on FD 11
2013/11/06 19:46:02| pinger: Initialising ICMP pinger ...
2013/11/06 19:46:02| pinger: ICMP socket opened.
2013/11/06 19:46:02| pinger: ICMPv6 socket opened
2013/11/06 19:46:02| Loaded Icons.
2013/11/06 19:46:02| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 9 flags=9
2013/11/06 19:46:12| Pinger exiting.