Find the answer to your Linux question:
Results 1 to 3 of 3
hello; i need to make a rule on iptable that accept all traffics on port 80 on eth0 from 192.168.0.0/24 and 192.168.1.0/24 and 192.168.2.0/24 for other ip drop the packets. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    1

    iptables rules


    hello;
    i need to make a rule on iptable that accept all traffics on port 80 on eth0 from 192.168.0.0/24 and 192.168.1.0/24 and 192.168.2.0/24
    for other ip drop the packets.
    could you someone how can i do that by iptable?
    thank you

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Location
    London, UK
    Posts
    19
    How far have you got with this? Which docs have you read?

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Sounds like a homework question so I will just point you to this TUTORIAL
    To answer your question, YES, it can be done with iptables.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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