Home > Knowledge > SSH and iptables

SSH and iptables

  • -A INPUT -m tcp -p tcp –dport 22 -m state –state ESTABLISHED,RELATED -j ACCEPT
  • -A INPUT -m tcp -p tcp -s 10.1.0.0/24 –dport 22 -j ACCEPT
  • -A INPUT -m tcp -p tcp –dport 22 -m state –state NEW -m limit –limit 3/min –limit-burst 3 -j ACCEPT
  • -A INPUT -m tcp -p tcp –dport 22 -j DROP

Source: http://www.tummy.com/journals/entries/jafo_20050724_172920

บอกต่อ....
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Socialogs
  • Technorati
  • Twitter
  • email
Tags:
  1. No comments yet.
  1. No trackbacks yet.

Secured for spam by MLW and Associates, LLP's Super CAPTCHASecured by Super-CAPTCHA © 2009-2010 MLW & Associates, LLP. All rights reserved.