Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Iptables question

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

  1. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    527
    Likes Received:
    0
    Trophy Points:
    166
    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:
    51
    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:
    151
    can I block all SYN_RECV requests on 25 port?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice