Results 1 to 2 of 2
  1. #1

    Challenge: Block all IP addresses except one from accessing server.

    The subject pretty much says it all. A simple implementation / reversal is what we are looking for.

    Thanks.

  2. #2
    Join Date
    Nov 2001
    Location
    Philadelphia, Pa
    Posts
    948
    Block from what? SSH? HTTP? Everything?

    iptables -P INPUT DROP
    iptables -A INPUT -p tcp -s xxx.xxx.xxx.xxx -j accept

Posting Permissions

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