| | 3 | |
| | 4 | Download socks5-v1.0r??.tar.gz from www.socks.nec.com via the link "Socks5 |
| | 5 | reference implementation". Compile and install it manually, don't use any binary |
| | 6 | (rpm deb) because you need the header files and not just socks.h. |
| | 7 | Download licq-1.0.2.tar.gz |
| | 8 | Say you extracted socks5 in /usr/local/src/socks5-v1.0r11 |
| | 9 | Then configure licq with |
| | 10 | ./configure --enable-socks5 |
| | 11 | --with-socks5-inc=/usr/local/src/socks5-v1.0r11/include |
| | 12 | The libraries should be found automatically if you did a proper make install on |
| | 13 | the socks5 package. |
| | 14 | Add the following to src/main.cpp after line 12 (#define SOCKS) |
| | 15 | #define INCLUDE_PROTOTYPES |
| | 16 | Copy lines 12 and 13 from this file (so the #defines) to src/socket.cpp in the |
| | 17 | beginning. |
| | 18 | Also in socket.cpp: |
| | 19 | change at lines 293 and 509 "socklen_t" by "int" |
| | 20 | Change line 418: |
| | 21 | Because of a bug in the socks5 implementation your local ip behind the firewall |
| | 22 | doesn't get assigned properly , so either set your IP manually or do a regular |
| | 23 | OS call ( youll have to do this if you're on dhcp and get a different ip from |
| | 24 | time to time). |
| | 25 | I changed it to |
| | 26 | m_sLocalAddr.sin_addr.s_addr = 0x1E10430A |
| | 27 | Where the number is my local intranet IP reversed, so its 10.67.16.30. |
| | 28 | I know this is dirty but it's fast :-) |
| | 29 | Check your Makefile in src/ if it includes the -lsocks5 directive. Then do a |
| | 30 | make and make install like always. Don't forget to update your |
| | 31 | /etc/libsocks5.conf. |
| | 32 | |
| | 33 | Jeroen Ost |
| | 34 | jeroen.ost@ubizen.com |
| | 35 | |
| | 36 | |
| | 37 | |
| | 38 | |
| | 39 | |
| | 40 | Other possibly useful information: |
| | 41 | |