Re: i want to deny the access to facebook in my machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 27 Jun 2009 23:37:02 +1000
"Michael D. Setzer II" <mikes@xxxxxxxxxxxxxxxx> wrote:

> On 27 Jun 2009 at 14:22, Adel ESSAFI wrote:
> 
> > 
> > 
> > 
> > Hi 
> > thanks, 
> > But actually, it does not work 
> > 
> > [root@localhost ~]# iptables -I OUTPUT -d 69.63.178.11 -j DROP
> > [root@localhost ~]# iptables -I OUTPUT -d 69.63.184.142 -j DROP
> > [root@localhost ~]# iptables -I OUTPUT -d 69.63.176.140 -j DROP
> > [root@localhost ~]# service iptables restart
> > iptables: Suppression des règles du pare-feu: [ OK ]
> > iptables: Configuration des chaînes sur la politique ACCEP[ OK ]er
> > iptables: Déchargement des modules: [ OK ]
> > iptables: Application des règles du pare-feu: [ OK ]
> > [root@localhost ~]# telnet www.facebook.com 80
> > Trying 69.63.186.11...
> > Connected to www.facebook.com.
> > Escape character is '^]'.
> 
> you would need to check all the ip address. 
> dig facebook.com
> gives some numbers
> but 
> dig www.facebook.com 
> gives other addresses.
> 
> You would probable have to check all those, and the numbers could
> change. You could also put a dummy record in hosts file for face book
> depending on how the name resolution is done. 
> 
> 
> 
> > 
> > 
> > 
> > Have you any idea why it does not work.
> > 
> > 
> > regards
> > Adel
> > 
> > 
> > 
> > 2009/6/27 Adam Stokes <adam.stokes@xxxxxxxxx>
> >     On Sat, 27 Jun 2009 14:09:13 +0200
> >     Adel ESSAFI <adelessafi@xxxxxxxxx> wrote:
> >     
> >     > Hi list
> >     >
> >     >
> >     > I am using f11 and I want to deny the access to facebook in my
> >     > machine.
> >     >
> >     > I know that I have to use iptable but I find that very
> >     > complicated. Can some one help me.
> >     >
> >     > what commande should I use to make that.
> >     >
> >     > regards
> >     > Adel
> >     >
> >     >
> >     >
> > 
> >     iptables -I OUTPUT -d 69.63.178.11 -j DROP
> >     iptables -I OUTPUT -d 69.63.184.142 -j DROP
> >     iptables -I OUTPUT -d 69.63.176.140 -j DROP
> >     
> >     --
> >     fedora-list mailing list
> >     fedora-list@xxxxxxxxxx
> >     To unsubscribe:
> > https://www.redhat.com/mailman/listinfo/fedora-list Guidelines:
> > http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
> > 
> > 
> > 
> > -- 
> > http://ilovefedora.blogspot.com/
> > 
> > -- 
> > 
> > PhD candidate in Computer Science
> > Address    
> > BP 108, Bureau de poste Tunis republique 
> > 1001 Tunis
> > Tunisia
> > tel: +216 97 246 706
> > fax: +216 71 391 166
> 
> 
> +----------------------------------------------------------+
>   Michael D. Setzer II -  Computer Science Instructor      
>   Guam Community College  Computer Center                  
>   mailto:mikes@xxxxxxxxxxxxxxxx                            
>   mailto:msetzerii@xxxxxxxxx
>   http://www.guam.net/home/mikes
>   Guam - Where America's Day Begins                        
> +----------------------------------------------------------+
> 
> http://setiathome.berkeley.edu (Original)
> Number of Seti Units Returned:  19,471
> Processing time:  32 years, 290 days, 12 hours, 58 minutes
> (Total Hours: 287,489)
> 
> BOINC@HOME CREDITS
> SETI 8,048,437.9754 | EINSTEIN 2,665,502.4609 | ROSETTA 
> 992,359.8863
> 
> 

or use a proxy which i think would be easier than dealing with iptables
and what not. something like squid would work though ive never used any
other proxies as there may be one a little more lightweight :)

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux