• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Port forwarding using ipfw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Port forwarding using ipfw


  • Subject: Port forwarding using ipfw
  • From: Deena Awate <email@hidden>
  • Date: Thu, 10 Mar 2011 21:39:41 -0800 (PST)

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Network latency, TCP, Bluetooth
  • Next by Date: Calling SecCertificateCreateFromData() from within a daemon process (launched using launchctl) fails with Error: 100001 (0x186a1)(UNIX[Operation not permitted]) for a thread impersonated logged-in user using pthread_setugid_np
  • Previous by thread: Re: Network latency, TCP, Bluetooth
  • Next by thread: Calling SecCertificateCreateFromData() from within a daemon process (launched using launchctl) fails with Error: 100001 (0x186a1)(UNIX[Operation not permitted]) for a thread impersonated logged-in user using pthread_setugid_np
  • Index(es):
    • Date
    • Thread