Find the answer to your Linux question:
Results 1 to 2 of 2
Dear Sir, I want to give a browsing rights to the m/c having ip address of 192.168.0.4 only the following sites. IP ADDRESS OF THE SITES ARE 61.0.0.70 203.90.124.66 203.90.124.65 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    2

    How To Set Iptables Rules


    Dear Sir,

    I want to give a browsing rights to the m/c having ip address of 192.168.0.4 only the following sites.

    IP ADDRESS OF THE SITES ARE

    61.0.0.70
    203.90.124.66
    203.90.124.65

    How can I set a IPTABLES RULE

    PLEASE HELP ME

  2. #2
    Just Joined!
    Join Date
    Sep 2005
    Location
    New delhi
    Posts
    22
    This further needs your input about how do you provide internet avaiblability at your cilents .. through squid or with packet forwarding ?

    though..
    with squid you can use..
    iptables -A INPUT -s 192.168.0.4 -d 61.0.0.70 -j DROP
    iptables -A INPUT -s 192.168.0.4 -d 203.90.124.66 -j DROP
    iptables -A INPUT -s 192.168.0.4 -d 203.90.124.65 -j DROP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •