This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:tips_and_tricks [2013/10/01 20:52] fischerm [Description] |
en:tips_and_tricks [2016/12/04 13:01] (current) fischerm |
||
---|---|---|---|
Line 1: | Line 1: | ||
<style background-lwhite center> | <style background-lwhite center> | ||
- | <style background-lblue box-dblue float-left s30><sub>{{:images:flag_en_border.png?nolink&40}}</sub> <sup>[[:en:bugfixes|Bugfixes]]</sup></style> | + | <style background-lblue box-dblue float-left>{{:images:flag_en_border.png?nolink&40}} [size=11][[:en:bugfixes|Bugfixes]][/size]</style> |
- | <style background-lblue box-dblue float-right s30><sub>{{:images:flag_en_border.png?nolink&40|}}</sub> <sup>[[:en:howtos|HowTos]]</sup></style> | + | <style background-lblue box-dblue float-right>{{:images:flag_en_border.png?nolink&40|}} [size=11][[:en:howtos|HowTos]][/size]</style> |
- | [[http://www.copfilter.org|{{:images:copfilter-logo.png?150|Copfilter-Homepage}}]] | + | [[http://www.copfilter.org|{{:images:copfilter-logo.png?130|Copfilter-Homepage}}]] |
<style background-lwhite>[[:en:sitemap#sitemap|Sitemap]]</style> | <style background-lwhite>[[:en:sitemap#sitemap|Sitemap]]</style> | ||
</style> | </style> | ||
- | ---- | + | {{ :images:line.png?620x3&nolink |}} |
- | ---- | + | |
- | \\ | + | |
\\ | \\ | ||
+ | |||
====== Part 6 - Tips and Tricks ====== | ====== Part 6 - Tips and Tricks ====== | ||
Line 16: | Line 15: | ||
* Ok, now it's time for a small change to make things a bit more relaxed: | * Ok, now it's time for a small change to make things a bit more relaxed: | ||
- | * ** The main purpose of this part is to collect and describe several //__Tips and Tricks__// regarding - __**not only**__ - the Copfilter-Addon but IPCop in general**! | + | * ** The main purpose of this part is to collect and describe several //__Tips and Tricks__// regarding - __**not only**__ - the Copfilter-Addon but IPCop in general**. |
- | * I won't repeat the usual __safety precautions and notes__ from [[en:modifications_and_extensions|Part 4]] at this point, but of course they're still have validity! | + | * I won't repeat the usual __safety precautions and notes__ from [[:en:modifications_and_extensions|Part 4]] at this point, but of course they're still have validity! |
- | ---- | ||
- | \\ | ||
[size=15]**[color=red]Please note:[/color]**[/size]\\ | [size=15]**[color=red]Please note:[/color]**[/size]\\ | ||
Line 30: | Line 27: | ||
* **[color=red]What's that thing called RESTORE?[/color]** | * **[color=red]What's that thing called RESTORE?[/color]** | ||
* **[color=red]Who or what is a "Vi", where does it live, what does it eat ..?[/color]** :-)\\ \\ Quick-Reference-Card for 'Vi': [url]http://st23.org/misc/sysadmin//downloads/referenzkarte-vi.pdf[/url] | * **[color=red]Who or what is a "Vi", where does it live, what does it eat ..?[/color]** :-)\\ \\ Quick-Reference-Card for 'Vi': [url]http://st23.org/misc/sysadmin//downloads/referenzkarte-vi.pdf[/url] | ||
- | \\ | + | |
- | ---- | + | {{ :images:line.png?620x3&nolink |}} |
- | ---- | + | |
- | \\ | + | |
{{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | {{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | ||
Line 40: | Line 35: | ||
**See:** [url]http://www.ipcop-forum.de/forum/viewtopic.php?t=11690[/url]\\ | **See:** [url]http://www.ipcop-forum.de/forum/viewtopic.php?t=11690[/url]\\ | ||
- | <note> | + | <WRAP center round info 60%> |
[size=15][color=red]**__IPCop 1.4.x ONLY:__**[/color][/size] | [size=15][color=red]**__IPCop 1.4.x ONLY:__**[/color][/size] | ||
:!: In IPCop 1.9.x/2.x [color=red]**(V2)**[/color] this feature is already installed. | :!: In IPCop 1.9.x/2.x [color=red]**(V2)**[/color] this feature is already installed. | ||
- | </note> | ||
- | ---- | + | </WRAP> |
==== Description ==== | ==== Description ==== | ||
Line 66: | Line 61: | ||
fi</code> | fi</code> | ||
- | After a reboot (or manually executing **/etc/rc.d/rc.local**) IPCop will now perform a clean "shutdown" and power off the machine by simply pressing a button.\\ | + | After a reboot (or manually executing **/etc/rc.d/rc.local**) IPCop will now perform a clean "shutdown" and power off the machine by simply pressing a button. |
\\ | \\ | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
{{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | {{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | ||
Line 81: | Line 70: | ||
**See:** [url]http://mh-lantech.css-hamburg.de/ipcop/e107_plugins/forum/forum_viewtopic.php?4714[/url]\\ | **See:** [url]http://mh-lantech.css-hamburg.de/ipcop/e107_plugins/forum/forum_viewtopic.php?4714[/url]\\ | ||
- | |||
- | ---- | ||
==== Description ==== | ==== Description ==== | ||
Line 110: | Line 97: | ||
//Save the file ... then refresh any IPCOP cgi page ...//\\ | //Save the file ... then refresh any IPCOP cgi page ...//\\ | ||
//... the IPCOP menu should now be a little easier to see - n' navigate."//\\ | //... the IPCOP menu should now be a little easier to see - n' navigate."//\\ | ||
- | |||
- | ---- | ||
==== Screenshot ==== | ==== Screenshot ==== | ||
{{en:images:menue_tuning.png?nolink|Menu-Tuning}} | {{en:images:menue_tuning.png?nolink|Menu-Tuning}} | ||
- | \\ | ||
- | \\ | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
===== 3. Options in 'setup_util' ===== | ===== 3. Options in 'setup_util' ===== | ||
Line 162: | Line 139: | ||
http://www.copfilter.org</code> | http://www.copfilter.org</code> | ||
- | <note tip>'setup_util' is particularly important during an [[en:update-installation#installation|update installation]], or the installation of an additional virus scanner, such as\\ [[en:component_updates#f-prot|F-Prot]].</note> | + | <note tip>'setup_util' is particularly important during an [[:en:update-installation#installation|update installation]], or the installation of an additional virus scanner, such as\\ [[:en:component_updates#f-prot|F-Prot]].</note> |
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | ===== ===== | + | ===== 4. 'monit' does not start due to incorrect file permissions of 'monit.rc' ===== |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
- | + | ||
- | ===== 4. 'Monit' does not start due to incorrect file permissions of 'monit.rc' ===== | + | |
**See also:**\\ | **See also:**\\ | ||
Line 178: | Line 149: | ||
and\\ | and\\ | ||
[url]http://www.copfilter.org/forum/viewtopic.php?f=3&t=228[/url] | [url]http://www.copfilter.org/forum/viewtopic.php?f=3&t=228[/url] | ||
- | |||
- | ---- | ||
==== Problem ==== | ==== Problem ==== | ||
- | In rare cases 'monit' won't start anymore.\\ | + | In rare cases 'monit' won't start anymore. |
- | Nothing can be found in the logs - output is quite simple:\\ | + | Nothing can be found in the logs - output is quite simple: |
<code>starting monit <BR> | <code>starting monit <BR> | ||
waiting 3 second(s) <BR> | waiting 3 second(s) <BR> | ||
monit is not running <BR></code> | monit is not running <BR></code> | ||
- | Even\\ | + | Even |
<code>/var/log/copfilter/default/opt/monit/etc/init.d/copfilter_monit debug</code> | <code>/var/log/copfilter/default/opt/monit/etc/init.d/copfilter_monit debug</code> | ||
only provides | only provides | ||
Line 198: | Line 167: | ||
/var/log/copfilter/default/opt/monit/etc/init.d/copfilter_monit: line 279: debug: command not found | /var/log/copfilter/default/opt/monit/etc/init.d/copfilter_monit: line 279: debug: command not found | ||
monit is not running</code> | monit is not running</code> | ||
- | |||
- | ---- | ||
==== Cause ==== | ==== Cause ==== | ||
Wrong file permissions of '/var/log/copfilter/default/opt/monit/etc/**monit.rc**'\\ | Wrong file permissions of '/var/log/copfilter/default/opt/monit/etc/**monit.rc**'\\ | ||
- | |||
- | ---- | ||
==== Solution ==== | ==== Solution ==== | ||
- | Log in on the console as 'root' using a suitable client (ssh, [[en:tools#putty|PuTTY]], ...) and initiate the following commands:\\ | + | Log in on the console as 'root' using a suitable client (ssh, [[:en:tools#putty|PuTTY]], ...) and initiate the following commands: |
- | + | ||
- | ---- | + | |
<code>cd /var/log/copfilter/default/opt/monit/etc</code> | <code>cd /var/log/copfilter/default/opt/monit/etc</code> | ||
Line 218: | Line 181: | ||
Problem should be solved... | Problem should be solved... | ||
- | \\ | ||
- | \\ | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
===== 5. Turn off E-Mail notifications ===== | ===== 5. Turn off E-Mail notifications ===== | ||
**Initiated by:** [url]http://www.copfilter.org/forum/viewtopic.php?p=621#p621[/url] | **Initiated by:** [url]http://www.copfilter.org/forum/viewtopic.php?p=621#p621[/url] | ||
- | |||
- | ---- | ||
<note> | <note> | ||
[size=15]**[color=red]Please note:[/color]**[/size] | [size=15]**[color=red]Please note:[/color]**[/size] | ||
- | * This mod is already included in [[en:modifications_and_extensions#rd_party_signatures|3rd Party Signatures]] since version **0.55.0**. Notification is switched ON/OFF via [[en:modifications_and_extensions#screenshots|Email GUI]]. | + | * This mod is already included in [[:en:modifications_and_extensions#rd_party_signatures|3rd Party Signatures]] since version **0.55.0**. Notification is switched ON/OFF via [[:en:modifications_and_extensions#screenshots|Email GUI]]. |
* **Don't use** this mod if you use a newer version! | * **Don't use** this mod if you use a newer version! | ||
</note> | </note> | ||
- | |||
- | ---- | ||
==== Description ==== | ==== Description ==== | ||
Line 255: | Line 206: | ||
//d = disable email notifying e = enable email notifying// | //d = disable email notifying e = enable email notifying// | ||
\\ | \\ | ||
- | |||
- | ---- | ||
==== Download ==== | ==== Download ==== | ||
Line 264: | Line 213: | ||
|[[http://www.it-connect-unix.de/jdownloads/general/no_upd_mail_notif.tar.gz|no_upd_mail_notif.tar.gz]]| 2 KB | | |[[http://www.it-connect-unix.de/jdownloads/general/no_upd_mail_notif.tar.gz|no_upd_mail_notif.tar.gz]]| 2 KB | | ||
|**MD5SUM:**|DE4A2B81D151391BE70F5C60CA5B7E1E| | |**MD5SUM:**|DE4A2B81D151391BE70F5C60CA5B7E1E| | ||
- | |||
- | ---- | ||
==== Installation ==== | ==== Installation ==== | ||
- | **Installation proceeds as described in [[en:copfilter_-_installation_and_update#the_installation_of_the_software_archives|The installation of the software archives]]:**\\ | + | **Installation proceeds as described in [[:en:copfilter_-_installation_and_update#the_installation_of_the_software_archives|The installation of the software archives]]:**\\ |
- | - [[en:copfilter_-_installation_and_update#login|Login]] | + | - [[:en:copfilter_-_installation_and_update#login|Login]] |
- | - [[en:copfilter_-_installation_and_update#download|Download]] | + | - [[:en:copfilter_-_installation_and_update#download|Download]] |
- | - [[en:copfilter_-_installation_and_update#check_md5_sum|Check MD5 sum]] | + | - [[:en:copfilter_-_installation_and_update#check_md5_sum|Check MD5 sum]] |
- | - [[en:copfilter_-_installation_and_update#extract_the_installation_archive|Extract the installation archive]] | + | - [[:en:copfilter_-_installation_and_update#extract_the_installation_archive|Extract the installation archive]] |
- | - [[en:copfilter_-_installation_and_update#change_to_installation_directory|Change to installation directory]] | + | - [[:en:copfilter_-_installation_and_update#change_to_installation_directory|Change to installation directory]] |
- | - [[en:copfilter_-_installation_and_update#starting_the_installation|Starting the installation]] | + | - [[:en:copfilter_-_installation_and_update#starting_the_installation|Starting the installation]] |
- | - [[en:copfilter_-_installation_and_update#installation_ok|Installation ok?]] | + | - [[:en:copfilter_-_installation_and_update#installation_ok|Installation ok?]] |
- | - [[en:copfilter_-_installation_and_update#deleting_the_installation_directories_optional|Deleting the installation directories (optional)]] | + | - [[:en:copfilter_-_installation_and_update#deleting_the_installation_directories_optional|Deleting the installation directories (optional)]] |
- | \\ | + | |
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
===== 6. 'crontab' prevents Copfilter-Installation ===== | ===== 6. 'crontab' prevents Copfilter-Installation ===== | ||
**Initiated by:** [url]http://www.copfilter.org/forum/viewtopic.php?p=776#p776[/url] | **Initiated by:** [url]http://www.copfilter.org/forum/viewtopic.php?p=776#p776[/url] | ||
- | |||
- | ---- | ||
==== Problem ==== | ==== Problem ==== | ||
Line 302: | Line 240: | ||
This addon only works for IPCop 1.4.x and higher</code> | This addon only works for IPCop 1.4.x and higher</code> | ||
- | |||
- | ---- | ||
==== Cause ==== | ==== Cause ==== | ||
There exists a file '/etc/**crontab**', a relic from a previous version of IPCop, which was inadvertently not deleted during the update process. | There exists a file '/etc/**crontab**', a relic from a previous version of IPCop, which was inadvertently not deleted during the update process. | ||
- | |||
- | ---- | ||
==== Solution ==== | ==== Solution ==== | ||
<code>rm /etc/crontab</code> | <code>rm /etc/crontab</code> | ||
- | \\ | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
{{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | {{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | ||
Line 328: | Line 255: | ||
A big "Thanks!" goes to 'cjmatsel' - this tip was originally published in Copfilter section of his [[http://www.ipcopwiki.de/index.php/|IPCopWiki]]! | A big "Thanks!" goes to 'cjmatsel' - this tip was originally published in Copfilter section of his [[http://www.ipcopwiki.de/index.php/|IPCopWiki]]! | ||
- | |||
- | ---- | ||
<note important> | <note important> | ||
- | The following method applies to IPCop **V1** (1.4.xx) **ONLY** - in **V2** (2.x), the BOT addon was integrated by default. You only have to define administrative access to the [[en:component_updates#screenshot|Monit Service Manager (port 446)]]. | + | The following method applies to IPCop **V1** (1.4.xx) **ONLY** - in **V2** (2.x), the BOT addon was integrated by default. You only have to define administrative access to the [[:en:component_updates#screenshot|Monit Service Manager (port 446)]]. |
</note> | </note> | ||
- | |||
- | ---- | ||
==== Description ==== | ==== Description ==== | ||
Line 355: | Line 278: | ||
|IPCopFTPActive| 50400-50599 | TCP || | |IPCopFTPActive| 50400-50599 | TCP || | ||
|Monit Service Manager| 446 | TCP || | |Monit Service Manager| 446 | TCP || | ||
- | |||
You can add the following useful services (if required, these are **not** part of Copfilter): | You can add the following useful services (if required, these are **not** part of Copfilter): | ||
- | |||
| __Standard services:__ ||| | | __Standard services:__ ||| | ||
Line 369: | Line 290: | ||
Best is, to arrange required services in groups. | Best is, to arrange required services in groups. | ||
- | ---- | ||
- | \\ | ||
Here's a screenshot of a sample configuration that still contains some other services: | Here's a screenshot of a sample configuration that still contains some other services: | ||
Line 383: | Line 302: | ||
</note> | </note> | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
===== 8. Testing sendEmail ===== | ===== 8. Testing sendEmail ===== | ||
Line 395: | Line 308: | ||
==== Problem ==== | ==== Problem ==== | ||
- | Unfortunately, it happens every now and then that [[en:component_updates#sendemail|sendEmail]] has problems with the current service provider. | + | Unfortunately, it happens every now and then that [[:en:component_updates#sendemail|sendEmail]] has problems with the current service provider. |
- | + | ||
- | ---- | + | |
==== Solution ==== | ==== Solution ==== | ||
Line 407: | Line 318: | ||
<code>./sendEmail -f [sender-address] -u [Subject] -t [recipient-address] -s [SMTP-serveraddress] -xu [SMTP-username] -xp [SMTP-password]</code> | <code>./sendEmail -f [sender-address] -u [Subject] -t [recipient-address] -s [SMTP-serveraddress] -xu [SMTP-username] -xp [SMTP-password]</code> | ||
**[ENTER]**\\ | **[ENTER]**\\ | ||
- | \\ | ||
- | A successful result should look like this:\\ | ||
- | ---- | + | A successful result should look like this: |
- | \\ | + | |
[size=11]''root@coprouter:/tmp # **[...place of 'sendEmail'-commands...]**\\ | [size=11]''root@coprouter:/tmp # **[...place of 'sendEmail'-commands...]**\\ | ||
Reading message body from STDIN because the '-m' option was not used.\\ | Reading message body from STDIN because the '-m' option was not used.\\ | ||
Line 417: | Line 326: | ||
- First line must be received within 60 seconds.\\ | - First line must be received within 60 seconds.\\ | ||
- End manual input with a CTRL-D on its own line.\\ | - End manual input with a CTRL-D on its own line.\\ | ||
- | \\ | + | |
testmail nummer 3\\ | testmail nummer 3\\ | ||
Jan 02 21:52:59 coprouter sendemail[10044]: Message input complete.\\ | Jan 02 21:52:59 coprouter sendemail[10044]: Message input complete.\\ | ||
Line 423: | Line 332: | ||
Jan 02 21:52:59 coprouter sendemail[10044]: Email was sent successfully!''\\[/size] | Jan 02 21:52:59 coprouter sendemail[10044]: Email was sent successfully!''\\[/size] | ||
- | ---- | ||
- | \\ | ||
**Check all outputs for errors!** | **Check all outputs for errors!** | ||
- | To be sure, successively press the buttons "Send test email virus", "Send test e-mail SPAM" and "Send a test email" in [[en:copfilter-basics_-_features_and_first_setup#tests_logs|Copfilter Test & Logs]]. | + | To be sure, successively press the buttons "Send test email virus", "Send test e-mail SPAM" and "Send a test email" in [[:en:copfilter-basics_-_features_and_first_setup#tests_logs|Copfilter Test & Logs]]. |
{{ en:images:copfilter_testmails.png?nolink |Testmails}} | {{ en:images:copfilter_testmails.png?nolink |Testmails}} | ||
- | Wait a few seconds and then take a look at '/var/log/**messages**' ...:\\ | + | Wait a few seconds and then take a look at '/var/log/**messages**' ...: |
- | \\ | + | |
- | ---- | ||
- | \\ | ||
[size=11]''Jan 2 21:54:25 coprouter copfilter send testvirus:\\ | [size=11]''Jan 2 21:54:25 coprouter copfilter send testvirus:\\ | ||
Jan 2 21:54:25 coprouter copfilter send testvirus: please wait until scripts finishes\\ | Jan 2 21:54:25 coprouter copfilter send testvirus: please wait until scripts finishes\\ | ||
Line 459: | Line 363: | ||
Jan 2 21:54:32 coprouter copfilter send exe attachment: and smtp server in the copfilter webgui\\ | Jan 2 21:54:32 coprouter copfilter send exe attachment: and smtp server in the copfilter webgui\\ | ||
Jan 2 21:54:32 coprouter copfilter send exe attachment:\\ | Jan 2 21:54:32 coprouter copfilter send exe attachment:\\ | ||
- | Jan 2 21:54:32 coprouter copfilter **send exe attachment: Jan 02 21:54:32 coprouter sendEmail[8546]: Email was sent successfully!**''[/size]\\ | + | Jan 2 21:54:32 coprouter copfilter **send exe attachment: Jan 02 21:54:32 coprouter sendEmail[8546]: Email was sent successfully!**''[/size] |
- | ---- | ||
- | \\ | ||
Shortly thereafter a total of three e-mails should arrive - one with an "EXE"-Attachment, the other two - if 'p3scan' was activated - starting with roughly the following text body.\\ | Shortly thereafter a total of three e-mails should arrive - one with an "EXE"-Attachment, the other two - if 'p3scan' was activated - starting with roughly the following text body.\\ | ||
- | ---- | ||
- | \\ | ||
[size=11]''-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\\ | [size=11]''-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\\ | ||
\\ | \\ | ||
Line 504: | Line 404: | ||
by Jack S. Lai %%<laitcg@cox.net>%%''[/size] | by Jack S. Lai %%<laitcg@cox.net>%%''[/size] | ||
- | ---- | ||
- | \\ | ||
If the current 'sendEmail' version is running into problems, it has to be tested: | If the current 'sendEmail' version is running into problems, it has to be tested: | ||
Line 516: | Line 414: | ||
For testing, just copy the desired 'sendEmail'-[version] to 'sendEmail': | For testing, just copy the desired 'sendEmail'-[version] to 'sendEmail': | ||
<code>cp sendEmail-1.54 sendEmail</code>By overwriting the destination file you can immediately start a new testrun. | <code>cp sendEmail-1.54 sendEmail</code>By overwriting the destination file you can immediately start a new testrun. | ||
- | \\ | ||
- | \\ | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
{{ :images:copfilter_v2_logo1.png?nolink&90|V2-Logo}} | {{ :images:copfilter_v2_logo1.png?nolink&90|V2-Logo}} | ||
- | ===== 9. IPCop-Installation - define your own partitions (V2)===== | + | ===== 9. IPCop-Installation - adjusting partitions manually (V2)===== |
==== Problem ==== | ==== Problem ==== | ||
Line 535: | Line 425: | ||
This is enough for most installations - but not (for example) for the [[https://www.it-connect-unix.de/index.php?option=com_jdownloads&view=viewcategory&catid=18&Itemid=78|developer version]]. | This is enough for most installations - but not (for example) for the [[https://www.it-connect-unix.de/index.php?option=com_jdownloads&view=viewcategory&catid=18&Itemid=78|developer version]]. | ||
- | |||
- | ---- | ||
==== Solution ==== | ==== Solution ==== | ||
Line 545: | Line 433: | ||
More informations regarding 'parted' can be found on http://ftp.gnu.org/old-gnu/Manuals/parted-1.6.1/html_mono/parted.html | More informations regarding 'parted' can be found on http://ftp.gnu.org/old-gnu/Manuals/parted-1.6.1/html_mono/parted.html | ||
- | |||
- | ---- | ||
==== Method ==== | ==== Method ==== | ||
- | |||
- | === === | ||
**1.** Burn IPCop-V2-ISO-Image to CD. | **1.** Burn IPCop-V2-ISO-Image to CD. | ||
- | ---- | ||
- | \\ | ||
**2.** Boot from CD. | **2.** Boot from CD. | ||
- | ---- | ||
- | \\ | ||
**3.** At Boot-Prompt type:\\ | **3.** At Boot-Prompt type:\\ | ||
<code>install parted</code>**[ENTER]** | <code>install parted</code>**[ENTER]** | ||
- | ---- | ||
- | \\ | ||
**4.** After the hardware initialization and the media selection you'll see a message box: | **4.** After the hardware initialization and the media selection you'll see a message box: | ||
<style float-left box background> | <style float-left box background> | ||
Do your thing with parted now! | Do your thing with parted now! | ||
</style> | </style> | ||
+ | |||
+ | [color=red][**Don't press ENTER now!**][/color] | ||
\\ | \\ | ||
\\ | \\ | ||
\\ | \\ | ||
- | \\ | ||
- | [color=red][**Don't press ENTER now!**][/color] | ||
- | |||
- | ---- | ||
\\ | \\ | ||
**5.** Press **[ALT-F5]** or **[ALT-F6]** | **5.** Press **[ALT-F5]** or **[ALT-F6]** | ||
- | ---- | + | **6.** On the console type: |
- | \\ | + | |
- | **6.** On the console type:\\ | + | |
<code>cat /proc/partitions</code> | <code>cat /proc/partitions</code> | ||
**[ENTER]** | **[ENTER]** | ||
Line 589: | Line 463: | ||
{{:images:v2_install_cat_proc_partitions.png?nolink|cat /proc/partitions}} | {{:images:v2_install_cat_proc_partitions.png?nolink|cat /proc/partitions}} | ||
- | ---- | ||
- | \\ | ||
**7.** Now type (depending on hard disk type):\\ | **7.** Now type (depending on hard disk type):\\ | ||
<code>parted /dev/hda</code> | <code>parted /dev/hda</code> | ||
(or **/dev/sda**, see above)\\ | (or **/dev/sda**, see above)\\ | ||
- | **[ENTER]**\\ | + | **[ENTER]** |
'Parted' is started and you are now on the 'parted' command line: | 'Parted' is started and you are now on the 'parted' command line: | ||
Line 600: | Line 472: | ||
{{:images:v2_install_parted_dev_sda.png?nolink&|parted /dev/sda}} | {{:images:v2_install_parted_dev_sda.png?nolink&|parted /dev/sda}} | ||
- | ---- | + | **8.** Type **print** to display the partition table. |
- | \\ | + | |
- | **8.** Type **print** to display the partition table.\\ | + | |
<code>print</code> | <code>print</code> | ||
**[ENTER]** | **[ENTER]** | ||
Line 608: | Line 478: | ||
{{:images:v2_install_parted_print.png?nolink&|print}} | {{:images:v2_install_parted_print.png?nolink&|print}} | ||
- | ---- | + | **9.** If necessary, remove existing partitions by typing **rm [Number]**. **[Number]** corresponds to the partition numbering of the "Number" column. |
- | \\ | + | |
- | **9.** If necessary, remove existing partitions by typing **rm [Number]**. **[Number]** corresponds to the partition numbering of the "Number" column.\\ | + | |
- | ---- | ||
- | \\ | ||
**10.** If you get an error message like "unrecognized disk label", type **mklabel msdos** to create a msdos-Disklabel:\\ | **10.** If you get an error message like "unrecognized disk label", type **mklabel msdos** to create a msdos-Disklabel:\\ | ||
<code>mklabel msdos</code> | <code>mklabel msdos</code> | ||
**[ENTER]** | **[ENTER]** | ||
- | ---- | ||
- | \\ | ||
**11.** The following command creates a **root**-Partition with **8** GB.\\ | **11.** The following command creates a **root**-Partition with **8** GB.\\ | ||
- | Ignore **//Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel?//**).\\ | + | <code>mkpart primary ext2 2048s 8191</code> |
- | <code>mkpart primary ext2 64k 8192</code> | + | |
**[ENTER]** | **[ENTER]** | ||
- | ---- | + | **12.** Next, a second partition must be created for **var** - the following command uses the entire remaining disk space: |
- | \\ | + | <code>mkpart primary ext2 8192 100%</code> |
- | **12.** Next, a second partition must be created for **var** - the following command uses the entire remaining disk space:\\ | + | |
- | <code>mkpart primary ext2 8193 100%</code> | + | |
**[ENTER]** | **[ENTER]** | ||
- | ---- | + | **13.** Make **root**-partition bootable: |
- | \\ | + | |
- | **13.** Make **root**-partition bootable:\\ | + | |
<code>set 1 boot on</code> | <code>set 1 boot on</code> | ||
**[ENTER]** | **[ENTER]** | ||
- | ---- | + | **14.** Leave 'parted': |
- | \\ | + | |
- | **14.** Leave 'parted':\\ | + | |
<code>quit</code> | <code>quit</code> | ||
**[ENTER]** | **[ENTER]** | ||
- | ---- | + | **15.** Type **sync** to write pending changes immediately to disk (important for SCSI-Systems!): |
- | \\ | + | |
- | **15.** Type **sync** to write pending changes immediately to disk (important for SCSI-Systems!):\\ | + | |
<code>sync</code> | <code>sync</code> | ||
**[ENTER]** | **[ENTER]** | ||
- | ---- | + | **16.** List new partitions: |
- | \\ | + | |
- | **16.** List new partitions:\\ | + | |
<code>parted -l</code> | <code>parted -l</code> | ||
**[ENTER]** | **[ENTER]** | ||
- | ---- | ||
- | \\ | ||
**17.** Press **[ALT-F1]** to return to the first shell (above, item 4.). | **17.** Press **[ALT-F1]** to return to the first shell (above, item 4.). | ||
- | ---- | ||
- | \\ | ||
**18.** Press **[ENTER]** to continue with IPCop-V2-Installation. | **18.** Press **[ENTER]** to continue with IPCop-V2-Installation. | ||
- | |||
- | ===== ===== | ||
- | \\ | ||
- | |||
- | ---- | ||
==== Download Addon-friendly ==== | ==== Download Addon-friendly ==== | ||
- | If you're not familiar with this procedure, you can download an **Addon-friendly**-IPCop-V2-Version which **automatically** creates a bigger root partition from this URL:\\ | + | If you're not familiar with this procedure, you can download an **Addon-friendly**-IPCop-V2-Version which **automatically** creates a bigger root partition from this URL: |
**Download:**\\ | **Download:**\\ | ||
Line 676: | Line 520: | ||
Such an installation requires at least a **10 GB** hard disk - a **5 GB** root partition and a **256 MB** swapfile is created. | Such an installation requires at least a **10 GB** hard disk - a **5 GB** root partition and a **256 MB** swapfile is created. | ||
- | |||
- | ---- | ||
==== Note ==== | ==== Note ==== | ||
Line 683: | Line 525: | ||
<note>**The ISO files, which are available at the above URL for downloading are __no official IPCop versions__!**</note> | <note>**The ISO files, which are available at the above URL for downloading are __no official IPCop versions__!**</note> | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
{{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | {{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | ||
Line 702: | Line 538: | ||
In this tutorial the ramdisk is created with a size of 64MB, which has so far proved to be sufficient for standard use - higher values are possible, but go at the expense of available memory. | In this tutorial the ramdisk is created with a size of 64MB, which has so far proved to be sufficient for standard use - higher values are possible, but go at the expense of available memory. | ||
- | ---- | + | [color=red]**Please note:**[/color] |
- | \\ | + | |
- | [color=red]**Please note:**[/color]\\ | + | |
* The Ramdisk must **in any case** be able to manage the temporary files of many **__simultaneous__** downloads. | * The Ramdisk must **in any case** be able to manage the temporary files of many **__simultaneous__** downloads. | ||
* With a value of eg MAXSCANSIZE 30720000 (30MB), a 64MB ramdisk may be **__fully utilized__** with the **__simultaneous__** downloads of **__two__** large files - this can cause problems. | * With a value of eg MAXSCANSIZE 30720000 (30MB), a 64MB ramdisk may be **__fully utilized__** with the **__simultaneous__** downloads of **__two__** large files - this can cause problems. | ||
* In this case, a bigger ramdisk must be created or the value of MAXSCANSIZE has to be reduced! | * In this case, a bigger ramdisk must be created or the value of MAXSCANSIZE has to be reduced! | ||
- | |||
- | ---- | ||
<note important> | <note important> | ||
* **__Don't delete__** the original directory **/var/log/copfilter/default/opt/havp/tmp**! | * **__Don't delete__** the original directory **/var/log/copfilter/default/opt/havp/tmp**! | ||
+ | |||
* [color=red]**After changing this option, a reboot of the IPCop computer is mandatory.**[/color] | * [color=red]**After changing this option, a reboot of the IPCop computer is mandatory.**[/color] | ||
</note> | </note> | ||
- | |||
- | ---- | ||
==== Environment ==== | ==== Environment ==== | ||
- | This optimization was performed on a IPCop 1.4.21, using current [[en:component_updates#havp|HAVP]] and [[en:clamav-update|ClamAV]]-versions. HAVP-parameter were as follows (Copfilter **0.84beta4**, ClamAV running in library-mode): | + | This optimization was performed on a IPCop 1.4.21, using current [[:en:component_updates#havp|HAVP]] and [[:en:clamav-update|ClamAV]]-versions. HAVP-parameter were as follows (Copfilter **0.84beta4**, ClamAV running in library-mode): |
^Option^Value^Unit^ | ^Option^Value^Unit^ | ||
Line 736: | Line 567: | ||
|CLAMMAXFILESIZE| 25 |MB| | |CLAMMAXFILESIZE| 25 |MB| | ||
|CLAMMAXRECURSION| 16 |Number| | |CLAMMAXRECURSION| 16 |Number| | ||
- | |||
- | ---- | ||
\\ | \\ | ||
- | [size=15]**[color=red]Please note:[/color]**[/size]\\ | ||
- | [size=15][color=red]**__IPCop 1.4.x ONLY!__**[/color][/size] {{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}}\\ | + | <WRAP center round important 95%> |
+ | [size=15]**[color=red]Please note:[/color]**[/size] | ||
+ | |||
+ | [size=15][color=red]**__IPCop 1.4.x ONLY!__**[/color][/size] {{ :images:copfilter_v1_logo1.png?nolink&90|V1-Logo}} | ||
* In IPCop-versions 1.9.x/2.x [color=red]**(V2)**[/color], kernel modul for Ramdisk has been removed.\\ | * In IPCop-versions 1.9.x/2.x [color=red]**(V2)**[/color], kernel modul for Ramdisk has been removed.\\ | ||
- | * [url=de:grund-installation#download]Copfilter-Version 2.0.x (IPCop 1.9.x/2.x)[/url] therefore uses [[http://de.wikipedia.org/wiki/Tmpfs|TMPFS]] - this option can be switched ON/OFF using //**Enable HAVP Scanner to run in Memory**// via HAVP-GUI:\\ | + | * [url=de:grund-installation#download]Copfilter-Version 2.0.x (IPCop 1.9.x/2.x)[/url] therefore uses [[http://de.wikipedia.org/wiki/Tmpfs|TMPFS]] - this option can be switched ON/OFF using //Enable HAVP Scanner to run in Memory// via HAVP-GUI: |
- | {{en:images:v2_havp_tmps_switch.png?nolink&|TMPFS-Switch}} | + | {{ en:images:v2_havp_tmps_switch.png?nolink& |TMPFS-Switch}} |
- | + | </WRAP> | |
- | ---- | + | \\ |
==== Method ==== | ==== Method ==== | ||
Line 758: | Line 589: | ||
* /var/log/copfilter/default/opt/havp/etc/init.d/**copfilter_havp** | * /var/log/copfilter/default/opt/havp/etc/init.d/**copfilter_havp** | ||
- | ---- | ||
- | \\ | ||
__**1. Edit 'grub.conf':**__ | __**1. Edit 'grub.conf':**__ | ||
Line 767: | Line 596: | ||
<code>kernel /vmlinuz root=/dev/sda4 panic=10 init=/linuxrc rw ramdisk_size=64000</code> | <code>kernel /vmlinuz root=/dev/sda4 panic=10 init=/linuxrc rw ramdisk_size=64000</code> | ||
- | ---- | ||
- | \\ | ||
__**2. Edit 'global_settings':**__ | __**2. Edit 'global_settings':**__ | ||
Insert line **HAVP_RAMDISK=on** in file '/var/log/copfilter/default/etc/**global_settings**. | Insert line **HAVP_RAMDISK=on** in file '/var/log/copfilter/default/etc/**global_settings**. | ||
- | (Important: '**on**' resp. '**off**' must be **lower case**!) | ||
- | ---- | + | <note important>This is case-sensitive, '**on**' resp. '**off**' must be **lower case**!</note> |
- | \\ | + | |
__**3. Edit 'copfilter_havp':**__ | __**3. Edit 'copfilter_havp':**__ | ||
Line 805: | Line 631: | ||
fi</code> | fi</code> | ||
- | ---- | ||
- | \\ | ||
[size=15][color=red]**Attention:**[/color][/size] | [size=15][color=red]**Attention:**[/color][/size] | ||
Line 814: | Line 638: | ||
<code>chown -R havp.copfilter /var/log/copfilter/default/opt/havp/tmp</code> | <code>chown -R havp.copfilter /var/log/copfilter/default/opt/havp/tmp</code> | ||
- | ---- | ||
- | \\ | ||
__**4. Edit 'copfilter_havp':**__ | __**4. Edit 'copfilter_havp':**__ | ||
Line 853: | Line 675: | ||
<note important>[color=red]**Afterwards, IPCop-PC must be __restarted__ for the changes to take effect.**[/color]</note> | <note important>[color=red]**Afterwards, IPCop-PC must be __restarted__ for the changes to take effect.**[/color]</note> | ||
- | ---- | ||
- | \\ | ||
__**Note:**__ | __**Note:**__ | ||
Line 863: | Line 683: | ||
{{ :images:havp_ram_disk.png?nolink& |IPCop HDD- and Inodes}} | {{ :images:havp_ram_disk.png?nolink& |IPCop HDD- and Inodes}} | ||
- | ---- | ||
- | \\ | ||
__**Verification through the log files:**__ | __**Verification through the log files:**__ | ||
* In **/var/log/messages** Ramdisk initializing can be seen: | * In **/var/log/messages** Ramdisk initializing can be seen: | ||
<code>coprouter kernel: RAMDISK driver initialized: 16 RAM disks of 5120K size 1024 blocksize</code> | <code>coprouter kernel: RAMDISK driver initialized: 16 RAM disks of 5120K size 1024 blocksize</code> | ||
- | ---- | ||
- | \\ | ||
__**Check filesystem:**__ | __**Check filesystem:**__ | ||
* Under **/var/log/copfilter/default/opt/havp/tmp** there's a new directory: **lost+found** | * Under **/var/log/copfilter/default/opt/havp/tmp** there's a new directory: **lost+found** | ||
- | |||
- | ---- | ||
==== Specials ==== | ==== Specials ==== | ||
Line 881: | Line 695: | ||
{{ :images:v1_havp_ramdisk_neustart.png?nolink& |HAVP Restart}} | {{ :images:v1_havp_ramdisk_neustart.png?nolink& |HAVP Restart}} | ||
- | \\ | ||
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
{{ :images:copfilter_v2_logo1.png?nolink&90|V2-Logo}} | {{ :images:copfilter_v2_logo1.png?nolink&90|V2-Logo}} | ||
Line 895: | Line 702: | ||
**Initiated by:** [url]http://www.copfilter.org/forum/viewtopic.php?p=3372#p3372[/url] (german) | **Initiated by:** [url]http://www.copfilter.org/forum/viewtopic.php?p=3372#p3372[/url] (german) | ||
- | |||
- | ---- | ||
==== Problem ==== | ==== Problem ==== | ||
Line 903: | Line 708: | ||
* SpamAssassin and Razor-, DCC- and DNSBL-lists are enabled. | * SpamAssassin and Razor-, DCC- and DNSBL-lists are enabled. | ||
* In addition, the mails are checked with ClamAV. | * In addition, the mails are checked with ClamAV. | ||
- | |||
- | ---- | ||
==== Cause ==== | ==== Cause ==== | ||
Line 927: | Line 730: | ||
So, under certain circumstances, scanning can take more than 90 seconds (or more) per mail! | So, under certain circumstances, scanning can take more than 90 seconds (or more) per mail! | ||
- | |||
- | ---- | ||
==== Solution ==== | ==== Solution ==== | ||
Line 936: | Line 737: | ||
{{:en:images:traffic_accounting.png?nolink&|Traffic Accounting}} | {{:en:images:traffic_accounting.png?nolink&|Traffic Accounting}} | ||
- | 2. With the following patch for Copfilter version **2.0.90** and **2.0.91beta1** RBL checks can be disabled in [[en:copfilter-basics_-_features_and_first_setup#antispam|Antispam GUI]] when Razor, DCC and DNSBL are enabled: | + | 2. With the following patch for Copfilter version **2.0.90** and **2.0.91beta1** RBL checks can be disabled in [[:en:copfilter-basics_-_features_and_first_setup#antispam|Antispam GUI]] when Razor, DCC and DNSBL are enabled: |
{{:en:images:copfilter_antispam-patch_-_rbl_check.png?nolink&|AntiSpam-Patch}} | {{:en:images:copfilter_antispam-patch_-_rbl_check.png?nolink&|AntiSpam-Patch}} | ||
- | |||
- | ---- | ||
==== Download ==== | ==== Download ==== | ||
Line 951: | Line 750: | ||
|[color=red]**V2:**[/color]|[[http://www.copfilter.org/v2-downloads/general/cp-spamd_v2-2.0.91beta-speedup.tgz|cp-spamd_v2-2.0.91beta-speedup.tgz]]| 2 KB | | |[color=red]**V2:**[/color]|[[http://www.copfilter.org/v2-downloads/general/cp-spamd_v2-2.0.91beta-speedup.tgz|cp-spamd_v2-2.0.91beta-speedup.tgz]]| 2 KB | | ||
|**MD5SUM:**| F0D3E48EF0E1B2137626C699602EB4E8 || | |**MD5SUM:**| F0D3E48EF0E1B2137626C699602EB4E8 || | ||
- | |||
- | ---- | ||
==== Installation ==== | ==== Installation ==== | ||
- | **Installation proceeds as described in [[en:copfilter_-_installation_and_update#the_installation_of_the_software_archives|The installation of the software archives]]:**\\ | + | **Installation proceeds as described in [[:en:copfilter_-_installation_and_update#the_installation_of_the_software_archives|The installation of the software archives]]:**\\ |
- | - [[en:copfilter_-_installation_and_update#login|Login]] | + | - [[:en:copfilter_-_installation_and_update#login|Login]] |
- | - [[en:copfilter_-_installation_and_update#download|Download]] | + | - [[:en:copfilter_-_installation_and_update#download|Download]] |
- | - [[en:copfilter_-_installation_and_update#check_md5_sum|Check MD5 sum]] | + | - [[:en:copfilter_-_installation_and_update#check_md5_sum|Check MD5 sum]] |
- | - [[en:copfilter_-_installation_and_update#extract_the_installation_archive|Extract the installation archive]] | + | - [[:en:copfilter_-_installation_and_update#extract_the_installation_archive|Extract the installation archive]] |
- | - [[en:copfilter_-_installation_and_update#change_to_installation_directory|Change to installation directory]] | + | - [[:en:copfilter_-_installation_and_update#change_to_installation_directory|Change to installation directory]] |
- | - [[en:copfilter_-_installation_and_update#starting_the_installation|Starting the installation]] | + | - [[:en:copfilter_-_installation_and_update#starting_the_installation|Starting the installation]] |
- | - [[en:copfilter_-_installation_and_update#installation_ok|Installation ok?]] | + | - [[:en:copfilter_-_installation_and_update#installation_ok|Installation ok?]] |
- | - [[en:copfilter_-_installation_and_update#deleting_the_installation_directories_optional|Deleting the installation directories (optional)]] | + | - [[:en:copfilter_-_installation_and_update#deleting_the_installation_directories_optional|Deleting the installation directories (optional)]] |
- | \\ | + | |
- | ===== ===== | + | {{ :images:line.png?nolink |}} |
- | [[http://www.copfilter.org/wiki/doku.php?id=en:tips_and_tricks#dokuwiki__top|{{:images:backtotop.png}}]] | + | |
- | + | ||
- | ===== ===== | + | |
- | ---- | + | |
- | ---- | + | |
- | \\ | + | |
===== 12. HAVP - Authentification-Problem ===== | ===== 12. HAVP - Authentification-Problem ===== | ||
Italic quotes are from the original posting - it's unfortunately no longer available. | Italic quotes are from the original posting - it's unfortunately no longer available. | ||
- | |||
- | ---- | ||
==== Problem ==== | ==== Problem ==== | ||
Line 999: | Line 787: | ||
Your **workaround with Squid** is the correct way - also you can add such sites\\ | Your **workaround with Squid** is the correct way - also you can add such sites\\ | ||
as no-proxy in browser.//\\ | as no-proxy in browser.//\\ | ||
- | |||
- | ---- | ||
==== Solution ==== | ==== Solution ==== | ||
- | Log in on the console as 'root' using a suitable client (ssh, [[en:tools#putty|PuTTY]], ...) and initiate the following commands:\\ | + | Log in on the console as 'root' using a suitable client (ssh, [[:en:tools#putty|PuTTY]], ...) and initiate the following commands:\\ |
(The code paragraphs contain __always a single command line__, the bold formatted words in angular clips in between are standing for the corresponding __keystrokes__.)\\ | (The code paragraphs contain __always a single command line__, the bold formatted words in angular clips in between are standing for the corresponding __keystrokes__.)\\ | ||
[code]cd /tmp [/code]**[ENTER]** | [code]cd /tmp [/code]**[ENTER]** | ||
Line 1012: | Line 798: | ||
[code]cp copfilter_havp copfilter_havp_backup[/code] | [code]cp copfilter_havp copfilter_havp_backup[/code] | ||
- | //**Open file for editing:**//\\ | + | //**Open file for editing:**// |
[code]nano copfilter_havp[/code] | [code]nano copfilter_havp[/code] | ||
- | //**Or:**//\\ | + | //**Or:**// |
[code]vi copfilter_havp[/code] | [code]vi copfilter_havp[/code] | ||
- | //**Replace:**//\\ | + | //**Replace:**// |
<code># COPFILTER START - havp - do not modify | <code># COPFILTER START - havp - do not modify | ||
acl copfilter_all src 0.0.0.0/0.0.0.0 | acl copfilter_all src 0.0.0.0/0.0.0.0 | ||
Line 1031: | Line 817: | ||
# COPFILTER END - havp - do not modify</code> | # COPFILTER END - havp - do not modify</code> | ||
- | //**With:**//\\ | + | //**With:**// |
<code - copfilter_havp_acl># COPFILTER START - havp - do not modify | <code - copfilter_havp_acl># COPFILTER START - havp - do not modify | ||
acl copfilter_all src 0.0.0.0/0.0.0.0 | acl copfilter_all src 0.0.0.0/0.0.0.0 | ||
Line 1047: | Line 833: | ||
# COPFILTER END - havp - do not modify</code> | # COPFILTER END - havp - do not modify</code> | ||
- | //**These two lines are important:**//\\ | + | //**These two lines are important:**// |
<code>acl NOSCAN dstdomain www.websitehere.de | <code>acl NOSCAN dstdomain www.websitehere.de | ||
always_direct allow NOSCAN</code> | always_direct allow NOSCAN</code> | ||
//**...don't forget to save!**\\ | //**...don't forget to save!**\\ | ||
- | Thus, this setting is stored permanently on IPCop and Copfilter can still change the settings through the GUI, without overwriting these entries.\\ | + | Thus, this setting is stored permanently on IPCop and Copfilter can still change the settings through the GUI, without overwriting these entries. |
- | \\ | + | |
- | **Next, restart HAVP via console:**//\\ | + | **Next, restart HAVP via console:**// |
[code]/usr/local/bin/copfilter_restarthavp[/code] | [code]/usr/local/bin/copfilter_restarthavp[/code] | ||
- | //**Or restart HAVP via GUI.**//\\ | + | //**Or restart HAVP via GUI.**// |
- | //If you wish to exclude other sites of HAVP, separated by a space, eg://\\ | + | //If you wish to exclude other sites of HAVP, separated by a space, eg:// |
[code]acl NOSCAN dstdomain www.websitehere.de anotherwebseite.com[/code] | [code]acl NOSCAN dstdomain www.websitehere.de anotherwebseite.com[/code] | ||
- | |||
- | ---- | ||
<note> | <note> | ||
- | [size=15]**[color=red]Please note:[/color]**[/size]\\ | + | [size=15]**[color=red]Please note:[/color]**[/size] |
* [color=red]This somewhat complicated procedure about editing 'copfilter_havp' is necessary so that these changes are not overwritten when Copfilter or Squid restart - upon restarting HAVP they will be placed in '/var/ipcop/proxy/**squid.conf**'.[/color] | * [color=red]This somewhat complicated procedure about editing 'copfilter_havp' is necessary so that these changes are not overwritten when Copfilter or Squid restart - upon restarting HAVP they will be placed in '/var/ipcop/proxy/**squid.conf**'.[/color] | ||
</note> | </note> | ||
- | |||
- | ---- | ||
=== Note === | === Note === | ||
Line 1092: | Line 874: | ||
http_access deny ipacl</code> | http_access deny ipacl</code> | ||
\\ | \\ | ||
- | An overview of the Squid access list options can be found here: [url]http://wiki.squid-cache.org/SquidFaq/SquidAcl[/url] | + | An overview of the Squid access list options can be found here:\\ |
- | \\ | + | [url]http://wiki.squid-cache.org/SquidFaq/SquidAcl[/url] |
- | \\ | + | |
- | ====== ====== | + | {{ :images:line.png?nolink |}} |
- | ---- | + | |
- | ---- | + | |
<style background-lwhite center> | <style background-lwhite center> | ||
- | <style background-lwhite float-left><sup>[[:en:bugfixes|Bugfixes]]</sup></style> | + | <style background-lwhite float-left>[size=11][[:en:bugfixes|Bugfixes]][/size]</style> |
- | <style background-lwhite float-right><sup>[[:en:howtos|HowTos]]</sup></style> | + | <style background-lwhite float-right>[size=11][[:en:howtos|HowTos]][/size]</style> |
- | <style background-lwhite><sup>[[:en:sitemap#sitemap|Sitemap]]</sup></style> | + | <style background-lwhite>[size=11][[:en:sitemap#sitemap|Sitemap]][/size]</style> |
</style> | </style> |