Hey guys,
First off, I am not trying to tunnel vnc to my home computer. I cannot use an SSH tunnel. That said, here is my issue:
User: A person in an unknown environment, probably behind a firewall blocking everything but 80/443. Assume they are so dumb they can only browse the web and click around.
Server: My server that is running Apache and many instances of VNC on 5901-5910.
Apache is set up so that it embeds the VNC java applet so that a user can just view a page and get vnc access.
What I would like to do is set up some kind of proxy on port 80 of my server. Then I could use some apache virtualhosts to do something like this:
I have DNS for *.example.com
www.example.com => localhost:8080 (I'll put apache here)
vnc01.example.com => localhost:5901
vnc02.example.com => localhost:5902
...
vnc10.example.com => localhost:5910
I have tried using mod_apache but I'm having a bit of trouble.
Anyone know if squid could do this?
I've hacked into the Java applet so I replaced this:
Code:
sock = new Socket(host,port)
with this:
Code:
SocketAddress addr=new InetSocketAddress("http://proxy.collab.slsdev.net", 80);
Proxy proxy = new Proxy(Proxy.Type.HTTP, addr);
sock=new Socket(proxy);
InetSocketAddress final_addr=new InetSocketAddress(host, port);
sock.connect(final_addr);
But it gives me:
Code:
Error: Invalid Proxy
java.lang.IllegalArgumentException: Invalid Proxy
at java.net.Socket.<init>(Socket.java:140)
at RfbProto.<init>(RfbProto.java:171)
at VncViewer.connectAndAuthenticate(VncViewer.java:323)
at VncViewer.run(VncViewer.java:156)
at java.lang.Thread.run(Thread.java:636)
Maybe Squid can help? Or another type of proxy?
Thanks for any help you can provide.
Bookmarks