Changeset 13863 in genesis
- Timestamp:
- May 9, 2017, 6:43:17 AM (8 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/global_rdr_rules.yaml
r13862 r13863 1 1 global_rdr_rules : 2 - ['tcp', 9070, '172.16.16.2', 80 ]3 - ['tcp', 9080, '172.17.0.41', 80 ]4 - ['tcp', 9081, '172.17.0.42', 554 ]5 - ['tcp', 9082, '172.17.0.43', 554 ]6 - ['tcp', 9083, '172.17.0.44', 80 ]7 - ['tcp', 9084, '172.17.0.43', 80 ]8 - ['tcp', 9085, '172.17.0.42', 80 ]9 - ['tcp', 9086, '172.17.0.45', 21 ]10 - ['tcp', 9087, '172.17.0.45', 3389 ]11 - ['tcp', 9088, '172.16.6.229', 9081 ]12 - ['tcp', 9090, '172.17.2.67', 80 ]13 - ['tcp', 9091, '172.16.9.237', 88 ]14 - ['tcp', 9092, '172.17.51.5', 80 ]15 - ['tcp', 9093, '172.17.51.5', 554 ]16 - ['tcp', 9096, '172.17.13.66', 88 ]17 - ['tcp', 9097, '172.17.52.10', 88 ]18 - ['tcp', 9099, '172.16.9.116', 80 ]19 - ['tcp', 9100, '172.16.9.202', 88 ]20 - ['tcp', 9101, '172.17.192.2', 88 ]2 - ['tcp', 9070, '172.16.16.2', 80, ''] 3 - ['tcp', 9080, '172.17.0.41', 80, ''] 4 - ['tcp', 9081, '172.17.0.42', 554, ''] 5 - ['tcp', 9082, '172.17.0.43', 554, ''] 6 - ['tcp', 9083, '172.17.0.44', 80, ''] 7 - ['tcp', 9084, '172.17.0.43', 80, ''] 8 - ['tcp', 9085, '172.17.0.42', 80, ''] 9 - ['tcp', 9086, '172.17.0.45', 21, ''] 10 - ['tcp', 9087, '172.17.0.45', 3389, ''] 11 - ['tcp', 9088, '172.16.6.229', 9081, ''] 12 - ['tcp', 9090, '172.17.2.67', 80, ''] 13 - ['tcp', 9091, '172.16.9.237', 88, ''] 14 - ['tcp', 9092, '172.17.51.5', 80, ''] 15 - ['tcp', 9093, '172.17.51.5', 554, ''] 16 - ['tcp', 9096, '172.17.13.66', 88, ''] 17 - ['tcp', 9097, '172.17.52.10', 88, ''] 18 - ['tcp', 9099, '172.16.9.116', 80, ''] 19 - ['tcp', 9100, '172.16.9.202', 88, ''] 20 - ['tcp', 9101, '172.17.192.2', 88, 'Koe Klara'] -
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.