Re: How do i Block Adult Sites through IPTABLE

From: Nilesh (niluforalways_at_yahoo.com)
Date: 12/24/03

  • Next message: Thomas Fortner: "Dell Notebook video issue with X"
    To: redhat-list@redhat.com
    Date: Wed, 24 Dec 2003 04:57:26 -0800 (PST)
    
    

    Thanks you are helping me
    I have installed RedHat 8.0 that is with two eth card and runing as proxy server
     
    i have added rulesin rc.firewall file and proxy is working

    # Masquerade

    iptables -t nat -A POSTROUTING -o $EX_ETH -j MASQUERADE

    iptables -A OUTPUT -s $LOCAL_NET -o $EX_ETH -j ACCEPT

    # Turn on IP forwarding

    echo 1 > /proc/sys/net/ipv4/ip_forward

    so how can i block all adult sites

     

    Alexey Fadyushin <fab@s-tunnel.com> wrote:
    If you need to block the access to that sites locally (i.e. from the
    computer on which you run iptables, you can use the following command:

    iptables -A OUTPUT -d -j REJECT

    alternatively, yuo can add the following string to
    /etc/sysconfig/iptables
    (in the 'filter' table):

    -A OUTPUT -d -j REJECT

    If you want to block the access from another machine, for which your
    computer
    is acting as a router, you should change 'OUTPUT' to 'FORWARD' in the
    examples
    above.

    Alexey Fadyushin.
    Brainbench MVP for Linux.
    http://www.brainbench.com

    Nilesh wrote:
    >
    > Hello
    >
    > How do i block Adult XXX sites through iptables
    >
    > can any one help me
    >
    > Thanks
    >
    >
    > ----------------------------------------------------------------------
    > Do you Yahoo!?
    > Yahoo! Photos - Get your photo on the big screen in Times Square

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    ---------------------------------
    Do you Yahoo!?
    Yahoo! Photos - Get your photo on the big screen in Times Square
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Thomas Fortner: "Dell Notebook video issue with X"

    Relevant Pages

    • Re: Stupid Flickr question
      ... when I signed up for Flickr I was asked to ... create a Yahoo email addie as well. ... Imagine what a Facebook orchid group would look like. ... I also get an e-mail when a friend/contact posts new photos. ...
      (rec.gardens.orchids)
    • Re: [Full-disclosure] Fwd: n3td3v has a fan
      ... irresponsible of Yahoo to allow such photos to be taken by on-the-fly ... employees. ... why should Yahoo care about amateur ... Yahoo may suck enough to motivate a car bomb, but the owner of the gatehouse ...
      (Full-Disclosure)
    • Re: White People Rule Japan !!!
      ... >> Kotooshu Yahoo group http://sports.groups.yahoo.com/group/kotooshu/ has ... the photos are available only to "members". ... Moje da se registrira i s drug email. ...
      (soc.culture.bulgaria)
    • Re: [Full-disclosure] Fwd: n3td3v has a fan
      ... irresponsible of Yahoo to allow such photos to be taken by on-the-fly ... why should Yahoo care about amateur ... Yahoo may suck enough to motivate a car bomb, but the owner of the gatehouse ...
      (Full-Disclosure)
    • Re: Re[4]: Connection via proxy
      ... the nameservers I got from windows XP but got the same ... results after trying to run mozilla .. ... > MM> proxy.uvi.edu being the name of the proxy server ... > MM> Do you Yahoo!? ...
      (freebsd-questions)