PDA

Bekijk de volledige versie : Nylon socks server compiled and working



Jean-Fabrice
27-08-2004, 11:57
Hi all,

I've compiled the nylon socks server (http://monkey.org/~marius/pages/?page=nylon) in order to run it on wl500g.

Here is the wiki page : http://wiki.wl500g.info/index.php/PackageNylon

Jean-Fabrice

BTW : as English is not my mother tongue, maybe this wiki page needs gramatical corrections. Sorry.

Styno
27-08-2004, 12:04
So you've got it working now! Great. Now you can use MSN @ work :)

I will review the WIKI page sometime today. Can you post a zipped file here (using 'attachment') with a compiled binary and the required libraries/modules. Thanks.

Oleg
27-08-2004, 12:08
Hi all,

I've compiled the nylon socks server (http://monkey.org/~marius/pages/?page=nylon) in order to run it on wl500g.


Why do you link it statically?

Jean-Fabrice
27-08-2004, 13:14
Why do you link it statically?

Hummm... because I'm a newbie and when I try to compile it dynamically and run it, it asks for libresolv... so I take the short way... static compilation ;)

any help to compile it dynamically would be appreciate, don't know if i'tsd possible

BTW, here is the daemon

Jean-Fabrice

Oleg
27-08-2004, 13:23
Hummm... because I'm a newbie and when I try to compile it dynamically and run it, it asks for libresolv... so I take the short way... static compilation ;)

any help to compile it dynamically would be appreciate, don't know if i'tsd possible

BTW, here is the daemon

Jean-Fabrice
Remove -lnsl and -lresolv it is not needed with uclibc.

Fast and dirty patch:


--- configure.orig 2004-08-27 16:20:31.857947520 +0400
+++ configure 2004-08-27 16:20:59.540431233 +0400
@@ -2281,7 +2281,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lnsl $LIBS"
+#LIBS="-lnsl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2286 "configure"
#include "confdefs.h"
@@ -2339,7 +2339,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lresolv $LIBS"
+#LIBS="-lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2344 "configure"
#include "confdefs.h"

Jean-Fabrice
27-08-2004, 13:43
Works ! Thanx Oleg

No way other than dirty patch against configure to tweak it at ./configure time ?

jean-Fabrice

Oleg
27-08-2004, 13:47
The simplest way is just adding libnsl.so.0 & libresolv.so.0 to /extra/lib/ and recompiling firmware.

Jean-Fabrice
27-08-2004, 15:08
ok. I'va updated the Wiki page.

Jean-fabrice

whao
01-12-2004, 07:53
Hi Jean-fabrice,

I don't have the platform to compile the code and I'm using the standard firmware 1.8.2.0. So, as suggested by Styno, could you provide a compiled version of nylon with libraries so I could run it from USB storage?

whao

Styno
01-12-2004, 08:20
Hi Jean-fabrice,

I don't have the platform to compile the code and I'm using the standard firmware 1.8.2.0. So, as suggested by Styno, could you provide a compiled version of nylon with libraries so I could run it from USB storage?

whao
Statically linked version can be found here: http://wl500g.info/showpost.php?p=4572&postcount=4

whao
01-12-2004, 09:21
Thank you for pointing out. How about adding it to the Download section in the WIKI page?

BTW, I've got it running but nylon show the following error message on the system log the first time I connecting to the socks5 port:

Dec 1 17:08:39 nylon[213]: Listening on my.router:1080
Dec 1 17:09:03 nylon[215]: bind(): Cannot assign requested address
Dec 1 17:09:03 nylon[215]: Negotiation failed

Styno
01-12-2004, 14:37
Thank you for pointing out. How about adding it to the Download section in the WIKI page?
Well, its a WIKI system, you can do it yourself :)

barsju
25-01-2005, 20:58
Hi, I'm trying to set up nylon to run on my asus (fw 1.9.2.7-3b) which is located behind a ADSL modem from my ISP.

So downloaded and unpacked the tar on my USB stick. I made a nylon.conf file:


#Settings
[General]
# number of simultaneous connections allowed
No-Simultaneous-Conn=1
# log connections and other information to syslog? 1: on, 0: off
Log=1
# be verbose on the console? 1: on, 0: off
Verbose=1
# store pid file
PIDfile=/tmp/harddisk/nylon/nylon.pid
# server settings
[Server]
# interface to listen to connections
Binding-Interface=br0
# interface to bind outgoing connections to
Connecting-Interface=eth1
# listening port to bind to
Port=1080
# allowed is processed first, then deny
# allowable connect ips/ranges
Allow-IP=192.168.100.0/24
# denied connect ips/ranges
#Deny-IP=0.0.0.0/0
--------
And run with:
./nylon -c /usr/local/etc/nylon.conf -f -v


On my WinXP client I run FreeCap to forward HTTP to my router port 1080.
The client is on the LAN and the idea is (for testing) to forward from LAN (br0) to WAN (eth1). When I got this up and running I will setup a ssh tunnel.

This results:


nylon: Client 10.0.0.2 rejected
nylon: (192.168.100.225:3688 <=> my.router:socks) Terminated connection


I then added 10.0.0.0/24 to the allow list and got:


nylon: Listening on my.router:socks
nylon: connect(): Invalid argument
nylon: Negotiation failed
nylon: (192.168.100.225:3778 <=> my.router:socks) Terminated connection


So what is happening here? Is there something wrong in my config? Or is it my ADSL modem thats messing it all up? Do I have to open up something in iptables?

Any help would be appreciated!

Sjur

Arobs45
26-01-2005, 08:28
Maybe this is not the right place but...

In fact, to connect from work, I need to go through a first proxy (and firewall that only lets port 80 available).

I would like to know if it is possible to configure MSN or something like that to go through 2 proxies (the first at my work and the other one on the Wl500g@home) !

Thanks for your advices !

Jean-François

Styno
26-01-2005, 09:33
I think you should read this thread again. The threadstarter used the Nylon socks server for just that!

Arobs45
26-01-2005, 21:27
Styno, that's why I asked...

Because, when I am @work, I need to configure the proxy settings of my IE with the proxy from my company.
Then I should connect to my Wl500g-Nylon-Proxy... That means I should add some second line in the proxy setting, which I can not do !

My question is just about chaining the proxies. I am sorry, but I am not very familiar with those kind of configurations...

Thanks

Jean-François

Technik
27-01-2005, 00:41
Try this: http://www.petri.co.il/iconzone.htm :)

Kolandr
18-03-2008, 21:49
hi2all,
i can't find in nylon config file, where is authentication by login\pass for socks server there or this server not support this method?

andrei.pop
15-05-2009, 15:36
I also want to know where to set username/password for proxy authentication. Is it possible??

Thanks!

andrei.pop
28-05-2009, 21:37
Come on guys, nobody here knows how to do this? :(