Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: Nylon socks server compiled and working

  1. #1
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195

    Nylon socks server compiled and working

    Hi all,

    I've compiled the nylon socks server 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.
    Last edited by Jean-Fabrice; 27-08-2004 at 11:59.

  2. #2
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    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.

  3. #3
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by Jean-Fabrice
    Hi all,

    I've compiled the nylon socks server in order to run it on wl500g.
    Why do you link it statically?

  4. #4
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Quote Originally Posted by Oleg
    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
    Attached Files Attached Files

  5. #5
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by Jean-Fabrice
    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:
    Code:
    --- 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"

  6. #6
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Works ! Thanx Oleg

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

    jean-Fabrice

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    The simplest way is just adding libnsl.so.0 & libresolv.so.0 to /extra/lib/ and recompiling firmware.

  8. #8
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    ok. I'va updated the Wiki page.

    Jean-fabrice

  9. #9
    Join Date
    Nov 2004
    Location
    Hong Kong
    Posts
    17
    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

  10. #10
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by whao
    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

  11. #11
    Join Date
    Nov 2004
    Location
    Hong Kong
    Posts
    17
    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:
    Code:
    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

  12. #12
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by whao
    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

  13. #13

    Can't get nylon to work..

    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:
    Code:
    #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:
    Code:
    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:
    Code:
    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

  14. #14
    Join Date
    Dec 2004
    Location
    Paris, France
    Posts
    20

    Maybe this is not the right place but...

    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

  15. #15
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    I think you should read this thread again. The threadstarter used the Nylon socks server for just that!

Page 1 of 2 12 LastLast

Similar Threads

  1. NFS Server not working
    By tha_haze in forum WL-HDD Q&A
    Replies: 7
    Last Post: 31-05-2007, 09:00
  2. Cannot get NYLON working.
    By Mr.EoniX in forum WL-500g Q&A
    Replies: 4
    Last Post: 05-05-2005, 15:34
  3. WWW virtual server working but FTP not why?
    By Satleecher in forum WL-500g Q&A
    Replies: 5
    Last Post: 25-09-2004, 20:46
  4. Replies: 0
    Last Post: 16-09-2004, 09:46
  5. Port Forwarding cq Virtual Server not working?
    By Antiloop in forum WL-500g Q&A
    Replies: 1
    Last Post: 09-12-2003, 08:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •