LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-16-2009, 05:58 AM   #1
fedora10
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
creat whitelist under fedora


Hi

I installed squidGuard under Fedora10 also i configured the blacklists. its working very well now i need to autorise one web site inside the blacklist ,so i need to creat the whitelist if you can help me how to creat this file i will be thankful.

Many thanks
 
Old 11-16-2009, 09:14 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by fedora10 View Post
Hi

I installed squidGuard under Fedora10 also i configured the blacklists. its working very well now i need to autorise one web site inside the blacklist ,so i need to creat the whitelist if you can help me how to creat this file i will be thankful.

Many thanks
If it's not already defined you'll need to define the whitelist and setup an acl entry/modify the default acl entry. Order is important.

Code:
dest white {
        domainlist      w/domainlist
        urllist         w/urllist
}

acl {
        default {
                pass    white !porn !warez all
                redirect http://domain.tld/block.html
                }
}
 
Old 11-16-2009, 09:28 AM   #3
fedora10
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rweaver View Post
If it's not already defined you'll need to define the whitelist and setup an acl entry/modify the default acl entry. Order is important.

Code:
dest white {
        domainlist      w/domainlist
        urllist         w/urllist
}

acl {
        default {
                pass    white !porn !warez all
                redirect http://domain.tld/block.html
                }
}
thank you

but please you know how can i creat this file white in fedora

many thanks
 
Old 11-17-2009, 05:42 AM   #4
fedora10
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fedora10 View Post
thank you

but please you know how can i creat this file white in fedora

many thanks
someone can help me please , I m blocked in this step

thank you
 
Old 11-17-2009, 11:11 AM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
You need to add/modify that into your configuration then you create a directory called w and a file called domainlist and urllist and put the domains and urls you wish to whitelist in there.
 
Old 11-19-2009, 04:16 AM   #6
fedora10
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rweaver View Post
You need to add/modify that into your configuration then you create a directory called w and a file called domainlist and urllist and put the domains and urls you wish to whitelist in there.
Thank you rweaver

i try to creat like this file:
gedit/var/squidGuard/blacklists/whitelist

i need to create inside this folder /var/squidGuard/blacklists

but not working, i m beginner in fedora i will be thankful if you help me

Many thanks

ALL the Best
 
Old 11-19-2009, 03:01 PM   #7
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by fedora10 View Post
Thank you rweaver

i try to creat like this file:
gedit/var/squidGuard/blacklists/whitelist

i need to create inside this folder /var/squidGuard/blacklists

but not working, i m beginner in fedora i will be thankful if you help me

Many thanks

ALL the Best

Try

Code:
mkdir -p /var/squidGuard/whitelists
gedit /var/squidGuard/whitelists/urllist
gedit /var/squidGuard/whitelists/domainlist
Make sure the path matches what you specify in the configuration

eg:
Code:
        domainlist      whitelists/domainlist
        urllist         whitelists/urllist
 
Old 11-20-2009, 08:18 AM   #8
fedora10
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rweaver View Post
Try

Code:
mkdir -p /var/squidGuard/whitelists
gedit /var/squidGuard/whitelists/urllist
gedit /var/squidGuard/whitelists/domainlist
Make sure the path matches what you specify in the configuration

eg:
Code:
        domainlist      whitelists/domainlist
        urllist         whitelists/urllist
Thank you

so i creat this but when i do gedit /var/squidGuard/whitelists/urllist i have this message

gedit:12329): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

another question ,
if i need to add some web site inside whitelist how can i do ?

tahnk you
 
Old 11-20-2009, 02:24 PM   #9
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
use vi or pico/nano instead of gedit.
 
Old 11-23-2009, 08:40 AM   #10
fedora10
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rweaver View Post
use vi or pico/nano instead of gedit.
another question ,
if i need to add some web site inside whitelist how can i do ?

tahnk you
 
Old 11-23-2009, 11:10 AM   #11
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by fedora10 View Post
another question ,
if i need to add some web site inside whitelist how can i do ?

tahnk you
Add them to the domainlist or urllist file as appropriate.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SpamDyke - Plesk - Fedora 4 - How do I config blacklist, and whitelist? yanghwanim Linux - Newbie 4 06-08-2009 08:20 PM
Whitelist mahmoud Linux - General 2 06-27-2008 06:50 AM
Whitelist kool_kid Red Hat 6 07-05-2007 12:08 PM
whitelist for postfix xlh3110 Linux - Server 2 11-15-2006 09:29 AM
Sendmail : Whitelist Skip-DMP Linux - Software 5 04-11-2006 10:38 AM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration