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, 2 years and 329 days ago. Viewed 853 times. #1
[edit] [rdf]
labels
attachments

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"

(>>Source)

no comments | post comment

Virtual Dave Megaplex:

Internet Explorer 6 Users >>Click Here

(read this note about local search)

Logged in Users: (0)
… and a Guest.


Editing: snipsnap-help, Image Macro

Installed 2 years and 157 days ago
Powered By >>SnipSnap Version 1.0b1-uttoxeter

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt