Linux Socks Server - SS5 Without Authentication

Discussion regarding the installation and configuration of Linux distributions.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Linux Socks Server - SS5 Without Authentication

Post by LinuxFreaK »

Dear All PLUCian's,
Salam,

You do not need to give user name and password for ss5. If you want to use authentication i prefer you to read about OpenLDAP first.

Code: Select all

#!/bin/sh

yum -y install openldap-devel pam-devel

wget http://nchc.dl.sourceforge.net/sourceforge/ss5/ss5-3.6.1-1.tar.gz
tar -zxf ss5-3.6.1-1.tar.gz
cd ss5-3.6.1-1
./configure --prefix=/usr
make clean
make
make install
Edit your /etc/opt/ss5/ss5.conf and replace

Code: Select all

auth    0.0.0.0/0               -               -
with

Code: Select all

auth    192.168.0.1/24               -               -
and restart ss5 server.

# service ss5 restart

Best Regards.
Farrukh Ahmed
A_Karim
Lance Naik
Posts: 34
Joined: Thu Jul 22, 2004 4:18 pm
Location: Karachi
Contact:

Post by A_Karim »

Assalam-o-Aliakum dear Farrukh bahi
i have did wht ur suggested but ss5 not running.

[ss5.log]
[07/Feb/2007:17:02:37 PKT] [INFO] SS5 Version 3.6.1 - Release 1 starting
[07/Feb/2007:17:02:37 PKT] [INFO] Copyright (C) 2003-2006 by Matteo Ricchetti - <matteo.ricchetti@libero.it>
[07/Feb/2007:17:02:37 PKT] [INFO] Setting dynamic configuration.
[07/Feb/2007:17:02:37 PKT] [INFO] Cleaning old configuration.
[07/Feb/2007:17:02:37 PKT] [INFO] Loading and validating new configuration.
[07/Feb/2007:17:02:37 PKT] [ERRO] Method unknown in auth line.
[07/Feb/2007:17:02:37 PKT] [INFO] Configuration not switched.

[ss5.conf]
auth 192.168.0.50/24

--------------------------
I have configure squid as a http proxy server on 192.168.0.50
My gateway is 192.168.0.1

what i did wrong ??

Regards
AK
Eyes Never Says Lies
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear A_Karim,
Salam,
A_Karim wrote:[ss5.conf]
auth 192.168.0.50/24
Forget to see - - :)

auth 192.168.0.50/24 - -

Best Regards.
Farrukh Ahmed
A_Karim
Lance Naik
Posts: 34
Joined: Thu Jul 22, 2004 4:18 pm
Location: Karachi
Contact:

Post by A_Karim »

Dear Farrukh Bahi
Assalam-o-Aliakum

yes its my mistake i forget to put -- now Yahoo, Msn etc works fine but when i try to send/receive mails through my Exchange Server it wont work. What should i do ??


Regards
AK
Eyes Never Says Lies
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear A_Karim,
Salam,
A_Karim wrote:yes its my mistake i forget to put -- now Yahoo, Msn etc works fine but when i try to send/receive mails through my Exchange Server it wont work. What should i do ??
I believe its for Messaging Services. You can not use Socks Server as your proxy server.

Best Regards.
Farrukh Ahmed
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

Post by sarthor »

Salam O Alykum.

yahoo work fine but msn is not working fine.
On Client end for msn i am using
socks proxy 192.168.0.1 port 1080
msn get dc it self, if it get login some time,

ss5.conf
auth 192.168.0.1/24 - -
permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -


[08/Feb/2007:21:53:11 PKT] [3086748544] 192.168.0.250 "CONNECT" REJECTED 0 0 - (192.168.0.250:1743 -> :1863)
[08/Feb/2007:21:53:13 PKT] [3086683008] 192.168.0.250 "" "CONNECT" TERMINATED 0 -1 2 (192.168.0.250:1744 -> 207.46.28.93:1863)
[08/Feb/2007:21:53:24 PKT] [3086683008] 192.168.0.250 "CONNECT" TERMINATED 0 0 1 (192.168.0.250:1748 -> 207.46.111.88:1863)
[08/Feb/2007:21:53:24 PKT] [3086748544] 192.168.0.250 "" "CONNECT" TERMINATED 0 0 1 (192.168.0.250:1749 -> 207.46.111.88:1863)
[08/Feb/2007:21:58:04 PKT] [3086748544] 192.168.0.250 "CONNECT" REJECTED 0 0 - (192.168.0.250:1795 -> :1863)
[08/Feb/2007:21:58:04 PKT] [3086748544] [ERRO] $MethodParsing$: ((null)).
[08/Feb/2007:21:58:04 PKT] [3086748544] 192.168.0.250 "" "" ISERROR - - - (-:- -- -:-) (Socks method unknown)
[08/Feb/2007:22:02:06 PKT] [3086748544] 192.168.0.250 "CONNECT" REJECTED 0 0 - (192.168.0.250:1802 -> :1863)
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear sarthor,
Salam,

Can you tell me which Socks Version you are using when you enter Socks Server in your MSN Messenger.

Socks 4 or Socks 5 ?

Socks 4 does not need autnetication, However Socks 5 do need authentication. Correct me if i am wrong.

Best Regards.
Farrukh Ahmed
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

Post by sarthor »

Salam O Alykum,
Dear LinuxFreak
In My Client computer msn setting is as under
Messenger Main Menu-->toosl------>Option---Connection--->Advance Setting, Here
1- TCP :that have not Option for putting any Proxy
2 SOCKS: Nothing about Socks4 or 5, Just only Socks, Blank Box for Proxy and port, and login Pass Black spaces
I have fill as (192.168.0.1 1080) No login Pass give by me here.
3-HTTP: some like socks setting but I have made no Change in it.
msn messenger 8.0.0812 version

On mY linux Computer I have downloaded "ss5-3.6.1-1.tar.gz" and extraced configured as you have told in your previous post.
On my client computer in msn messenger when click on test in front for SOCKS. its say there on windows machine
connectiong to proxy....
connectiong to server...
we are unable to connect (81000389)
connectoin to the proxy...
Disconnecting....
we are unable to connect (0)
On my linux sever that time it shows the logs of ss5.log
[09/Feb/2007:23:27:05 PKT] [3086674816] 192.168.0.250 "CONNECT" REJECTED 0 0 - (192.168.0.250:1193 -> :1863)
[09/Feb/2007:23:27:05 PKT] [3086674816] [ERRO] $MethodParsing$: ((null)).
[09/Feb/2007:23:27:05 PKT] [3086674816] 192.168.0.250 "" "" ISERROR - - - (-:- -- -:-) (Socks method unknown)
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear sarthor,
Salam,

It should work. I have not tested MSN using my installation so can not say any thing right now. I will test it and let you know what is your problem :)

Best Regards.
Farrukh Ahmed
sarthor
Battalion Quarter Master Havaldaar
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
Location: Pukhtoonistan
Contact:

Post by sarthor »

Salam O Alykum
Dear LinuxFreak
May be its due to my ptclvwireless slow speed. Because sometime some of my messenger msgs get disapeard in recieving/sending.

I will Check it on some other DSL bandwidth in proper way.
Thank you
Allah Hafiz.
Tefl E Maktab
-----------------------------
----- ----- ----- ------ ------ -------
mugall
Cadet
Posts: 3
Joined: Fri Jan 19, 2007 12:21 pm
Location: Multan

Problem in socks server

Post by mugall »

Assalam o Alikum Dear all,

i am new in linux, me install squid in transparent mod add yahoo ports in Safe_port list i also install socks server but my yahoo is still in trouble, the cam did not work on it while when i connect it with socks server, the socks server log file shows the message that "NO IPV6 support" and when i want to connect with cosck4 log file shows the message that "Pre authorization failed"

Please help i willbe very thankfull to you guyz......

Khalid
thecooldude
Lance Naik
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Location: Dubai, UAE.
Contact:

Dear Khalid.

Post by thecooldude »

Assalam o Alikum Dear all,

i am new in linux, me install squid in transparent mod add yahoo ports in Safe_port list i also install socks server but my yahoo is still in trouble, the cam did not work on it while when i connect it with socks server, the socks server log file shows the message that "NO IPV6 support" and when i want to connect with cosck4 log file shows the message that "Pre authorization failed"

Please help i willbe very thankfull to you guyz......

Khalid


Well,

Try

iptables -A FORWARD -p tcp --dport 5100 -j ACCEPT

But you still need to explain a bit more! even MORE!


Thanks

..

Regards,

Khurram Nawaz.
+92-300-4141791
+92-42-5432259
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear mugall,
Salam,

Can you show out put of your ss5.conf

Best Regards.
Farrukh Ahmed
A_Karim
Lance Naik
Posts: 34
Joined: Thu Jul 22, 2004 4:18 pm
Location: Karachi
Contact:

Post by A_Karim »

Assalam-o-Aliakum

I have successfully running MSN and Yahoo by using ss5 but now my yahoo messenger unable to connect.I have done these steps

1. Just put the IP Address of my proxy server in configuration file
ss5.conf
auth 192.168.0.50/24 - -
--------------------------------
2. Resrtart ss5 service
3. Remove gateway IP Address from all clients client i.e 192.168.0.1
4. No setting in MSN and Yahoo messengers i.e No Proxies

Now MSN works fine but yahoo not working plz explain why its not working and please if anyone know good and detail tutorials on ss5 please post links.

Regards
AK
Eyes Never Says Lies
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear A_Karim,
Salam,

You need to enter your gateway ip address into MSN/YIM/ICQ/AIM. Socks server is not transparent.

Best Regards.
Farrukh Ahmed
Post Reply