Find the answer to your Linux question:
Results 1 to 3 of 3
Folks...I just set up a new web server and am wondering how the following iptables commands look to the more experienced: iptables -A INPUT -s xxx.xx.xxx.xxx -j REJECT iptables-save > ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    Question debian (lenny release) ip reject

    Folks...I just set up a new web server and am wondering how the following iptables commands look to the more experienced:

    iptables -A INPUT -s xxx.xx.xxx.xxx -j REJECT

    iptables-save > /usr/sbin/iptables/rules

    Thanks for any advice offered.

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Should that command be a Reject all command? Or am I mistaken here?

    Have a look at: Iptables Tutorial 1.2.2
    Oh and a little advice. This is a Security Issue not a Debian one. So if you'd post it into the right area you'd get faster replys.
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2
    Thanks...but, I was looking for an answer re the commands noted.

    fwiw, the correct commands are:

    iptables -A INPUT -s xx.xx.xx.xx -j REJECT

    iptables-save > /usr/sbin/iptables-save

Posting Permissions

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