From b5a46a6cb962bfe94974a63bc5f3e89d0f9787bf Mon Sep 17 00:00:00 2001 From: cn Date: Sun, 8 Jul 2012 21:54:05 +0200 Subject: [PATCH] iptables: highlight important options and numbers --- iptables.jsf | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/iptables.jsf b/iptables.jsf index fdc8c05..7eb9b01 100644 --- a/iptables.jsf +++ b/iptables.jsf @@ -6,8 +6,9 @@ =Escape bold cyan =Bad bold red -=Table bold blue -=Policy fg_310 # brown +=Table bold +=Policy bold blue +=Option fg_310 # brown :line_start Idle * rest noeat @@ -15,6 +16,7 @@ "*" maybe_table buffer ":" default_policy recolor=-1 "C" maybe_commit buffer + "-" command :rest Idle * rest @@ -51,6 +53,64 @@ done * bad noeat "\n" line_start +:command Idle + * bad noeat + "ADINX" chain_name_pre + +:chain_name_pre Idle + * chain_name noeat + " " chain_name_pre + +:chain_name Option + * chain_name + " " rule_spec + +:rule_spec Idle + * rule_option noeat + " " rule_spec + "\n" line_start + +:rule_option Idle + * rule_option + " " rule_spec + "\n" line_start + "-" rule_flag + +:rule_flag Idle + * rule_option + "-" rule_flag_flag + "iojp" rule_iojp_pre + "sd" rule_sd_pre + +:rule_flag_flag Idle + * rule_flag_flag1 buffer + +:rule_flag_flag1 Idle + * rule_option noeat strings + "sport" rule_sd_pre + "dport" rule_sd_pre +done + "a-z-_" rule_flag_flag1 + + +:rule_iojp_pre Idle + * rule_iojp noeat + " " rule_iojp_pre + +:rule_iojp Option + * rule_iojp + " " rule_option + "\n" line_start + +:rule_sd_pre Idle + * rule_sd noeat + " " rule_sd_pre + +:rule_sd Constant + * rule_sd + " " rule_option + "\n" line_start + :bad Bad * bad "\n" line_start