General discussion

  • Creator
    Topic
  • #2300769

    block internet

    Locked

    by mr_subodh ·

    Hi
    I have linux server and i have configure proxy through my Linux server.I want disable internet
    from some client.is this possible some particular ip address can access internet.

All Comments

  • Author
    Replies
    • #3541234

      block internet

      by jerome ·

      In reply to block internet

      you can do it in two ways..
      1. setup a firewall (iptables) and add some
      rules that would block incomming request for
      specific IP’s

      iptables -A input -i NIC_INTERFACE -p tcp -s
      BANNED_IPorRANGE –dport PROXY_PORT -j REJECT

      2. if your using squid you may want to check the
      squid.conf

    • #3535550

      block internet

      by whw ·

      In reply to block internet

      While iptables or ipchains will most certainly do the trick, you might try looking at squidGuard (assuming the proxy you’re using is squid). It offers a few more “bells and whistles” than either iptables or ipchains and is very easily configured.

Viewing 1 reply thread