Sunday, November 27, 2011

Alia El Mahdi–Nudity Vs Freedom of Expression

 

Recently the new  Alia Mahdi scene started creating a new wave in the already disrupted environment of Egypt. Story begins with a 22 year old girl names Alia Al Mahdi student of AUC ( Amercian University Cairo ) who uploaded her nude pics over internet in the name of so called freedom of expression. Not to mention that Egypt is a conservative Islamic country where religious values have very strong roots in the culture and ACTS like this can seriously offend millions of Muslims living.

Yes Egypt has long history of Military rule one after another and people have been living under emergency law that has build frustration among masses for not having complete freedom of expression. However to my experience still Egypt stand living standards better then allot of other countries.

 

news339611

To me reason of putting up self taken nude pic doesn't make any sense and by all means it has nothing to do with “Freedom of Speech/Expression”. To me its one of a kind so called protest to pose your self nude for nothing. For a Islamic country and under Islamic law this ACT certainly will put a very bad name although the girl already claims her self to be ATHIEST since she was 14 !

I guess there were 100 other ways to protest for the right of Freedom and I really wonder why she was left with only this option. To me this is certainly a cheap attempt to gain fame and in which actually she succeeded well.

 

news339612

And yea I must mention same girl is in love with a guy who is far older then the girl and they have been sharing the same place to live !  to sum-up the matter the way she choose is absolutely not the right way and the hidden agenda is just to gain some cheap nasty fame !

Linux (CentOS/RHEL) : Squid+Dansguardian + Antivirus (ClamAV)

 

I’ll explain here how to setup a web proxy with antivirus capabilities

We will use these tools : Squid + ClamAV + a patched version of DansGuardian

We will be needing following tools to get this task done

Squid : www.squid-cache.org
ClamAV : www.clamav.net
DansGuardian : dansguardian.org

Note: You can download Squid rpm from the default RHEL/CentOS repo.

Requirements for Squid:

Squid should be running on port 3128

should only entertain request from localhost

/etc/squid/squid.conf :
http_port 3128
acl localhost src 127.0.0.0/255.0.0.0
http_access allow localhost
http_access deny all

Install DansGuardian with the antivirus plugin from SecurityTeam.us repo :

Install the SecurityTeamUS repo :
rpm -ihv http://repo.securityteam.us/repository/redhat/securityteamus-repo-latest.rpm

Install DansGuardian-av and its dependencies (included on SecurityTeamUS) :

yum install dansguardian-av

Output :
Setting up Install Process
Setting up repositories
SecurityTeamUS 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 30 kB 00:00
SecurityTe: ################################################## 68/68
Added 68 new packages, deleted 0 old in 0.88 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dansguardian-av to pack into transaction set.
dansguardian-av-2.8.0.6-1 100% |=========================| 24 kB 00:00
---> Package dansguardian-av.i386 0:2.8.0.6-1 set to be updated
--> Running transaction check
--> Processing Dependency: libclamav.so.1 for package: dansguardian-av
--> Processing Dependency: clamd for package: dansguardian-av
--> Processing Dependency: libesmtp.so.5 for package: dansguardian-av
--> Processing Dependency: libesmtp for package: dansguardian-av
--> Processing Dependency: clamav for package: dansguardian-av
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libesmtp to pack into transaction set.
libesmtp-0.8.12-1.i386.rp 100% |=========================| 4.9 kB 00:00
---> Package libesmtp.i386 0:0.8.12-1 set to be updated
---> Downloading header for clamd to pack into transaction set.
clamd-0.88.7-1.i386.rpm 100% |=========================| 4.7 kB 00:00
---> Package clamd.i386 0:0.88.7-1 set to be updated
---> Downloading header for clamav to pack into transaction set.
clamav-0.88.7-1.i386.rpm 100% |=========================| 7.4 kB 00:00
---> Package clamav.i386 0:0.88.7-1 set to be updated
--> Running transaction check
--> Processing Dependency: clamav-db = 0.88.7-1 for package: clamav
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for clamav-db to pack into transaction set.
clamav-db-0.88.7-1.i386.r 100% |=========================| 2.6 kB 00:00
---> Package clamav-db.i386 0:0.88.7-1 set to be updated
--> Running transaction check
.
Dependencies Resolved
.
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
dansguardian-av i386 2.8.0.6-1 SecurityTeamUS 309 k
Installing for dependencies:
clamav i386 0.88.7-1 SecurityTeamUS 944 k
clamav-db i386 0.88.7-1 SecurityTeamUS 7.3 M
clamd i386 0.88.7-1 SecurityTeamUS 64 k
libesmtp i386 0.8.12-1 SecurityTeamUS 176 k
.
Transaction Summary
=============================================================================
Install 5 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 8.8 M
Is this ok [y/N]: y

