I have a proxy account that uses https or socks for connection. how can I use this proxy on opensuse? I have a server IP, a port number, username and password.(in windows I uses proxfier to connect)
thank you
You do not say you tried the most obvious place (IMHO): YaST > Network services > Proxy. Did you try that? When yes, what is the problem, when no, try it.
You also fail to tell which version of openSUSE you use.
I use the 12.1 version.
I used IMHO but it did not work correctly for me.
It just works for https protocol, not for http or ftp. (when I use it for http or ftp i get this error: GET NOVELL Worldwide HTTP/1.1
> Proxy-Authorization: Basic cG9vcmlhOnBvb3JpYWxwaGFiZXRh
> User-Agent: curl/7.22.0 (x86_64-unknown-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 c-ares/1.7.5 libidn/1.22 libssh2/1.2.9
> Host: NOVELL Worldwide
> Accept: /
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 400 Bad Request
0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0< Content-Type: text/html; charset=UTF-8
< Content-Length: 14629
< Pragma: no-cache
< Connection: close
< Via: 1.1 novell_novprvlin0357 (Access Gateway 3.1.4-27-458938EFD14D45FD- )
<
{ [data not shown]
92 14629 92 13460 0 0 5232 0 0:00:02 0:00:02 --:–:-- 5396
100 14629 100 14629 0 0 4872 0 0:00:03 0:00:03 --:–:-- 5001
100 14629 100 14629 0 0 4872 0 0:00:03 0:00:03 --:–:-- 5001
- Closing connection #0
If you’re simply proxying Web traffic (usually HTTP/S, FTP/S), I’ve found that the easiest and simplest way is to just configure an application level proxy (configuring the proxy settings in the Web browser, eg Firefox). In fact, if you also move from one network to another and use Firefox, I’d recommend installing the FoxyProxy plugin which enables you to setup Proxy “profiles” which you can switch, enable and disable as needed. Your log data suggests you’re only trying “Web” HTTP traffic to this point, so maybe this is the solution for you.
If you need to proxy a number of applications… like the mail protocols and more, then you’ll probably want to configure a system level proxy, typically in YAST.
You should also understand that configuring a Proxy connection requires more than just what you posted… Although web proxy connections can be less complicated, for SOCKS connections you need to know whether you’re configuring for a SOCKS5 or SOCKS4 server, and if the connection requires authentication how to configure credentials. Note also that according to your log data you’re connecting using BASIC authentication, is that correct? If you’re connecting to a Proxy server that authenticates to a Windows Domain for example, you probably need to use NTLM or Kerberos authentication.
HTH,
TS
Thank you
I do not know what type of proxy is that. for windows, I used “proxifier” and I used https protocol.
I just want a proxifier program for linux. I installed proxychains(using socks5) but got these errors:
No protocol specified
No protocol specified
|S-chain|-<>-37.46.112.11:4000-|S-chain|-<>-37.46.112.11:4000-<><>-127.0.0.1:6000-<><>-127.0.0.1:6000-<–timeout
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-<–timeout
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-<><>-4.2.2.2:53-<><>-4.2.2.2:53-<><>-OK
<><>-OK
|DNS-response|: localhost is not exist
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-|DNS-response|: localhost is not exist
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-<><>-4.2.2.2:53-<><>-4.2.2.2:53-<><>-OK
|DNS-response|: localhost is not exist
<><>-OK
|DNS-response|: localhost is not exist
No protocol specified
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-<><>-4.2.2.2:53-<><>-OK
|DNS-response|: localhost is not exist
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-<><>-4.2.2.2:53-<><>-OK
|DNS-response|: localhost is not exist
|DNS-request| localhost
|S-chain|-<>-37.46.112.11:4000-<><>-4.2.2.2:53-<><>-OK
|DNS-response|: localhost is not exist
Error: cannot open display: :0
OK,
Let’s ask some specific questions…
Exactly what applications are you running that need to access the Internet?
And, to keep things as simple as possible, <uninstall> proxychains and any other proxy apps to try to return to a default system configuration.
TS
firefox, google chrome
and downloadmanager sofwares
For those applications only,
I highly recommend <do not> configure your Proxy settings in openSUSE,
Instead configure them in the browser settings as I described earlier.
Particularly for Firefox on a mobile device (ie laptop) which moves from network to network, I highly recommend the FoxyProxy plugin so that “profiles” of configurations can be created and saved so you can one-click from one network to another.
This will work for any and all Browser traffic through those web browsers… SOCKS is a technology and protocol that encapsulates and transforms other types of traffic that’s not HTTP(s)/FTP(s) so it can pass through proxies but it looks at this time you don’t need it.
So, for example in FF (default, without FoxyProxy)
Edit > Preferences > Advanced > Network > Connection > Settings
Do <not> check the “System Proxy” checkbox!
Only check either “No Proxy” or Auto Detect (if available) or Manual Proxy settings!
HTH,
TS
Thank you
but another problem is that :
how can I give firefox my username and password of proxy? there is no place for it.
If your network’s proxy server requires Username/Password authentication, then it becomes complicated…
You need at least…
- Type of network security, eg Windows Domain, LDAP Domain, Standalone Proxy Server, other
- The type of encoding required by the Proxy Server, ie. NTLM, NTLM v2, Kerberos, Basic, Digest
Perhaps even the exact model/type and manufacturer of the Proxy Server.
You may be able to bypass this whole authentication issue by simply joining your Linux box to the Network Security so that when you login initially with your User account, those credentials should be passed automatically whenever you access network resources, including Internet access through the Proxy server.
Or,
If you’re on very good terms with your Network SysAdmins and the Proxy Server supports this configuration, they can configure a reserved DHCP lease for your Linux box (so that the IP address won’t ever change when on the network) and then configure authentication by IP address so that Username/Password credentials aren’t required.
As for configuring username/password in the Proxy settings for Firefox (and Chrome), I don’t know that there is a documented way to do that… But here is a try:
When you configure the Proxy Server name, instead of
proxyserver.networkname.foobar
try
username.password@proxyserver.networkname.foobar
That’s the way you’d normally pass credentials from a command line, don’t know if it’d also work from within a GUI.
Good Luck