|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/share/doc/dovecot-1.0.7/wiki/ |
Upload File : |
Listening on additional ports ============================= Here's a little trick to get servers to listen on additional ports. This can be used for SMTP as well or any other protocol. with Linux ========== This requires netfilter compiled into the kernel or loaded as module and the user-space iptables command: ---%<------------------------------------------------------------------------- iptables -v -t nat -A PREROUTING -p tcp -j REDIRECT --dport 109 --to-ports 110 ---%<------------------------------------------------------------------------- using socat =========== You can achieve the same result: ---%<------------------------------------------------------------------------- socat tcp4-listen:109,setuid=nobody,fork,reuseaddr tcp4-connect:localhost:110,bind=localhost& ---%<------------------------------------------------------------------------- (This file was created from the wiki on 2007-06-15 04:42)