This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| frontend ft_puppetserver | |
| mode tcp | |
| bind <ip>:8140 | |
| option tcplog | |
| option ssl-hello-chk | |
| use_backend bk_puppetserver | |
| backend bk_puppetserver | |
| mode tcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| frontend ft_ipa | |
| mode http | |
| bind <IP>:80 | |
| bind <IP>:443 ssl crt /etc/haproxy/ssl/ipa.example.org.cert.pem | |
| redirect scheme https if !{ ssl_fc } | |
| use_backend bk_ipa | |
| backend bk_ipa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PrefixMiddleware(object): | |
| def __init__(self, app, prefix=''): | |
| self.app = app | |
| self.prefix = prefix | |
| def __call__(self, environ, start_response): | |
| print(environ['PATH_INFO']) | |
| if environ['PATH_INFO'].startswith(self.prefix): | |
| environ['PATH_INFO'] = environ['PATH_INFO'][len(self.prefix):] | |
| environ['SCRIPT_NAME'] = self.prefix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| frontend ft_ipa | |
| mode http | |
| bind 0.0.0.0:80 | |
| bind 0.0.0.0:443 ssl crt /etc/haproxy/ssl/ipa.example.org.pem | |
| redirect scheme https if !{ ssl_fc } | |
| use_backend bk_ipa | |
| backend bk_ipa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JobDefs { | |
| Name = default | |
| Type = Backup | |
| Write Bootstrap = "/var/spool/bacula/%n.bsr" | |
| Messages = Standard | |
| Pool = Default | |
| Full Backup Pool = Full | |
| Differential Backup Pool = Diff | |
| Incremental Backup Pool = Inc | |
| Schedule = WeeklyCycle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RUN yum install -y sssd-client | |
| ADD sss /etc/pam.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $TTL 1H | |
| @ SOA LOCALHOST. named-mgr.example.org (3 1h 15m 30d 2h) | |
| NS LOCALHOST. | |
| a.example.org A 192.168.1.100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcc -Wl,--verbose -O2 -Wno-system-headers -o curl curl-slist_wc.o curl-tool_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o curl-tool_cb_prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o curl-tool_cfgable.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o curl-tool_easysrc.o curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o curl-tool_help.o curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o curl-tool_libinfo.o curl-tool_main.o curl-tool_metalink.o curl-tool_mfiles.o curl-tool_msgs.o curl-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o curl-tool_paramhlp.o curl-tool_parsecfg.o curl-tool_strdup.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o curl-tool_util.o curl-tool_vms.o curl-tool_writeenv.o curl-tool_writeout.o curl-tool_xattr.o ../lib/curl-strtoofft.o ../lib/curl-nonblock.o ../lib/curl-warnless.o -L/usr/local/ssl/lib -L/usr/local/lib ../lib/.libs/libcurl.a -Wl,-Bstatic -lssl -lcrypto -lkrb5 -lk5crypto -lkrb5support -lcom_err |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on box1: | |
| cat < /dev/tcp/<IP>/<PORT> > file | |
| on box2: | |
| nc -v -l <PORT> < file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| conn site1 | |
| left=%defaultroute | |
| leftid=@site1 | |
| leftrsasigkey=/etc/ipsec.d/certs/site1.pem | |
| right=<SITE2_IP> | |
| rightid=@site2 | |
| rightrsasigkey="dns:<Base64 RFC 3110 RSA key from site2>" | |
| authby=rsasig | |
| auto=add | |
| type=tunnel |