feat: git ssh port

This commit is contained in:
ange 2024-02-18 20:39:48 +01:00
parent 740b62be58
commit ef05a58ab4
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,11 @@ defaults
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend ssh
mode tcp
bind *:22
use_backend http
frontend http
mode tcp
bind *:80
@ -34,6 +39,11 @@ frontend https
bind *:443
use_backend https
backend ssh
mode tcp
balance leastconn
server s1 149.202.74.193:30022 check send-proxy
backend http
mode tcp
balance leastconn

View File

@ -5,6 +5,7 @@
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p tcp --dport 22 -j ACCEPT
-A INPUT -p tcp --dport 80 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT
-A INPUT -p tcp --dport 6443 -j ACCEPT