#!/bin/sh # NEC reference implementation Socks5 package for floppyfw # compiled by Stanislaw Y. Pusep (a.k.a. Stas) # Release 1 @ 20 Nov 2001 # Source used: # socks5-v1.0r11.tar.gz # Configured with: # ./configure --prefix=/ --with-srvconffile=/etc/socks5.conf --with-srvpidfile=/var/run/socks5.pid --with-srvpwdfile=/etc/socks5.passwd # Patches aplied: # http://www.socks.nec.com/patch/socks5-v1.0r11.patch1.txt # NOTE: this reference implementation from NEC may *not* be pretty safe and # I haven't patience to read it's own license, but I guess it works better # than Dante implementation (which didn't worked fine for me). Good luck! . /etc/config # default config files are already in the package # strip leading hashes if you want to edit that config #cat > /etc/socks5.conf << EOCONF ## /etc/socks5.conf ## (by Stanislaw Pusep) ## WARNING: this config allows client to do *everything* if they are inside ## the network! If you think that's unsafe, try to use /etc/socks5.passwd ## authentication. # ## Based on "SOCKS5 Proxy Mini-Howto" by Ying Zhang ## (can be found at http://dcfonline.sfu.ca/ying/linux/socks5/part2.html) # #set SOCKS5_MAXCHILD 32 #set SOCKS5_TIMEOUT 5 #set SOCKS5_V4SUPPORT #set SOCKS5_NOIDENT #set SOCKS5_FORCE_ENCRYPT #set SOCKS5_REVERSEMAP # #interface 192.168.0. - eth1 #auth 192.168.0. - - #permit - - 192.168.0. - - - - #deny - - - - - - - #EOCONF # uncomment if you want to use password authentication #cat > /etc/socks5.passwd << EOPASSWD #guest guest #EOPASSWD /bin/socks5