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
Similar Messages
-
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
MohamedOk 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 -
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? -
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:10I 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);
} -
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 !!!!! -
Severe proxy configuration bug preventing mail access
Hello,
the proxy configuration options for LAN / WIFI networks have a major bug: if a proxy server is set manually, it prevents e-mail accounts from working while being connected to that proxy-enabled network!
Interestingly, if the proxy is configured by using a PAC file, e-mails work successfully again, in addition to all proxied protocols like http, https and ftp.
Furthermore, it is not even possible to connect to mail server within the local network when manual proxy settings are active - the device does not even try to connect to anything, if trying to set up an account, it gives a confusing error message saying that not all settings of the mail account were correct.
As soon as the proxy settings are removed OR obtained by using PAC, everything works again!
Please fix this in one of the next releases as it impedes usage on networks with proxy enforcement! Maybe just add a selector to which protocols the proxy settings should be applied!? As I know several typical network settings, proxy is mainly used for thhp/https/ftp, not any mail protocol (for which e.g. a SOCKS proxy would be needed, which is quite different to "regular" proxies and should be treated separately in the config.)
There are several topics on the support forums that might be related to this, but have not yet taken care of: http://supportforums.blackberry.com/t5/BlackBerry-Z10/IMAP-Issue-with-WLAN-and-PROXY-OS-10-1/m-p/2380235/highlight/true#M24019 http://supportforums.blackberry.com/t5/BlackBerry-10-OS-Device-Software/Mail-IMAP-SMTP-traffic-is-blocked-when-proxy-is-set-though-proxy/m-p/3111038/highlight/true#M16311 http://supportforums.blackberry.com/t5/BlackBerry-PlayBook/E-mail-behind-Proxy/m-p/1817891/highlight/true#M41527 maybe: http://supportforums.blackberry.com/t5/BlackBerry-Q10/IMAP-Not-work/m-p/2647853/highlight/true#M12323 maybe: http://supportforums.blackberry.com/t5/BlackBerry-Enterprise-Service-12/BES12-mail-not-sync-when-proxy-profile-is-added-to-user/m-p/3105347/highlight/true#M1613Okay, this behaviour (although strange compared to "usual" proxy setting choices, e.g. in desktop operating systems or browsers) might be an explanation for the effects currently seen. This would be a good chance to extend the proxy options to a more "regular" or complete set: 1.) Add a possibility to choose which protocols are to be proxied (so e.g. IMAP could be excluded, in my opinion a proxy supporting this is even less common than rare). 2.) Add a "no proxy for these hosts" list.
-
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 PullabhotlaI 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? -
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 methodsThe site he's accessing required SOCKS proxy. The ACNS does not support SOCKS.
-
Socks proxy call from a weblogic server across the firewall to an external program
Hi,
From our weblogic server, we are trying to connect to an external
program outside our firewall through SSL. The SSL connection is being
tunneled through a socks proxy in the DMZ. (We have not yet made it
work so far. Currently, we are trying to make it work)
From the weblogic bean, we are doing the following
System.setProperty("socksProxySet", "true");
System.setProperty("socksProxyHost", "w.x.y.z");
System.setProperty("socksProxyPort", "1080");
Not that weblogic bean is the initiator of the connection and it talks
to a program outside our firewall.
My question is, will this kind of system level setting in the weblogic
server have any negative impact? This is because, RMI is over sockets
and weblogic might be talking to its internal components through
sockets.
Is it advisable to have such socks related setting the weblogic bean
level?
thanks,
jas.Hi,
From our weblogic server, we are trying to connect to an external
program outside our firewall through SSL. The SSL connection is being
tunneled through a socks proxy in the DMZ. (We have not yet made it
work so far. Currently, we are trying to make it work)
From the weblogic bean, we are doing the following
System.setProperty("socksProxySet", "true");
System.setProperty("socksProxyHost", "w.x.y.z");
System.setProperty("socksProxyPort", "1080");
Not that weblogic bean is the initiator of the connection and it talks
to a program outside our firewall.
My question is, will this kind of system level setting in the weblogic
server have any negative impact? This is because, RMI is over sockets
and weblogic might be talking to its internal components through
sockets.
Is it advisable to have such socks related setting the weblogic bean
level?
thanks,
jas. -
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 -
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. -
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 -
Any way to have a SOCKS proxy for mobile data ?
Hi,
I have set up a SOCKS proxy on WiFi, works great. Auto proxy pointed to file:///private/var/root/proxy.pac. Now I want to use the same .pac file for 3G data. Anyone know how/if I can do this ? I tried many different ways with iPhone Configuration Utility to no avail. Can only get HTTP proxy working.
Any input would be greatly appreciated.Hello,
There is no real good / easy and generic way to do this. It's a HTML/CSS issue not an HTML DB specific issue.
You could hardcode a table with your fixed width headings display it over your tabular form then wrap your tabular form in a div with a style attribute of style="height:600px;overflow:auto;"
One of these days the browsers will figure out how to take care of scrolling on a tbody but I haven't seen it yet.
Carl -
I am trying to run proxy authentication using the LDAP C SDK and the functions mentioned in the customization guide for ims 5.2.
My http log file keeps passing the message:
[14/Sep/2004:14:21:53 -0400] machinename httpd[10579]: Account Notice: badlogin: [ipaddress] admin proxy
not allowed
[14/Sep/2004:14:21:53 -0400] machinename httpd[10579]: Account Notice: close [ipaddress] [unauthenticated
] 2004/9/14 14:21:53 0:00:00 104 309 0
does anyone know why?
cheersalarm.diskavail.msgalarmdescription = "percentage mail partition diskspace available"
alarm.diskavail.msgalarmstatinterval = 3600
alarm.diskavail.msgalarmthreshold = 10
alarm.diskavail.msgalarmthresholddirection = -1
alarm.diskavail.msgalarmwarninginterval = 24
alarm.msgalarmnoticeport = 25
alarm.msgalarmnoticercpt = postmaster
alarm.msgalarmnoticesender = postmaster
alarm.serverresponse.msgalarmdescription = "server response time in seconds"
alarm.serverresponse.msgalarmstatinterval = 600
alarm.serverresponse.msgalarmthreshold = 10
alarm.serverresponse.msgalarmthresholddirection = 1
alarm.serverresponse.msgalarmwarninginterval = 24
encryption.fortezza.nssslactivation = off
encryption.nscertfile = alias/msg-hostdev-cert7.db
encryption.nskeyfile = alias/msg-hostdev-key3.db
encryption.nsssl2 = on
encryption.nsssl3 = on
encryption.nsssl3ciphers = "rsa_null_md5,rsa_fips_3des_sha,rsa_fips_des_sha,rsa_3des_sha,rsa_rc4_128_md5
,rsa_des_sha,tls_rsa_export1024_with_rc4_56_sha,tls_rsa_export1024_with_des_cbc_sha,rsa_rc2_40_md5,rsa_r
c4_40_md5"
encryption.nsssl3sessiontimeout = 0
encryption.nssslclientauth = 0
encryption.nssslsessiontimeout = 0
encryption.rsa.nssslactivation = on
encryption.rsa.nssslpersonalityssl = Server-Cert
encryption.rsa.nsssltoken = "internal (software)"
gen.accounturl = http://%[email protected]:3333/bin/user/admin/bin/enduser
gen.configversion = 4.0
gen.folderurl = http://%[email protected]:3333/bin/user/admin/bin/mailacl.cgi?folder=%M
gen.installedlanguages = en
gen.sitelanguage = en
local.defdomain = emirates.net.ae
local.enduseradmincred = [9E:[2rrP?
local.enduseradmindn = "uid=msg-admin-hostdev.emirates.net.ae-20040831122450, ou=People, o=emirates.net.
ae, o=eim"
local.hostname = hostdev.emirates.net.ae
local.imta.imta_tailor = /app2/iplanet/new/ims5.2/msg-hostdev/imta/config/imta_tailor
local.imta.ssrenabled = yes
local.installeddir = /app2/iplanet/new/ims5.2/bin/msg
local.instancedir = /app2/iplanet/new/ims5.2/msg-hostdev
local.lastconfigfetch = 1095619850
local.ldapbasedn = o=NetscapeRoot
local.ldapcachefile = /app2/iplanet/new/ims5.2/msg-hostdev/config/local.conf
local.ldaphost = hostdev.emirates.net.ae
local.ldapport = 389
local.ldapsiecred = ~G^bHW}2|^
local.ldapsiedn = "cn=msg-hostdev, cn=iPlanet Messaging Suite, cn=Server Group (2), cn=hostdev.emirates.
net.ae, ou=net.ae, o=NetscapeRoot"
local.ldapusessl = False
local.servergid = nsgroup
local.servername = hostdev
local.serverroot = /app2/iplanet/new/ims5.2
local.servertype = msg
local.serveruid = mailsrv
local.service.http.proxy = 1
local.service.http.proxy.port.hostdev.emirates.net.ae = 8888
local.service.pab.attributelist = pabattrs
local.service.pab.enabled = 1
local.service.pab.ldapbasedn = o=pab
local.service.pab.ldapbinddn = "uid=msg-admin-hostdev.emirates.net.ae-20040831122450, ou=People, o=emira
tes.net.ae, o=eim"
local.service.pab.ldaphost = hostdev.emirates.net.ae
local.service.pab.ldappasswd = [9E:[2rrP?
local.service.pab.ldapport = 389
local.service.pab.maxnumberofentries = 500
local.supportedlanguages = "[en,de,fr,es,af,ca,da,nl,fi,gl,ga,is,it,no,pt,sv,ja,ko,zh-CN,zh-TW]"
local.tmpdir = /app2/iplanet/new/ims5.2/msg-hostdev/tmp
local.ugldapbasedn = o=eim
local.ugldapbindcred = [9E:[2rrP?
local.ugldapbinddn = "uid=msg-admin-hostdev.emirates.net.ae-20040831122450, ou=People, o=emirates.net.ae
, o=eim"
local.ugldapdeforgdn = "o=emirates.net.ae, o=eim"
local.ugldaphost = hostdev.emirates.net.ae
local.ugldapport = 389
local.ugldapuselocal = yes
local.webmail.da.host = hostdev.emirates.net.ae
local.webmail.da.port = 8080
local.webmail.sso.enable = 1
local.webmail.sso.singlesignoff = 1
logfile.admin.buffersize = 0
logfile.admin.expirytime = 604800
logfile.admin.flushinterval = 60
logfile.admin.logdir = /app2/iplanet/new/ims5.2/msg-hostdev/log/admin
logfile.admin.loglevel = Notice
logfile.admin.logtype = NscpLog
logfile.admin.maxlogfiles = 10
logfile.admin.maxlogfilesize = 2097152
logfile.admin.maxlogsize = 20971520
logfile.admin.minfreediskspace = 5242880
logfile.admin.rollovertime = 86400
logfile.default.buffersize = 0
logfile.default.expirytime = 604800
logfile.default.flushinterval = 60
logfile.default.logdir = /app2/iplanet/new/ims5.2/msg-hostdev/log/default
logfile.default.loglevel = Notice
logfile.default.logtype = NscpLog
logfile.default.maxlogfiles = 10
logfile.default.maxlogfilesize = 2097152
logfile.default.maxlogsize = 20971520
logfile.default.minfreediskspace = 5242880
logfile.default.rollovertime = 86400
logfile.http.buffersize = 0
logfile.http.expirytime = 604800
logfile.http.flushinterval = 60
logfile.http.logdir = /app2/iplanet/new/ims5.2/msg-hostdev/log/http
logfile.http.loglevel = Notice
logfile.http.logtype = NscpLog
logfile.http.maxlogfiles = 10
logfile.http.maxlogfilesize = 2097152
logfile.http.maxlogsize = 20971520
logfile.http.minfreediskspace = 5242880
logfile.http.rollovertime = 86400
logfile.imap.buffersize = 0
logfile.imap.expirytime = 604800
logfile.imap.flushinterval = 60
logfile.imap.logdir = /app2/iplanet/new/ims5.2/msg-hostdev/log/imap
logfile.imap.loglevel = Notice
logfile.imap.logtype = NscpLog
logfile.imap.maxlogfiles = 10
logfile.imap.maxlogfilesize = 2097152
logfile.imap.maxlogsize = 20971520
logfile.imap.minfreediskspace = 5242880
logfile.imap.rollovertime = 86400
logfile.imta.buffersize = 0
logfile.imta.expirytime = 604800
logfile.imta.flushinterval = 60
logfile.imta.logdir = /app2/iplanet/new/ims5.2/msg-hostdev/log/imta
logfile.imta.loglevel = Notice
logfile.imta.logtype = NscpLog
logfile.imta.maxlogfiles = 10
logfile.imta.maxlogfilesize = 2097152
logfile.imta.maxlogsize = 20971520
logfile.imta.minfreediskspace = 5242880
logfile.imta.rollovertime = 86400
logfile.pop.buffersize = 0
logfile.pop.expirytime = 604800
logfile.pop.flushinterval = 60
logfile.pop.logdir = /app2/iplanet/new/ims5.2/msg-hostdev/log/pop
logfile.pop.loglevel = Notice
logfile.pop.logtype = NscpLog
logfile.pop.maxlogfiles = 10
logfile.pop.maxlogfilesize = 2097152
logfile.pop.maxlogsize = 20971520
logfile.pop.minfreediskspace = 5242880
logfile.pop.rollovertime = 86400
logfiles.admin.alias = |logfile|admin
logfiles.default.alias = |logfile|default
logfiles.http.alias = |logfile|http
logfiles.imap.alias = |logfile|imap
logfiles.imta.alias = |logfile|imta
logfiles.pop.alias = |logfile|pop
nsclassname = "[email protected]@cn=admin-serv-hostdev, cn=Netsca
pe Administration Server, cn=Server Group (2), cn=hostdev.emirates.net.ae, ou=net.ae, o=NetscapeRoot"
nsserversecurity = on
service.authcachesize = 10000
service.authcachettl = 900
service.dcroot = o=internet
service.defaultdomain = emirates.net.ae
service.dnsresolveclient = yes
service.http.allowadminproxy = yes
service.http.allowanonymouslogin = no
service.http.enable = yes
service.http.enablesslport = yes
service.http.extrauserldapattrs = "myuserclass,homepage:w"
service.http.fullfromheader = no
service.http.idletimeout = 3
service.http.ipsecurity = no
service.http.maxmessagesize = 5242880
service.http.maxpostsize = 5242880
service.http.maxsessions = 6000
service.http.maxthreads = 250
service.http.numprocesses = 1
service.http.plaintextmincipher = 0
service.http.port = 80
service.http.proxydomainallowed = hostdev.emirates.net.ae
service.http.resourcetimeout = 900
service.http.sessiontimeout = 7200
service.http.smtpport = 25
service.http.spooldir = /app2/iplanet/new/ims5.2/msg-hostdev/http
service.http.sslcachesize = 0
service.http.sslport = 443
service.http.sslusessl = yes
service.imap.allowanonymouslogin = no
service.imap.banner = "%h %p service (%P %V)"
service.imap.enable = yes
service.imap.enablesslport = yes
service.imap.idletimeout = 30
service.imap.maxsessions = 4000
service.imap.maxthreads = 250
service.imap.numprocesses = 1
service.imap.plaintextmincipher = 0
service.imap.port = 143
service.imap.sslcachesize = 0
service.imap.sslport = 993
service.imap.sslusessl = no
service.ldapmemcache = no
service.ldapmemcachesize = 131072
service.ldapmemcachettl = 30
service.listenaddr = INADDR_ANY
service.loginseparator = @
service.plaintextloginpause = 0
service.pop.allowanonymouslogin = no
service.pop.banner = "%h %p service (%P %V)"
service.pop.enable = yes
service.pop.idletimeout = 10
service.pop.maxsessions = 600
service.pop.maxthreads = 250
service.pop.numprocesses = 1
service.pop.plaintextmincipher = 0
service.pop.popminpoll = 0
service.pop.port = 110
service.pop.sslusessl = no
service.readtimeout = 10
store.admins = admin
store.cleanupage = 1
store.dbcachesize = 16777216
store.defaultacl = "anyone lrs"
store.defaultmailboxquota = -1
store.defaultmessagequota = -1
store.defaultpartition = primary
store.diskflushinterval = 15
store.partition.primary.path = /app2/iplanet/new/ims5.2/msg-hostdev/store/partition/primary
store.quotaenforcement = on
store.quotaexceededmsginterval = 7
store.quotagraceperiod = 120
store.quotanotification = off
store.quotawarn = 90
store.serviceadmingroupdn = "cn=Service Administrators, ou=Groups, o=eim"
store.umask = 077 -
I'm having problems connecting to a Socks proxy using iChat. I know the socks proxy does work (I'm using it now) I know it does connect to AIM since It works fine using AdiumX.
Here are my settings:
(Checked) Connect using proxy
(Unchcecked) User System Preferences
Server: 127.0.0.1
Port: 1080 Protocol: Socks 5
Username: (blank)
Password: (blank)
It works fine on Safari, AdiumX, & X-Chat Aqua... Just not iChat
When I connect i get this:
Could not connect to AIM
The AIM proxy refused the connection. Check the proxy information in the Accounts section of iChat preferences.I am having this very same problem; similar environment. I have a SOCKS4 proxy that I know works with other connections, including a "generic" AIM account. Anybody have any ideas?
Maybe you are looking for
-
i am using an IPOD 4 Gen last 4 months, my ipod is not getting detected on my Windows 7 PC its not detected in itunes nor in my computer however it is charging. it is charging via adaptor as well i have tried changing cables, uninstalling/reinstallin
-
Schedule line date is not updating in line with P.O confirmation.
hi, when sales order created for individual requirements it automatically creates P.R and this P.R is converted to P.O. whenever this P.O is updated with confirmation category like acknowledgement or inbound delivery it should update Sales order sche
-
When entering app store Computer restarts. What to do?
Help is granted.
-
Ipad2/Iphone4 setting up a new computer
I have an older computer that is very slow. It was the original computer that I used to set up my Itunes account and my original iphone. I now have an Iphone 4 and an Ipad2. I want to make my newer laptop my main computer. I authorized the laptop on
-
Illustrator CC application won't start
Everytime we try to start AI in CC the application stops right after the splash screen!?