Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / December 2004

Tip: Looking for answers? Try searching our database.

Java Plug-In --> SSH Tunnel --> SOCKS Proxy (Not Working)

Thread view: 
prblmcrtr - 16 Dec 2004 17:18 GMT
Ok here is the situation:

I have an SSH tunnel to a SOCKS proxy for browsing. So i start up the
ssh tunnel like so:

ssh.exe -p 1578 -c blowfish -N -L 1080:{socks5proxyserver}:1080
{username}@{sshserver}

And I set the socks proxy to 127.0.0.1 in my browser and other apps and
it works fine. 100%

The only thing is java apps do not load when browsing. Here is the
console output:

Java(TM) Plug-in: Version 1.4.2_05
Using JRE version 1.4.2_05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\{user}

Proxy Configuration: Manual Configuration
Proxy: ,socks=127.0.0.1:1080
Proxy Overrides: 127.0.0.1:1080,<local>

----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
load: class Speed not found.

java.lang.ClassNotFoundException: Speed

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.net.SocketException: SOCKS: Connection not allowed by
ruleset

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at sun.net.NetworkClient.doConnect(Unknown Source)

at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)

at sun.net.www.http.HttpClient.openServer(Unknown Source)

at sun.net.www.http.HttpClient.openServer(Unknown Source)

at sun.net.www.http.HttpClient.<init>(Unknown Source)

at sun.net.www.http.HttpClient.<init>(Unknown Source)

at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)

at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)

at
sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown
Source)

at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown
Source)

at
sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

... 10 more

I am using OpenSSH_3.7.1p1 and dante on Linux as a SOCKS server. I am
guessing it may have something to do with the line:

Caused by: java.net.SocketException: SOCKS: Connection not allowed by
ruleset

But i dont know if it is my SOCKS server or a problem with java and
pointing to localhost for proxy???
Any help would be appreciated. Thanks,
prblmcrtr - 16 Dec 2004 17:39 GMT
Ah.. figured it out. Java was trying to authenticate to the SOCKS
server using username and password method. Turning off method: username
on the SOCKS server or creating a matching username and password on
that system solved the problem.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.