.
Start ClamAV daemon :
service clamd start

By default, clamd should listen on 127.0.0.1:3310

Set up DansGuardian-av this way :
reportinglevel = 3
languagedir = '/etc/dansguardian/languages'
language = 'ukenglish'
loglevel = 3
logexceptionhits = on
logfileformat = 1
loglocation = '/var/log/dansguardian/access.log'
filterip =
filterport = 8080
proxyip = 127.0.0.1
proxyport = 3128
nonstandarddelimiter = on
usecustombannedimage = 1
custombannedimagefile = '/etc/dansguardian/transparent1x1.gif'
filtergroups = 1
filtergroupslist = '/etc/dansguardian/filtergroupslist'
bannediplist = '/etc/dansguardian/bannediplist'
exceptioniplist = '/etc/dansguardian/exceptioniplist'
banneduserlist = '/etc/dansguardian/banneduserlist'
exceptionuserlist = '/etc/dansguardian/exceptionuserlist'
showweightedfound = on
weightedphrasemode = 0
urlcachenumber = 3000
urlcacheage = 900
phrasefiltermode = 2
preservecase = 0
hexdecodecontent = 0
forcequicksearch = 0
reverseaddresslookups = off
reverseclientiplookups = off
createlistcachefiles = on
maxuploadsize = -1
maxcontentfiltersize = 256
usernameidmethodproxyauth = on
usernameidmethodident = off
preemptivebanning = on
forwardedfor = off
usexforwardedfor = off
logconnectionhandlingerrors = on
maxchildren = 120
minchildren = 8
minsparechildren = 4
preforkchildren = 6
maxsparechildren = 32
maxagechildren = 500
ipcfilename = '/tmp/.dguardianipc'
urlipcfilename = '/tmp/.dguardianurlipc'
pidfilename = '/var/run/dansguardian.pid'
nodaemon = off
nologger = off
daemonuser = 'nobody'
daemongroup = 'nobody'
softrestart = off
virusscan = on
virusengine = 'clamav'
tricklelength = 32768
forkscanlength = 32768
firsttrickledelay = 10
followingtrickledelay = 10
maxcontentscansize = 41904304
virusscanexceptions = on
urlcachecleanonly = on
virusscannertimeout = 60
notify = 2 # will notify the admin only
emaildomain = 'domain.be'
postmaster = 'admin@domain.be'
emailserver = '127.0.0.1:25'
downloaddir = '/tmp/dgvirus'
clmaxfiles = 1500
clmaxreclevel = 3
clmaxfilesize = 10485760
clblockencryptedarchives = off
cldetectbroken = off
clamdsocket = '127.0.0.1:3310'

This is my configuration, please review it to match your needs

Make sure dansguardian will start at boot :
chkconfig dansguardian on

Start DansGuardian :
service dansguardian start

Now, you can set up your browser preference to use the antivirus web proxy (IP:8080)

If you want to set dansguardian as a transparent proxy :
1. Edit /etc/squid/squid.conf and add :
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

