# cat nut-tunnel.sh #!/bin/bash # this is ugly but seems to work! USER=carsten # create TCP to UDP converter on n0 ssh $USER@130.75.117.77 screen -d -m socat tcp4-listen:5353,reuseaddr,fork UDP:192.168.1.32:161 # create local UDP to TCP converted screen -d -m socat udp4-listen:161,reuseaddr,fork tcp:localhost:5353 # finally tie both ends together ssh -f -N -L5353:localhost:5353 $USER@130.75.117.77 echo "Should work now, restart upsd"Category:Tips & Tricks