The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Iptables question

Discussion in 'General Discussion' started by bsasninja, Mar 14, 2008.

  1. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    528
    Likes Received:
    0
    Trophy Points:
    16
    I have a doubt with iptables. The following rule blocks all traffic from a certain ip:

    iptables -I INPUT -s xx.xx.xx.xx -j DROP

    Which is the rule to only drop 25 port traffic and accept all the rest for that ip ??

    Thank you
     
  2. g-fox

    g-fox Registered

    Joined:
    Jun 29, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    iptables -A INPUT -s x.x.x.x -p tcp --dport 25 -j DROP

    this rule drop TCP traffic from x.x.x.x source and destination port 25
     
    #2 g-fox, Mar 31, 2008
    Last edited: Mar 31, 2008
  3. izmirhost

    izmirhost Member

    Joined:
    Jun 17, 2005
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    can I block all SYN_RECV requests on 25 port?
     
Loading...

Share This Page