2. Type this at the command prompt (where your local subnet is 10.0.0.0/24 and your LAN interface is eth0) :
iptables -t nat -A PREROUTING -i eth0 -s 10.0.0.0/24 -p tcp --dport 80 -j REDIRECT --to-port 8080

3. Save your iptables configuration, type :
iptables-save > /etc/sysconfig/iptables

Squid logs can be tailed here :
tail -f /var/log/squid/access.log

DansGuardian logs can be tailed here :
tail -f /var/log/dansguardian/access.log

Android Vs Symbian


This question is in many people’s mind that which one is the best : Android orSymbian ?

As we think according to its birth basis, android is the latest so we can say it will have all latest features so it is the best but at other end we aslo think that old is gold and become confused in between android and Symbian os.
Here is useful  comparison of both android and symbian operating systems :
1) OPERATING SOFTWARE orFIRMWARE
so if you got an symbian phone suppose an. s60v3 and now you want an s60v5 then all you can do is trash your old phone and buy a new s60v5 by spending cash (like I did)
but if you have an android phone with suppose an 1.6 android version running and you want to upgrade to 2.1 android version then all you have to do is do asoftware upgrade through your phone or by using a computer and as soon as the upgrade is finished you have your 1.6 replaced by 2.1 giving you newadded features and some new user interface, no need of wasting your moneyon buying new cell phones
2). FLASHING Your phone with new FIRMWARE
If you are a SYMBIAN user and hate the looks of your phones menu style then you have 2 options to change those looks
a – install a new theam for your phone or
b – flash your. phone with new firmware or rom by using a computer
now everybody knows this is a risky procedure and if anything goes wrong your phone will be dead
but if you r an ANDROID user and want to do the same then you have 3 options
a) – either install new theme
b) – either install new menu launcher
c) – flash your phone with new custom firmware
you will need to download a new firmware or rom from internet. and flash it using your phone only by just using the RECOVERY MENU of your phone and if anything goes wrong and your phone is dead then you can actually get back your phone in working condition from the recovery menu itself
it’s as simple as clicking the button. and everything in your phone will be like before nothing ever happened and all this can be dont from your phone itself no need of looking at the computer.
3) – CHANGING PHONE FEATURES
if u use a. SYMBIAN phone and want to change the way how your menu looks. the way how your gallery looks and how your videos. and music liabrary looks and how your notes and documents and messages, mms, and phone book looks the way your browser and file manager looks.
then you can download and install new applications available out there and use them for the purpose but that will take all your precious phone memory and also will not act. as your. default. application. if you don’t want this to happen then you. can find a custom firmware for your phone that satisfy all your needs and flash it but that’s risky as we saw before
but in an android. you can acctually do little tweaks and treaks. by removing your default file browser and downloading. and installing new file browser. that’s it no risky stuff no memorry eaten by an extra useless application tht you don’t need. and the new downloaded application act as your default. application
4) PROCESSOR and its SPEED
Now processor is very important to run high end applications, in a symbian phone you cannot see what speed your processor runs on
In an android there are some applications. that not only gives you look of your processor speed. but also can help you control it and help you save your battery by going to minimum speed or help you run high end applications on your. phone smoothly by going to maximum speed.
not only that you can overcloack. yor processor
like my phone processor is 512mhz. and its his max speed
but i overclocked it to 712mhz. now I have smoother phone
d)- money spent on phone
take a NOKIA 5800xm phone and now take a. NOKIA N8
check out the difference
u got bigger screen, bigger processor, good camera that’s it rest is same like same menu view, same file browser and messaging and call log browser
same application can be downloaded and just higher graphics in THE N8 and same. wifi and 3g and gps
but i think i can acctually do with NOKIA 5800 rather then buying expensive n8.
(5) MODIFICATIONS
symbian phones does not allow users to do modifications with their phones
but why if you bought the phone its yours, its not nokias phone anymore
android people say its your phone now so go ahed and do anything you want.