test udp connectivity
On server side: On client side: Also on client side in another terminal: It should return something like CONNECTED
On server side: On client side: Also on client side in another terminal: It should return something like CONNECTED
You wanna report some stuff to nagios the easy way? Try this. Nagios server side: Install netcat. Run a eternal loop script: # while true; do nc -l -p <THE_PORT_YOU_WANNA_LISTEN_TO> >> /var/nagios/rw/nagios.cmd; done& Client side: Install netcat. Drop your info to the NAGIOS server with something like: # echo -e “[$(date +%s)] PROCESS_SERVICE_CHECK_RESULT;<NAGIOSCONFIG_SERVER_NAME>;<NAGIOSCONFIG_SERVICE_NAME>;<RESULT_0_or_1_or_2>;<YOUR_IMPORTANT_MESSAGE>” | nc […]
The -k switch won’t work. Intsatll the nmap package and use ncat instead.
This listens on interface and redirects to service listening on localhost port 42065 ssh -g -L 192.168.1.2:80:localhost:42065 -f -N root@localhost
echo “VRFY $DOMAIN\nquit” | nc SMTP.MYSERVER.TLD 25
(echo EHLO $USER@$HOSTNAME sleep 1 echo MAIL FROM: $USER@$HOSTNAME sleep 1 echo RCPT TO: $EMAIL_TO sleep 1 echo “DATA From: $USER@HOSTNAME To: $EMAIL_TO Subject: $EMAIL_SUBJECT $EMAIL_DATA” sleep1 echo ‘.’ sleep 1 echo QUIT) | netcat mailserver.somewhere.org 25