Hello,
I want to achieve port forwarding using ipfw. Emails going out of my system and coming in my system need to be forwarded to my local application which is listening on an opened port. My application is listening on port 1500. I have written ipfw rules such that when there is traffic between my local machine and the mail server on pop3/smtp then that traffic needs to be forwarded to local machine 1500 port (on which my application is listening.). I have the following rules set: 00100 allow ip from any to any via lo0 00110 fwd localhost,1500 tcp from xxx.xxx.xx.xx pop3 to me 00120 fwd localhost,1500 tcp from me to xxx.xxx.xx.xx dst-port pop3 00130 fwd localhost,1500 tcp from xxx.xxx.xx.xx smtp to me 00140 fwd localhost,1500 tcp from me to xxx.xxx.xx.xx dst-port smtp 65535
allow ip from any to any
When I set these rules and send email then my email gets stuck in the outbox and mail is not delivered. I have tried all combination of rules but to no avail. I have read about this in forums but still no solution. sysctl variables net.inet.ip.fw.enable=1 net.inet.ip.forwarding=1 net.inet.ip.redirect=1 are set
Mine is MAC OS X Server 10.6.6. Am I missing out on anything. Do you need more inputs to help ?
Thanks, Deena |