feat: git ssh port
This commit is contained in:
parent
740b62be58
commit
ef05a58ab4
@ -24,6 +24,11 @@ defaults
|
|||||||
errorfile 503 /etc/haproxy/errors/503.http
|
errorfile 503 /etc/haproxy/errors/503.http
|
||||||
errorfile 504 /etc/haproxy/errors/504.http
|
errorfile 504 /etc/haproxy/errors/504.http
|
||||||
|
|
||||||
|
frontend ssh
|
||||||
|
mode tcp
|
||||||
|
bind *:22
|
||||||
|
use_backend http
|
||||||
|
|
||||||
frontend http
|
frontend http
|
||||||
mode tcp
|
mode tcp
|
||||||
bind *:80
|
bind *:80
|
||||||
@ -34,6 +39,11 @@ frontend https
|
|||||||
bind *:443
|
bind *:443
|
||||||
use_backend https
|
use_backend https
|
||||||
|
|
||||||
|
backend ssh
|
||||||
|
mode tcp
|
||||||
|
balance leastconn
|
||||||
|
server s1 149.202.74.193:30022 check send-proxy
|
||||||
|
|
||||||
backend http
|
backend http
|
||||||
mode tcp
|
mode tcp
|
||||||
balance leastconn
|
balance leastconn
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||||
-A INPUT -i lo -j ACCEPT
|
-A INPUT -i lo -j ACCEPT
|
||||||
-A INPUT -p icmp -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 80 -j ACCEPT
|
||||||
-A INPUT -p tcp --dport 443 -j ACCEPT
|
-A INPUT -p tcp --dport 443 -j ACCEPT
|
||||||
-A INPUT -p tcp --dport 6443 -j ACCEPT
|
-A INPUT -p tcp --dport 6443 -j ACCEPT
|
||||||
|
Loading…
Reference in New Issue
Block a user