Results 1 to 4 of 4

Thread: Block ip range using iptables in Ubuntu 9.04

  1. #1
    Join Date
    Jul 2009
    Posts
    69

    Block ip range using iptables in Ubuntu 9.04

    I have hosted a small web server for our lan. The problem is our ISP is WiMAX and all the customers can access anything on the network no wonder where you stay [geographic location]. I have heard the in ubuntu 9.04 you can block ip range using iptables. But i don't know how to do it. Can anyone help me with this? Thanks in advance...

  2. #2
    Join Date
    Jan 2009
    Posts
    710

    Re: Block ip range using iptables in Ubuntu 9.04

    Have a look at these threads, may be they could help :
    How can I block or ban Ip address range?
    Block the entire range of IP address in Linux using hosts.deny
    How to Filter Mac Address Using Iptables ?
    If you still have difficulties, do post back...

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: Block ip range using iptables in Ubuntu 9.04

    Suppose you want to block an IP address range starting from 192 and the ip is 192.168.32.55, type this in console :
    Code:
    sbin/iptables -I INPUT -s 192.0.0.0/255.0.0.0 -j DROP
    This will block all the IP address from 192.0.0.0 to 192.255.255.255

  4. #4
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Block ip range using iptables in Ubuntu 9.04

    You can add the to be banned IP to the iptable files whose location is : "/etc/sysconfig/iptables". Add the IP address(es) to be banned/blocked... Hope this helps you...

Similar Threads

  1. How to add firewall with IP range to block Google Update
    By Bhuvana21 in forum Networking & Security
    Replies: 5
    Last Post: 11-06-2011, 10:33 PM
  2. Does anyone knows to block UDP protocols in iptables in ubuntu
    By Madirakshi in forum Networking & Security
    Replies: 5
    Last Post: 14-11-2010, 12:06 AM
  3. Iptables block ip address
    By Soggy Bottom in forum Networking & Security
    Replies: 4
    Last Post: 12-11-2009, 10:49 AM
  4. How can I block or ban Ip address range?
    By Drogbaa in forum Windows Software
    Replies: 3
    Last Post: 18-06-2009, 11:12 AM
  5. Block the entire range of IP address in Linux using hosts.deny
    By Sonic in forum Networking & Security
    Replies: 3
    Last Post: 29-05-2009, 06:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,593,542.07833 seconds with 17 queries