Using a socks proxy

Hi all,
I have a socks proxy setup and have had no issues with any apps using it. I am on my own local network so the proxy does not have a username, its mostly just for testing. Well i tried to use the socks proxy from java command line for my app setting the proxyhost and all that. I can see in the socks daemon logs that for some reason java is trying to send a username even though i am not specifying one.
I looked through some java documentation and it seems that java will always try and send a username. Is this true? Can I turn it off somehow?
Thanks!

Hey There,
Thanks for the swift reply. I tried your suggestion and disabled the fraudulent website check, exited safari, and restarted (with the SOCKS5 proxy still enabled) and Safari still crashes at the same point on the same pages. I've also tried removing Safari (using App Zapper) and reinstalling, and also using Pacifist to extract just the Safari.app from the installer package to overwrite the files in the folder (without altering other system files). None of these seemed to do the trick either. I have this bad feeling like something from the previously installed Unsanity.ape is lurking in the corners of the computer, but the crash dump doesn't seem to support that notion. Any other ideas? I'm up for anything. Rings of salt around the computer (or is it over the shoulder?) - thanks for the help.
-Shawn

Similar Messages

  • Authenticating to Socks proxy using different accounts in a given JVM

    I have a J2EE application that runs some background jobs. Each of these background jobs need to connect to an external FTP server. However, all connections must go through a central SOCKS proxy server. The SOCKS proxy server is set up to require authentication using user names and passwords. Everything works fine if I've to use this SOCKS proxy with "a set" of credentials across all background jobs. However, if I want Job1 to use "user1" for SOCKS login, and Job2 to use "user2" for SOCKS login, I can't seem to find a way to do this. I need this functionality for accounting purposes. Any help on how this can be accomplished is greatly appreciated.
    Regards,
    Sai Pullabhotla

    I tried implementing the ThreadLocal idea and I think the code is working as expected, but my proxy logs are not matching up with what the code says. Below is the code I've including a test class. See below the code for my additional comments.
    import java.net.Authenticator;
    import java.net.PasswordAuthentication;
    * A customer authenticator for authenticating with SOCKS Proxy servers.
    public class ProxyAuthenticator extends Authenticator {
          * A thread local for storing the credentials to the SOCKS proxy. The Javadoc
          * for ThreadLocal says they are typically used for static fields, but
          * here I've a singleton instance. Hope this is not an issue.
         private ThreadLocal<PasswordAuthentication> credentials = null;
          * Singleton instance.
         private static ProxyAuthenticator instance = null;
          * Creates a new instance of <code>ProxyAuthenticator</code>. Each thread
          * will have its own copy of credentials, which would be <code>null</code>
          * initially. Each thread must call the <code>setCredentials</code> method
          * to set the proxy credentials if needed.
         private ProxyAuthenticator() {
              credentials = new ThreadLocal<PasswordAuthentication>() {
                   @Override
                   protected PasswordAuthentication initialValue() {
                        System.out.println("ThreadLocal initialized for "
                             + Thread.currentThread().getName());
                        return null;
                   @Override
                   public void set(PasswordAuthentication value) {
                        System.out.println(Thread.currentThread().getName() + " SET");
                        super.set(value);
                   @Override
                   public PasswordAuthentication get() {
                        System.out.println(Thread.currentThread().getName() + " GET");
                        return super.get();
          * Returns the singleton instance of this class.
          * @return the singleton instance of this class.
         public static synchronized ProxyAuthenticator getInstance() {
              if (instance == null) {
                   instance = new ProxyAuthenticator();
              return instance;
          * Sets the proxy creditials. This method updates the ThreadLocal variable.
          * @param user
          *            the user name
          * @param password
          *            the password
         public void setCredentials(String user, String password) {
              credentials.set(new PasswordAuthentication(user, password.toCharArray()));
         @Override
         public PasswordAuthentication getPasswordAuthentication() {
              System.out.println("Requesting host: " + this.getRequestingHost());
              System.out.println("Requesting port: " + this.getRequestingPort());
              System.out.println("Requesting protocol: "
                   + this.getRequestingProtocol());
              System.out.println("Requesting prompt: " + this.getRequestingPrompt());
              System.out.println("Requesting scheme: " + this.getRequestingScheme());
              System.out.println("Requesting site: " + this.getRequestingSite());
              System.out.println("Requesting URL: " + this.getRequestingURL());
              System.out.println("Requestor type: " + this.getRequestorType());
              System.out.println(Thread.currentThread().getName()
                   + " Authenitcator returning credentials "
                   + credentials.get().getUserName() + ":"
                   + new String(credentials.get().getPassword()));
              return credentials.get();
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.Authenticator;
    import java.net.InetSocketAddress;
    import java.net.Proxy;
    import java.net.Socket;
    import java.net.Proxy.Type;
    * A test class for testing the {@link ProxyAuthenticator}.
    public class SocksProxyTest implements Runnable {
          * Socks proxy host, used by the FakeFtpClient
         private static final String SOCKS_PROXY_HOST = "192.168.1.240";
          * Target FTP host to connect to
         private String host = null;
          * Proxy user
         private String proxyUser = null;
          * Proxy password
         private String proxyPassword = null;
          * Creates a new instance of <code>SocksProxyTest</code>
          * @param host
          *            the target FTP host
          * @param proxyUser
          *            proxy user
          * @param proxyPassword
          *            proxy password
         public SocksProxyTest(String host, String proxyUser, String proxyPassword) {
              this.host = host;
              this.proxyUser = proxyUser;
              this.proxyPassword = proxyPassword;
         public void run() {
              // Create the FakeFtpClient
              FakeFtpClient test = new FakeFtpClient(host, 21, proxyUser,
                   proxyPassword);
              for (int j = 0; j < 5; j++) {
                   try {
                        test.connect();
                        test.disconnect();
                        // Thread.sleep(10000);
                   catch (Throwable t) {
                        t.printStackTrace();
          * Test run.
          * @param args
          *            command line arguments
          * @throws IOException
          *             propagated
         public static void main(String[] args) throws IOException {
              // Get the singleton instance of the ProxyAuthenticator.
              ProxyAuthenticator authenticator = ProxyAuthenticator.getInstance();
              // Update the default authenticator to our ProxyAuthenticator
              Authenticator.setDefault(authenticator);
              // Array of FTP hosts we want to connect to
              final String[] ftpHosts = { "192.168.1.53", "192.168.1.54",
                        "192.168.1.55" };
              // Proxy login/user names to connect to each of the above hosts
              final String[] users = { "User-001", "User-002", "User-003" };
              // Proxy passwords for each of the above user names (in this case
              // password == username).
              final String[] passwords = users;
              // For each target FTP host
              for (int i = 0; i < 3; i++) {
                   // Create the SocksProxyTest instance with the target host, proxy
                   // user and proxy password
                   SocksProxyTest spt = new SocksProxyTest(ftpHosts, users[i],
                        passwords[i]);
                   // Create a new thread and start it
                   Thread t = new Thread(spt);
                   t.setName("T" + (i + 1));
                   try {
                        t.join();
                   catch (InterruptedException e) {
                        e.printStackTrace();
                   t.start();
         * A fake FTP client. The connect method connects to the given host, reads
         * the first line the server sends. Does nothing else. The disconnect method
         * closes the socket.
         private static class FakeFtpClient {
              * The FTP host
              private String host = null;
              * The FTP port
              private int port = 0;
              * Proxy login/user name
              private String proxyUser = null;
              * Proxy password
              private String proxyPassword = null;
              * Socket to the target host
              private Socket s = null;
              * Creates a new instance of <code>FakeFtpClient</code>
              * @param host
              * the FTP host
              * @param port
              * the FTP port
              * @param proxyUser
              * Proxy user
              * @param proxyPassword
              * Proxy password
              public FakeFtpClient(String host, int port, String proxyUser,
                   String proxyPassword) {
                   this.host = host;
                   this.port = port;
                   this.proxyUser = proxyUser;
                   this.proxyPassword = proxyPassword;
              * Connects to the target FTP host through the specified Socks proxy and
              * proxy authentication. Reads the first line of the welcome message.
              * @throws IOException
              * propagated
              public void connect() throws IOException {
                   System.out.println(Thread.currentThread().getName()
                        + " Connecting to " + host + " ...");
                   // Update the ProxyAuthenticator with the correct credentials for
                   // this thread
                   ProxyAuthenticator.getInstance().setCredentials(proxyUser,
                        proxyPassword);
                   s = new Socket(new Proxy(Type.SOCKS, new InetSocketAddress(
                        SOCKS_PROXY_HOST, 1080)));
                   s.setSoTimeout(10000);
                   s.connect(new InetSocketAddress(host, port), 10000);
                   System.out.println(Thread.currentThread().getName() + " Connected");
                   BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
                        s.getOutputStream()));
                   BufferedReader reader = new BufferedReader(new InputStreamReader(
                        s.getInputStream()));
                   System.out.println(reader.readLine());
              * Closes the socket.
              public void disconnect() {
                   System.out.println(Thread.currentThread().getName()
                        + " Disconnecting...");
                   if (s != null) {
                        try {
                             s.close();
                             System.out.println(Thread.currentThread().getName()
                                  + " Disconnected");
                        catch (IOException e) {
                             e.printStackTrace();
    Looking at the test class, it creates 3 threads T1, T2 and T3. T1 is setup to connect to 192.168.1.53 using a proxy user User-001 and T2 is setup to connect to 192.168.1.54 using proxy user User-002 and T3 connects to 192.168.1.55 using proxy user User-003.
    Each thread then loops 5 times to connect to their target servers and disconnect each time. All the debug (System.out) statements indicate that the getPasswordAuthentication is returning the correct credentials for each thread. However, when I look at the logs on the proxy server, the results are different and arbitrary.
    Below is the proxy log:
    [2011-01-24 11:10:11] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:12] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:12] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:13] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    As you can see from the first line in the log, the proxy says User-001 connected to 192.168.1.54, but the code should always connect to 192.168.1.53 with user User-001.
    Any idea on what might be going on?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Proxy settings causing unwanted use of SOCKS

    I have a Java app that, among other things, has to connect to a web server and get a response. Pretty simple stuff. I needed to be able to support proxy servers out of the box. So I looked around and discovered the ProxySelector and the java.net.useSystemProxies=true property. I read that it would auto-magically detect proxy settings for the platform. I added the code to detect and use the proxy if present and it worked without a hitch in testing.
    I was contacted by a customer stating that they weren't able to communicate to the internet. I looked at my logs and saw that I was detecting their HTTP proxy server and port correctly. I spoke to their proxy server administrator and confirmed everything. Then, I saw this in the logs:
    java.net.SocketException: Malformed reply from SOCKS server
         at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)They were not using a SOCKS proxy, only a standard HTTP proxy. The customer's IE could connect to the site without issue. I then asked them to describe their IE connection settings to me. They said they simply checked "Use a proxy server for your LAN" and entered the proxy address and port. I asked them to check the "Advanced" proxy settings and they had "Use the same proxy server for all protocols" checked, and that's it. They mentioned that they had never clicked "Advanced" when setting it up.
    I setup my machine's config to match theirs and I got the issue to occur. I then un-checked "Use the same proxy server for all protocols" and everything worked fine. No SOCKS sockets were used.
    Hopefully you're still with me here...
    Why does Java assume that it should use SOCKS for the socket and IE does not when "Use the same proxy server for all protocols" is checked? How can I prevent this from happening?
    Specs: WinXP, Java 6, IE 7
    Edited: Changed title...

    Hello rhimo�
    I�m torturing my self for 3 day with a similar problem.
    At first a thought it was a Java version problem, so I installed the latest 6u3.
    After a lot of testing and googling, now I�m sure that it�s some kind of a bug.
    So, I�m using one public web address as a test:
    http://www.dailyfx.com/charts/Chart.html
    I set the java proxy settings to �USE BROWSER SETTINGS�
    I set the IE 7 PROXY with the exact server using port 8080.
    In ADVANCED SETTINGS, I Copy/Paste the same server/port to all the rest of the fields (HTTP, SECURE, FTP, SOCKS)
    So the �USE THE SAME PROXY SERVER FOR ALL PROTOCOLS� is unchecked.
    When I start the web site, everything is working OK, the �daily graph� comes out, and the java console log looks like this:
    Dec 25, 2007 2:54:09 PM com.netdania.ui.applet.c init
    INFO: Finance Chart 2.1.3
    Applet Browser: sun.plugin
    Dec 25, 2007 2:54:16 PM com.netdania.ui.applet.c init
    INFO: ... Loading complete.
    In connect() -> Switched to polling!, attemps: 1
    As you can see, the page loads after the 1st attempt.
    Java is using the SOCKS protocol with the defined server.
    Now, the problem comes when I select the �USE THE SAME PROXY SERVER FOR ALL PROTOCOLS�.
    First strange thing is that all fields becoming gray (which is OK) but the SOCKS field becomes blank and gray.
    Whit these settings I�m unable to open the �daily graph� and I receive this java console messages:
    Dec 25, 2007 3:02:07 PM com.netdania.ui.applet.c init
    INFO: Finance Chart 2.1.3
    Applet Browser: sun.plugin
    Dec 25, 2007 3:02:14 PM com.netdania.ui.applet.c init
    INFO: ... Loading complete.
    In connect() -> null, attemps: 1
    In connect() -> null, attemps: 2
    In connect() -> null, attemps: 3
    And so on�
    I assuming that the java is tying to connect using the same SOCKS protocol as before, but now, the server is undefined.
    I�ve try testing the same scenario with Firefox but there I find more bugs:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6504564
    So, if you decide to do the same tests, I recommend using IE7 and latest Java 6u3.
    I think that this is one more Microsoft issue, and the solution will come as sooner as possible.
    Please reply me with eventual solution.
    Thanks.

  • Bug? Socks Proxy not taking effect for SocketChannel

    I find there's something not working when setting socks proxy in my java application.
    In java api there's such introduction about socks proxy setting:
    (from http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html)
    SOCKS protocol support settings
    The SOCKS username and password are acquired in the following way. First, if the application has registered a java.net.Authenticator default instance, then this will be queried with the protocol set to the string "SOCKS5", and the prompt set to to the string "SOCKS authentication". If the authenticator does not return a username/password or if no authenticator is registered then the system checks for the user preferences "java.net.socks.username" and "java.net.socks.password". If these preferences do not exist, then the system property "user.name" is checked for a username. In this case, no password is supplied.
    socksProxyHost
    socksProxyPort (default: 1080)
    Indicates the name of the SOCKS proxy server and the port number that will be used by the SOCKS protocol layer. If socksProxyHost is specified then all TCP sockets will use the SOCKS proxy server to establish a connection or accept one. The SOCKS proxy server can either be a SOCKS v4 or v5 server and it has to allow for unauthenticated connections.
    I am using java.nio.channels.SocketChannel to do packets trasferring, and I've caught all the packets with Ethereal, but I find there's no packets to the socks proxy.
    What I use in the application is as below:
    System.getProperties().setProperty("socksProxySet", "true");
    System.getProperties().setProperty("socksProxyHost", socksProxyHost);
    System.getProperties().setProperty("socksProxyPort", socksProxyPort);I do this above before the connection issues. The connection lines are belows:
    SocketChannel s = SocketChannel.open();
    InetSocketAddress addr = new InetSocketAddress("daisho.waaaghtv.com",  10383);
    if (s.connect(addr)) {
      System.out.println("Socks Proxy Complete!");
    }else {
      System.out.println("Socks Proxy Failed!");
    }But every time it prints me "failed" message. I am sure that I can use the socks proxy to connect to daisho.waaaghtv.com:10383.
    My shortened program is:
    import java.net.InetSocketAddress;
    import java.nio.channels.SocketChannel;
    public class socketTest {
      public static void main(String[] args) {
        try{
          System.getProperties().setProperty("socksProxySet", "true");
          System.getProperties().setProperty("socksProxyHost", "166.111.70.13");
          System.getProperties().setProperty("socksProxyPort", "1080");
          SocketChannel s = SocketChannel.open();
          InetSocketAddress addr = new InetSocketAddress("daisho.waaaghtv.com",  10383);
          if (s.connect(addr)) {
            System.out.println("Socks Proxy Complete!");
          }else {
            System.out.println("Socks Proxy Failed!");
        }catch(Exception e) {
          e.printStackTrace();
    }The printed message is:
    java.net.ConnectException: Connection timed out: connect
         at sun.nio.ch.Net.connect(Native Method)
         at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
         at socketTest.main(socketTest.java:12)I can find very limited help from internet, hope you could help me.

    But it's stated surely both in the 1.4 API and 1.5 API that it supports socks proxy by simply setting the system properties.
    I set socksProxySet to be true because I've found it from internet, but, yup, it seems useless.
    You mean the only way is to implement the socks proxy in my code? I know there is (or was, whatever) some open source project that is on this kinda topic, but ain't there a simple way?

  • Socks Proxy with Gtalk?

    Is it possible to use a socks proxy with a Google Talk iChat account? I see the option for the AIM account but it's missing for Google Talk. I'm using iChat 4.0.7.

    Hi,
    What I posted above is the extent of my knowledge on Proxies.
    The GoogleTalk Site might be the best place to look up any info on a Proxy Login to their Server.
    9:32 PM Monday; January 12, 2009

  • Using Content Engine for SOCKS Proxy

    We have a CE566 integrated with an ICAP server in a proxy role for our network.
    we are experiencing issues with a Java applet that many of our users use with an outside vendor.
    Here are the test results from Sun's Java J2RE development team who we're working with:
    The trace log shows SOCKET connections via ports 80 and 443
    failed.
    network: Connecting socket://server.domain.com:80 with proxy=SOCKS @
    /1.2.3.4:8080
    [SimpleConnection] userloginname: connect attempt failed
    network: Connecting socket://server.domain.com:443 with proxy=SOCKS
    @ /1.2.3.4:8080
    [SimpleConnection] userloginname: connect attempt failed
    network: Connecting socket://server.domain.com:80 with proxy=SOCKS @
    /1.2.3.4:8080
    [SimpleConnection] userloginname: connect attempt failed
    network: Connecting socket://server.domain.com:443 with proxy=SOCKS
    @ /1.2.3.4:8080
    [SimpleConnection] userloginname: connect attempt failed
    Does anyone have any information in regards to using the CE as a proxy in this regards? I have obviously found command language for http; https; and ftp - but nothing for other methods

    The site he's accessing required SOCKS proxy. The ACNS does not support SOCKS.

  • Mail.app in 10.4.7: SOCKS proxy issues again...

    Hi,
    Today I've updated my PowerBook to MacOS X 10.4.7. All the process was fine, but Mail didn't connect to any server. After reading some posts in this forum I've unmarked the SOCKS proxy settings in the Network pref. pane, and I've recovered the 10.4.6 functionallity. So at least I can work.
    When I'm at office, we have an Exchange server with direct access in the network ( is because this that proxy is not needed ). Also a proxy server controls the Internet access.
    What is not working in Mail ( or I don't know how to use it ) now is the following:
    - Local access to Exchange server is only possible using a POP account. An Exchange account doesn't work because is always asking the password.
    - I need to disable the SOCKS proxy to be able to access the local mail server. So the 'Bypass proxy settings' in the Network preference pane seems to not work ( I've tried all kind of syntaxs: *.domain, server.domain, IP address, etc. )
    - With the SOCKS proxy settings active in my corporate network, I cannot access external mail accounts in external servers. I've tried IMAP and POP accounts with the same result: nothing. This is the same issue than in previous version of Mail.app.
    So waiting again for a Mail patch...
    Regards,
    Joan B. Altadill
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!

    Hi,
    Today I've updated my PowerBook to MacOS X 10.4.7. All the process was fine, but Mail didn't connect to any server. After reading some posts in this forum I've unmarked the SOCKS proxy settings in the Network pref. pane, and I've recovered the 10.4.6 functionallity. So at least I can work.
    When I'm at office, we have an Exchange server with direct access in the network ( is because this that proxy is not needed ). Also a proxy server controls the Internet access.
    What is not working in Mail ( or I don't know how to use it ) now is the following:
    - Local access to Exchange server is only possible using a POP account. An Exchange account doesn't work because is always asking the password.
    - I need to disable the SOCKS proxy to be able to access the local mail server. So the 'Bypass proxy settings' in the Network preference pane seems to not work ( I've tried all kind of syntaxs: *.domain, server.domain, IP address, etc. )
    - With the SOCKS proxy settings active in my corporate network, I cannot access external mail accounts in external servers. I've tried IMAP and POP accounts with the same result: nothing. This is the same issue than in previous version of Mail.app.
    So waiting again for a Mail patch...
    Regards,
    Joan B. Altadill
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!

  • How do I make kde4.8 use a socks5 proxy?

    Hi all,
    I'm trying to channel all my traffic through tor but KDE doesn't seem to recognize my proxy settings. To set up the proxy, I went to System Settings -> Network Settings -> Proxy -> Use manually specified proxy configuration and set the value of SOCKS proxy to socks://localhost, PORT to 9050. When I start chromium like so "chromium --proxy-server="socks://localhost:9050"" and visit https://check.torproject.org/ I can see that tor is running, but with the settings above it doesn't work.
    I would appreciate any help.
    Thanks.

    Thanks, I ended up using proxychains because I think it's newer than tsocks. I can now start programs as "proxychains firefox" and tor seems to be working well. I have yet to figure out how to automate this process.

  • Socks Proxy Authentication

    I have working socks proxy with Java Mail 1.4.5 without user name/password but wish to support socks proxies that require user names and passwords.
    I have tried using an authenticator on the Session.getInstance(Properties, Authenticator) object but I get an error saying incorrect user name/password on my socks proxy.
    My sample code is below:
    Properties properties = getProperties();
    final String socksProxyUserName = "test";
    final String socksProxyPassword = "test";
    Authenticator authenticator = new Authenticator() {
         @Override
         protected PasswordAuthentication getPasswordAuthentication() {
              PasswordAuthentication passwordAuthentication = new PasswordAuthentication(socksProxyUserName, socksProxyPassword);
              return passwordAuthentication;
    Session session = Session.getInstance(properties, authenticator);
    My socks proxy is FreeProxy.
    I am using this method for socks proxy support in java mail.
    If your proxy server supports the SOCKS V4 or V5 protocol (http://www.socks.nec.com/aboutsocks.html, RFC1928) and allows anonymous connections, and you're using JDK 1.5 or newer and JavaMail 1.4.5 or newer, you can configure a SOCKS proxy on a per-session, per-protocol basis by setting the "mail.smtp.socks.host" property as described in the javadocs for the com.sun.mail.smtp package. Similar properties exist for the "imap" and "pop3" protocols.
    Message in Proxy logfile is:
    Fri 20 Jul 2012 09:37:59 : ACCESS : Instance:'socky' Protocol:'SOCKS-5-Proxy' Access:'Forbidden' Client IP:'10.45.16.21' User:'test/FPDOMAIN' Resource Type:'User Authentication' Resource:'Authentication: User/password invalid'
    I have confirmed user name and password several times and tried extra ones just in case but no luck.
    Does anybody have any ideas. THe fact that it tries to authenticate the login on my proxy server suggests I'm trying the correct method to connect to me but can someone confirm this for me?
    This proxy has this user added as I set it up myself.
    Edited by: 947715 on 20-Jul-2012 01:15
    Edited by: 947715 on 20-Jul-2012 01:16
    Edited by: 947715 on 20-Jul-2012 01:40
    Edited by: 947715 on 20-Jul-2012 03:10

    I got it working now using the below:
    final String socksProxyUserName = configurationService.getString(IParameterConstants.SOCKS_PROXY_USERNAME);
    final String socksProxyPassword = configurationService.getString(IParameterConstants.SOCKS_PROXY_PASSWORD);
    if (!socksProxyUserName.equals(EMPTY_STRING)) {
         java.net.Authenticator authenticator = new java.net.Authenticator() {
    @Override
         protected java.net.PasswordAuthentication getPasswordAuthentication() {
              return new java.net.PasswordAuthentication(socksProxyUserName, socksProxyPassword.toCharArray());
         System.setProperty("java.net.socks.username", socksProxyUserName); //$NON-NLS-1$
         System.setProperty("java.net.socks.password", socksProxyPassword); //$NON-NLS-1$
         java.net.Authenticator.setDefault(authenticator);
    }

  • Setting up a SOCKS proxy

    So this is what happens when I try and set up a SOCKS proxy using ssh and my vps (I've edited out my personal IP address and other similar details).
    http://i.imgur.com/WIDgE.png
    I have no idea why the proxy seems to be working but not returning any data.

    set your ssh port to 22 in your home server. and install fail2ban which will prevent bruteforce attacks.
    you can also disable password logins and take your public key to your home server in a pendrive.
    then simply ssh -D PORT
    ive done this at home, and even if i suffer from login attempts, fail2ban blocks ips with more than 3 failed attempts within 5 minutes.

  • Problems re-routing with SOCKS Proxy Servers

    I am making a TCP client and am trying to use an anonymous proxy server to re-route the connection inbetween.
    I have tried many, many servers but when trying:
    System.out.println(s.isConnected());
    it always returns false and the client ends up directly connecting.
    Here is the code that I am trying. once again, using a SOCKS server for TCP.
    Socket s = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(ipAddress, port)));

    After you construct the socket you have to call connect() with the real target.

  • AnyConnect options as SOCKS proxy not supported....??

    Hi Guys
    So we are planning to migrate away from IPEC vpn and use AnyConnect, however we currently have in place SquiD proxy and are using SOCKS proxy too.
    Having read the document here
    http://www.cisco.com/en/US/products/ps8411/products_qanda_item09186a00809aec31.shtml
    It seems like AnyConenct is not compatable with SOCKS proxy and having undergone testing my question now is what is the best method in getting a similar "SOCKS" tunnel over the anyconnect client?
    Kind Regards
    Mohamed

    Ok i've made a work around that will use local forwards instead of dynamic forwards and i've made an apple script that will switch all the settings for me.
    set buttonTunnel to "Tunnel"
    set buttonNormal to "Normal"
    set result to display dialog "hey" buttons {buttonTunnel, buttonNormal}
    set theButton to button returned of result
    if theButton is equal to buttonTunnel then
    tell application "Mail"
    tell account "MainAccount"
    set server name to "localhost"
    set port to 1110
    set uses ssl to false
    end tell
    set smtp server of account "MainAccount" to smtp server "localhost:UserNAME"
    tell account "SecondAccount"
    set port to 1111
    set server name to "localhost"
    end tell
    set smtp server of account "SecondAccount" to smtp server "localhost:UserNAME"
    end tell
    else
    tell application "Mail"
    tell account "MainAccount"
    set server name to "mail.MainAccount.com"
    set port to 995
    set uses ssl to true
    end tell
    set smtp server of account "MainAccount" to smtp server "mail.MainAccount.com.au:UserNAME"
    tell account "SecondAccount"
    set port to 110
    set server name to "mail.SecondAccount.net"
    end tell
    set smtp server of account "SecondAccount" to smtp server "mail.MainAccount.com.au:UserNAME"
    end tell
    end if

  • Socks proxy not honoured in mail

    While using a ssh tunnel with a setting (DynamicForward 1456)
    Then in the system preferences i've set the socks proxy to localhost on port 1456
    Mail doesn't seem to honor the system wide socks proxy while, Entourage works perfectly without missing a beat (Setup with the exact same account as Mail).
    Has anyone had success with this everything else on the system goes through the local socks proxy (e.g. Safari , entourage)

    Ok i've made a work around that will use local forwards instead of dynamic forwards and i've made an apple script that will switch all the settings for me.
    set buttonTunnel to "Tunnel"
    set buttonNormal to "Normal"
    set result to display dialog "hey" buttons {buttonTunnel, buttonNormal}
    set theButton to button returned of result
    if theButton is equal to buttonTunnel then
    tell application "Mail"
    tell account "MainAccount"
    set server name to "localhost"
    set port to 1110
    set uses ssl to false
    end tell
    set smtp server of account "MainAccount" to smtp server "localhost:UserNAME"
    tell account "SecondAccount"
    set port to 1111
    set server name to "localhost"
    end tell
    set smtp server of account "SecondAccount" to smtp server "localhost:UserNAME"
    end tell
    else
    tell application "Mail"
    tell account "MainAccount"
    set server name to "mail.MainAccount.com"
    set port to 995
    set uses ssl to true
    end tell
    set smtp server of account "MainAccount" to smtp server "mail.MainAccount.com.au:UserNAME"
    tell account "SecondAccount"
    set port to 110
    set server name to "mail.SecondAccount.net"
    end tell
    set smtp server of account "SecondAccount" to smtp server "mail.MainAccount.com.au:UserNAME"
    end tell
    end if

  • Joining a work network using wireless and proxy servers

    Hi,
    I have just arrived at a new work location, where we have an afterhours user network that we can connect to in our accommodation. I have had continual trouble trying to connect to the network, and have taken my MacBook to the geeks who provide the network. They can't fix the problem either (and are reluctant to as they don't like Mac's).
    The problem is exactly as follows:
    My airport instantly identifies the network. I need a password to connect to the network name, and this seems to work, but when I run the diagnostics it shows that the airport, airport settings and network settings are all green; but ISP, internet and server are red and failed.
    Next I click on advanced, and the geeks informed me that I need to set up a Web Proxy (HTTP), Secure Web Proxy (HTTPS), FTP Proxy and SOCKS Proxy. They have all been done correctly with the same login and password (which was provided by the geeks). Now they have watched me do this and tried themselves, and they tell me it is correct and has worked previously on other peoples Mac's this exact way.
    But for some reason after applying all this and even restarting the computer just incase, the ISP and onwards still fail to connect.

    The good news is that the basic roaming network setup is the same with the newer 6.x version of the AirPort Utility.
    Here are some step-by-step instructions using the 6.x version of the AirPort Utility.
    First, there are a few key elements to successfully configuring a roaming network, and they are:
    All of the base station must be interconnected by Ethernet. Note: You can use non-Apple routers in this type of network.
    All base stations must have unique Base Station Names.
    All base stations must use the same Radio Mode and Wireless Security Type/Password.
    Each base station should be on a different Radio Channel. Using "Automatic" works well here.
    All base stations, other than the "main" base station, must be reconfigured as a bridge.
    Let's start with the "main" base station. This will be the one directly connected to the Internet modem:
    AirPort Utility > Select the "main" base station > Edit
    Base Station tab > Base Station Name > Enter a unique name here
    Internet tab > Connect Using: DHCP
    Wireless tab > Network Mode: Create a wireless network > Wireless Network Name > Enter the desired name. This will be used on all base stations > Wireless Security: WPA2 Personal (recommended) > Wireless Password > Enter the desired wireless password. This will be used on all base stations.
    Network tab > Router Mode: DHCP and NAT
    Click on Update
    For each additional base station added to the roaming network:
    AirPort Utility > Select the appropriate base station > Edit
    Base Station tab > Base Station Name > Enter a unique name here
    Internet tab > Connect Using: DHCP
    Wireless tab > Network Mode: Create a wireless network > Wireless Network Name > Enter the desired name. This will be used on all base stations > Wireless Security: WPA2 Personal (recommended) > Wireless Password > Enter the desired wireless password. This will be used on all base stations.
    Network tab > Router Mode: Off (Bridge Mode)
    Click on Update

  • Http proxy to socks proxy

    Hi all,
    I have a working socks proxy, and a web browser (emacs-w3m) that does not support socks.  I am looking for a way to create an http proxy that will do nothing but forward the connections through my socks proxy.  Does anybody know of an easy way to acheive this?
    I've looked a little at Delegate (http://www.delegate.org/), and I believe it will do what I want, but I can't grasp the syntax to do it.

    For anybody interested I figured it out.  Used delegate:
    delegated -P9090 SERVER=http SOCKS=localhost:2345

Maybe you are looking for

  • Not Equal to Clause in BODS

    Hello Experts - I need to put this condition in transformation  in BODS  table1.col 1 Not Equal to table2.col2 . I am not able to find NOT EQUAL TO clause in BODS. I have used  !=  , But  not working. However equal to (=) is working fine. Any suggest

  • Anyone interested in working on a LabVIEW book with me?

    Hello Several months back I began working on a LabVIEW training manual and after becoming busy with other things, progress has stalled out. I am about 70 pages into it. Here is what I have so far. Chapter 1 - Introduction (could probably use a little

  • Trying to add PDF icons to my Assignment Block (CRM 7 WebUI)

    Hello gurus, I am trying to display a pdf icon in every row of my assignment block in CRM 7 WebUI. I am using one click actions, so I have an actions column, and I the logic to make the icon image appear is in the GET_OCA_T_TABLE of the context node

  • Help: Best Practice Baseline Package experience

    All, Can I ask for some feedback from folks who've used the Best Practice Baseline package before - I'm in a project implementing ECC 6.0 and we're planning to use this package to quickly set up and demo the system to the business.  I've limited expe

  • Default sample size?

    Hi all, what is the default sampling percentage or size for gathering statistics? and where is this parameters stored? (how to display this value?) thanks andrew Kain