[BACK]Return to relayd.conf CVS log [TXT][DIR] Up to [local] / src / etc

Annotation of src/etc/relayd.conf, Revision 1.3

1.3     ! pyr         1: # $OpenBSD: hoststated.conf,v 1.2 2007/02/13 10:16:05 pyr Exp $
1.1       pyr         2: #
                      3: # Macros
                      4: #
                      5: webhost1="10.0.0.1"
                      6: webhost2="10.0.0.2"
                      7:
                      8: #
                      9: # Global Options
                     10: #
                     11: # interval 10
                     12: # timeout 200
                     13:
                     14: #
                     15: # Each table will be mapped to a pf table.
                     16: #
                     17: table webhosts {
1.2       pyr        18:        real port http
1.1       pyr        19:        check http "/" code 200
1.2       pyr        20:        host $webhost1
                     21:        host $webhost2
1.1       pyr        22: }
                     23:
                     24: table fallback {
1.2       pyr        25:        real port http
1.1       pyr        26:        check icmp
                     27:        host 127.0.0.1
                     28: }
                     29:
                     30: #
                     31: # Services will be mapped to a rdr rule.
                     32: #
                     33: service www {
1.3     ! pyr        34:        virtual host 192.168.1.1 port http interface trunk0
1.1       pyr        35:
                     36:        # tag every packet that goes thru the rdr rule with HOSTSTATED
                     37:        tag HOSTSTATED
                     38:
                     39:        table webhosts
                     40:        backup table fallback
                     41: }