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