Advertisement
Guest User

Untitled

a guest
May 19th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #on internet facing machine:
  2. NON_INTERNET_MACHINE=192.168.1.164
  3. ssh -v -L 5000:$NON_INTERNET_MACHINE:5000 tunnel@$NON_INTERNET_MACHINE -g
  4. mkfifo /tmp/windows7-rdp-fifo
  5. nc -l -u 4000 < /tmp/windows7-rdp-fifo | nc localhost 5000 > /tmp/windows7-rdp-fifo
  6.  
  7. #on machine with rdp server on port 4000
  8. NON_INTERNET_MACHINE=192.168.1.164
  9. nc -l 5000 < /tmp/windows7-rdp-fifo | nc -u $NON_INTERNET_MACHINE 4000 > /tmp/windows7-rdp-fifo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement