NUTTunnel

This script should enable you to tunnel UDP connections from .102 to the UPS in the prototype hall:

 # 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

This topic: ATLAS > NUTTunnel
Topic revision: 12 Mar 2008, Oliver
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback