Skip to content

Commit

Permalink
restore vault and haproxy to gateway node
Browse files Browse the repository at this point in the history
  • Loading branch information
marmila authored Feb 28, 2024
1 parent 95e3eb2 commit 05f043d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ansible/host_vars/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ dnsmasq_additional_dns_hosts:
s3_server:
desc: "S3 Server"
hostname: s3
# ip: 89.168.19.79
ip: 10.0.0.100
ip: 10.0.0.11
elasticsearch:
desc: "Elasticsearch server"
hostname: elasticsearch
Expand All @@ -53,7 +52,7 @@ dnsmasq_additional_dns_hosts:
vault_server:
desc: "Vault server"
hostname: vault
ip: 10.0.0.11
ip: 10.0.0.1
dnsmasq_enable_tftp: true
dnsmasq_tftp_root: /srv/tftp
dnsmasq_additional_conf: |-
Expand All @@ -70,6 +69,7 @@ dnsmasq_additional_conf: |-
dhcp-boot=tag:efi-x86_64,bootx64.efi
# Ignore queries for domain "marmila.com"
server=/marmila.com/
####################
# ntp role variables
####################
Expand All @@ -80,8 +80,10 @@ ntp_allow_hosts: [10.0.0.0/24]
#########################

# tcp 9100 Prometheus (fluent-bit)
# tcp 8200, 8201 Vault server
# udp 69, TFTP server
in_tcp_port: '{ ssh, https, http, iscsi-target, 9100 }'
# TCP 6443 load balancer K3S API
in_tcp_port: '{ ssh, https, http, iscsi-target, 9100, 8200, 8201, 6443 }'
in_udp_port: '{ snmp, domain, ntp, bootps, 69 }'
# tcp 9091 minio server
forward_tcp_port: '{ http, https, ssh, 9091 }'
Expand Down Expand Up @@ -141,10 +143,8 @@ nft_forward_host_rules:
- iifname $wan_interface oifname $lan_interface ip daddr $lan_network tcp dport ssh ct state new accept
230 http from wan:
- iifname $wan_interface oifname $lan_interface ip daddr $lan_network tcp dport {http, https} ct state new accept
240 haproxy from wan:
- iifname $wan_interface oifname $lan_interface ip daddr 10.0.0.11 tcp dport 6443 ct state new accept
250 port-forwarding from wan:
- iifname $wan_interface oifname $lan_interface ip daddr 10.0.0.12 tcp dport 8080 ct state new accept
- iifname $wan_interface oifname $lan_interface ip daddr 10.0.0.11 tcp dport 8080 ct state new accept
# NAT Post-routing
nft_nat_host_postrouting_rules:
005 masquerade lan to wan:
Expand Down

0 comments on commit 05f043d

Please sign in to comment.