Signed-off-by: Stephen Gran <steve@lobefin.net>
@ferm::rule { "dsa-ssh":
description => "Allow SSH from DSA",
- rule => "proto tcp mod state state (NEW) dport (ssh) @subchain 'ssh' { saddr (\$SSH_SOURCES) ACCEPT; }"
+ rule => "&SERVICE_RANGE(tcp, ssh, \$SSH_SOURCES)"
}
@ferm::rule { "dsa-ssh-v6":
description => "Allow SSH from DSA",
domain => "ip6",
- rule => "proto tcp mod state state (NEW) dport (ssh) @subchain 'ssh' { saddr (\$SSH_V6_SOURCES) ACCEPT; }"
+ rule => "&SERVICE_RANGE(tcp, ssh, \$SSH_V6_SOURCES)"
}
}