ipfw port forwarding

John Musbach johnmusbach1 at gmail.com
Sun Dec 9 21:27:20 PST 2007


On Dec 9, 2007 7:00 PM, LuKreme <kremels at kreme.com> wrote:
> Hate replying to myself, but when I did something similar to this, the
> machine lost all connectivity to the net:
>
> # ipfw add 1000 fwd localhost,6001 tcp from any to 192.168.3.2 via en1

While that didn't cause me to loose internet connectivity it also
didn't forward the packets, the command I used (and ipfw accepted)
was:

sudo ipfw add 02120 fwd localhost(I also tried replacing this with the
router assigned address),22 tcp from any to 10.0.2.7 via en1

and it didn't work, the mac that was supposed to forward the packets
logged the connection attempts but I never got the ssh login prompt on
the machine I used to test the connection and the firewall log on the
mac that was supposed to receive the packets never showed any sign of
receiving any of the packets at all. I don't understand this... Maybe
Apple disabled the packet forwarding functionality of the unix
core....


-- 
Best Regards,

John Musbach


More information about the MacOSX-admin mailing list