Adding comments to iptables rules possible!

Home Page Forums Network Management ZeroShell Adding comments to iptables rules possible!

This topic contains 1 reply, has 0 voices, and was last updated by  aseques 9 years, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #41856

    aseques
    Member

    Just for the ones that don’t know. There’s a module a bit hidden in iptables that allows you to write comments on the rules.
    It’s specially useful in zeroshell since it’s the only way to have comments in the rules.
    You just have to add to a rule (i.e. traffic originating from 127.0.0.1) and in the command box write:
    -m comment –comment your_comment

    The rule will appear then as:
    ACCEPT all opt — in * out * 127.0.0.1 -> 0.0.0.0/0 /* your_comment *

    You should be able to use spaces also, but since zeroshell is translating the double quotes (“) into single quotes (‘), that is failing, you still can use underscores tough.

    enjoy

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.