~comcloudway/ansible-ccw.icu

336d44e8f858708fc139817da9d441b2bddb7ef5 — Jakob Meier 8 months ago 7085394
Made ssh port configurable
2 files changed, 2 insertions(+), 1 deletions(-)

M group_vars/all/default.yml
M roles/network/nftables/templates/50_ssh.nft
M group_vars/all/default.yml => group_vars/all/default.yml +1 -0
@@ 7,6 7,7 @@ base_packages:
  - htop
  - doas
shell: /bin/ash
ssh_port: "22"
docker_subid: "100000:65536"
container_dir: "/home/{{ username }}"
domain: "example.com"

M roles/network/nftables/templates/50_ssh.nft => roles/network/nftables/templates/50_ssh.nft +1 -1
@@ 3,6 3,6 @@
table inet filter {
	chain input {
		# allow ssh
		tcp dport 22 accept comment "accept SSH"
		tcp dport {{ ssh_port }} accept comment "accept SSH"
	}
}