For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > iptables > iptables comments

iptables comments

Created by dave. Last edited by dave, 8 years and 213 days ago. Viewed 4,054 times. #1
[edit] [rdf]

Comments in IPTables Rules

To make an iptables rule with a comment, simply add on the following arguments to the rule:

-m comment --comment "limit ssh access"
Depending on your distribution, you may need to load the ipt_comment or xt_comment modules into your running kernel first.

A full iptables rule to limit ssh access would look something like this:

iptables -A INPUT -j DROP -p tcp --dport 22 -m comment --comment "limit ssh access"


no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt