Linux Socks Server - SS5 Without Authentication

Discussion regarding the installation and configuration of Linux distributions.

Linux Socks Server - SS5 Without Authentication

Postby LinuxFreaK » Tue Feb 06, 2007 12:49 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby A_Karim » Wed Feb 07, 2007 5:17 pm

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
A_Karim
Lance Naik
 
Posts: 34
Joined: Thu Jul 22, 2004 4:18 pm
WLM: engr_akarim@hotmail.com
Yahoo Messenger: engr_akarim@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Wed Feb 07, 2007 5:28 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby A_Karim » Thu Feb 08, 2007 10:50 am

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
A_Karim
Lance Naik
 
Posts: 34
Joined: Thu Jul 22, 2004 4:18 pm
WLM: engr_akarim@hotmail.com
Yahoo Messenger: engr_akarim@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Thu Feb 08, 2007 4:22 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby sarthor » Thu Feb 08, 2007 10:31 pm

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
-----------------------------
----- ----- ----- ------ ------ -------
sarthor
Battalion Quarter Master Havaldaar
 
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
ICQ: 163419827
Website: http://amazai.net
WLM: sarthor@hotmail.com
Yahoo Messenger: baidaraka@yahoo.com
Location: Pukhtoonistan

Re:

Postby LinuxFreaK » Fri Feb 09, 2007 9:45 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby sarthor » Fri Feb 09, 2007 11:36 pm

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

-----------------------------

----- ----- ----- ------ ------ -------
sarthor
Battalion Quarter Master Havaldaar
 
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
ICQ: 163419827
Website: http://amazai.net
WLM: sarthor@hotmail.com
Yahoo Messenger: baidaraka@yahoo.com
Location: Pukhtoonistan

Re:

Postby LinuxFreaK » Sat Feb 10, 2007 11:23 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby sarthor » Sat Feb 10, 2007 4:48 pm

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

-----------------------------

----- ----- ----- ------ ------ -------
sarthor
Battalion Quarter Master Havaldaar
 
Posts: 241
Joined: Wed Dec 24, 2003 2:36 am
ICQ: 163419827
Website: http://amazai.net
WLM: sarthor@hotmail.com
Yahoo Messenger: baidaraka@yahoo.com
Location: Pukhtoonistan

Problem in socks server

Postby mugall » Sun Feb 18, 2007 7:59 pm

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
mugall
Cadet
 
Posts: 3
Joined: Fri Jan 19, 2007 12:21 pm
WLM: mugall@hotmail.com
Location: Multan

Dear Khalid.

Postby thecooldude » Mon Feb 19, 2007 1:38 am

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
thecooldude
Lance Naik
 
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Website: http://www.xsroot.com
WLM: cancerian_pisces@hotmail.com
Location: Dubai, UAE.

Re:

Postby LinuxFreaK » Mon Feb 19, 2007 9:44 am

Dear mugall,
Salam,

Can you show out put of your ss5.conf

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby A_Karim » Mon Feb 19, 2007 5:13 pm

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
A_Karim
Lance Naik
 
Posts: 34
Joined: Thu Jul 22, 2004 4:18 pm
WLM: engr_akarim@hotmail.com
Yahoo Messenger: engr_akarim@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Wed Feb 21, 2007 8:57 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 3 guests

cron