Re: How do i Block Adult Sites through IPTABLE

From: Alexey Fadyushin (fab_at_s-tunnel.com)
Date: 12/24/03

  • Next message: Jason Dixon: "Re: using chkconfig"
    To: redhat-list@redhat.com
    Date: Wed, 24 Dec 2003 15:43:09 +0300
    
    

    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 <XXX_site_IP_address> -j REJECT

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

    -A OUTPUT -d <XXX_site_IP_address> -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
    

  • Next message: Jason Dixon: "Re: using chkconfig"

    Relevant Pages