### 3proxy security considirations

1. Never install 3proxy suid. If you need it to run suid write some wrapper with fixed configuration file.
2. Make configuration file only available to account 3proxy starts with.
3. Under Windows NT/2000/XP/2003 if 3proxy is used as service create new unprivileged local account without "logon locally" right. Assign this account to 3proxy service.
4. Under unix use chroot to jail 3proxy (make sure files included in configuration file after 'chroot' command, if any, are available from jail)
5. Under Unix, either start 3proxy with unprivileged account or, if you need some privileged ports to be used by 3proxy, use setgid/setuid commands inside 3proxy.cfg immediately after last occurance of service binded to privileged port in configuration file (setgid must preceed setuid).
6. Allways use full paths in configuration file
7. Try to avoid 'strong' authentication, because only cleartext authentication method is currently available.
8. Always specify internal and external interfaces.
9. Always limit connections to internal network and localhost (to 127.0.0.1 and all interfaces) with ACLs. Be carefull, because BIND command in SOCKS requies BIND method with external interface IP address to be allowed.
10. Always use nserver and nscache under Unix, overwise DoS attack is possible with unreachable DNS server (because gethostbyname will block over threads).
11. Remember, that 'nbname' authentication is not reliable and can be spoofed.
12. Keep logs in secure location, because some confidential information from user's request can be logged.
13. Use -xyz+A character filtering sequences for 'logformat', especially with ODBC logging to prevent SQL and log record injections.
14. Immediately report all service crashes to developers
15. Participate in code audit :)

    $Id: securityen.html,v 1.4 2007/05/07 09:16:51 vlad Exp $