Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an OS X 10.6 machine with two network cards:

1 -
2 -

and I'd like to forward all traffic coming in on port to another machine on the 10.* subnet ( I've turned the firewall (ipfw) on and added basic rules:

00100 divert 8668 ip from any to any via en1 (en1 is the interface with the 192* addr)
00200 allow ip from any to any
65535 allow ip from any to an

and then run natd with:

sudo natd -v -l -a  en1 -dynamic -redirect_port tcp

Running in verbose mode this gives:

In  [TCP]  [TCP] my_remote_ip:50116 -> aliased to
           [TCP] my_remote_ip:50116 ->

So natd is seeing the connection, and it thinks it's aliasing it, but the attempted connection (on the remote machine) always hangs and times out.

I've enabled IP Forwarding (sysctl -w net.inet.ip.forwarding=1) and can't think of any other reason why this isn't working.

Any help would be appreciated.

share|improve this question

You must log in to answer this question.

Browse other questions tagged .