mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-25 21:02:04 +00:00
Compare commits
No commits in common. "a6ed524808d020d4fc2b9488d526798b5c1afe85" and "e62dea61e7c925bbc31646e49f99492c6e5ac7ae" have entirely different histories.
a6ed524808
...
e62dea61e7
@ -66,7 +66,6 @@ declare -A HANDLERS
|
|||||||
HANDLERS[tcp]=check-port
|
HANDLERS[tcp]=check-port
|
||||||
HANDLERS[udp]=check-port
|
HANDLERS[udp]=check-port
|
||||||
|
|
||||||
# XXX this seems to be broken...
|
|
||||||
check-port(){
|
check-port(){
|
||||||
local udp=
|
local udp=
|
||||||
if [[ "${1:0:3}" == "udp" ]] ; then
|
if [[ "${1:0:3}" == "udp" ]] ; then
|
||||||
@ -82,7 +81,7 @@ check-port(){
|
|||||||
|
|
||||||
local res=$(timeout $TIMEOUT nc -vz${udp} $target $port 2>&1)
|
local res=$(timeout $TIMEOUT nc -vz${udp} $target $port 2>&1)
|
||||||
|
|
||||||
if ! [[ $res =~ .*open$ ]] ; then
|
if [[ "$res" =~ .*open$ ]] ; then
|
||||||
echo ERROR
|
echo ERROR
|
||||||
else
|
else
|
||||||
echo OK
|
echo OK
|
||||||
|
|||||||
@ -14,10 +14,10 @@ entryPoints:
|
|||||||
address: ':22'
|
address: ':22'
|
||||||
ssh2:
|
ssh2:
|
||||||
address: ':23'
|
address: ':23'
|
||||||
#openvpn:
|
openvpn:
|
||||||
# address: ':1194/udp'
|
address: ':1194/udp'
|
||||||
#openvpn2:
|
openvpn2:
|
||||||
# address: ':5555/udp'
|
address: ':5555/udp'
|
||||||
wireguard:
|
wireguard:
|
||||||
address: ':51820/udp'
|
address: ':51820/udp'
|
||||||
wireguard2:
|
wireguard2:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user