• 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
Re: Port forwarding using ipfw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Port forwarding using ipfw


  • Subject: Re: Port forwarding using ipfw
  • From: Deena Awate <email@hidden>
  • Date: Fri, 08 Apr 2011 04:11:48 -0700 (PDT)

I got to know about few ipfw rules. When I add rules and run my proxy app which is listening on the configured port where ipfw should fwd traffic I see that there is traffic flowing through my rule. So when I say 'ipfw show' command I can see that the rule does get traffic as I send mails. So the rule is correct but what remains is where is the traffic going to from there. It should have reached my app where I am listening on the port. But it does not reach that far. Could anyone give slightest hint as to how I can check traffic flow. Where the packets are getting lost, whether its a permissions issue or what, any logs to check (I can see traffic flow through my rule in the appfilewall.log file). Any help would be great.

Thanks,
Deena 

--- On Fri, 3/11/11, Deena Awate <email@hidden> wrote:

From: Deena Awate <email@hidden>
Subject: Port forwarding using ipfw
To: email@hidden
Date: Friday, March 11, 2011, 11:09 AM

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: Get mac address of physical NIC card from firmware & physical/virtual ethernet identification.
  • Next by Date: Re: CFNetwork, round-robin DNS and IP failover
  • Previous by thread: Re: Get mac address of physical NIC card from firmware & physical/virtual ethernet identification.
  • Next by thread: DNS and multiple interfaces
  • Index(es):
    • Date
    • Thread