Changeset 10705 in genesis
- Timestamp:
- May 7, 2012, 2:52:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10703 r10705 85 85 'motd', 86 86 'ntp.conf', 87 'pf.hybrid.conf.local', 87 88 'wleiden.yaml', 88 89 ] … … 787 788 788 789 790 def generate_pf_hybrid_conf_local(datadump): 791 """ Generate configuration file '/etc/pf.hybrid.conf.local' """ 792 datadump['autogen_header'] = generate_header("#") 793 datadump['rdr_rules' ] = ('8081', '172.16.4.46', 'http') 794 return Template("""\ 795 {{ autogen_header }} 796 797 # Redirect some internal facing services outside (7) 798 # rdr on $ext_if inet proto tcp from any to $ext_if port 8081 tag SRV -> 172.16.4.46 port http 799 # XXX: Implement 800 """).render(datadump) 789 801 790 802 def generate_motd(datadump): … … 908 920 elif config == 'motd': 909 921 output += generate_motd(datadump) 922 elif config == 'pf.hybrid.conf.local': 923 output += generate_pf_hybrid_conf_local(datadump) 910 924 else: 911 925 assert False, "Config not found!"
Note:
See TracChangeset
for help on using the changeset viewer.