- Timestamp:
- May 9, 2017, 6:43:17 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13861 r13863 1179 1179 # Redirect some internal facing services outside (7) 1180 1180 # INFO: {{ global_rdr_rules|count }} global_rdr_rules active on this node. 1181 {% for protocol, src_port,dest_ip,dest_port in global_rdr_rules -%}1182 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ dest_ip }} port {{ dest_port }}1181 {% for protocol, src_port,dest_ip,dest_port,comment in global_rdr_rules -%} 1182 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ "-%14s"|format(dest_ip) }} port {{ "%4s"|format(dest_port) }} # {{ comment }} 1183 1183 {% endfor -%} 1184 1184 # INFO: {{ rdr_rules|count }} node specific rdr_rules defined. 1185 {% for protocol, src_port,dest_ip,dest_port in rdr_rules -%}1186 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ dest_ip }} port {{ dest_port }} 1185 {% for protocol, src_port,dest_ip,dest_port,comment in rdr_rules -%} 1186 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ dest_ip }} port {{ dest_port }} # {{ comment }} 1187 1187 {% endfor -%} 1188 1188 """).render(datadump)
Note:
See TracChangeset
for help on using the changeset viewer.