Port Forwarding in OS X

Soldato
Joined
18 Oct 2002
Posts
6,861
Location
Cambridge
Due to various problems I've been having with my main PC, it's currently connecting to my network and thus the internet via Internet Sharing through my Mac Mini's wireless card. After a good bit of faffing to get them to talk together this is working fine, and I'd like to forward some ports from the Mac to my PC.

I can't seem to find the option to do this either in Internet Sharing or any of the Network windows. I've had a quick Google and not really found anything of help, so does anyone have any pointers as to where I can find the port forwarding options? Cheers :)

arty
 
Sorry to bump, but does anyone have even any idea at all? I'm fairly up on networking so feel free to be technical if necessary :)

arty
 
if you're as up on networking as you suggest, OS X uses ipfw (which is the standard firewalling daemon for *BSD UNICes) therefore you could script it against ipfw, which is fairly similar to 2.2 linux kernel's ipchains firewalling.
 
Big-Mac-Please said:
Go into system preferences - sharing - firewall you can use the ones there or add your own :)

Hope that helps!

Thanks, though that only seems to act as a fairly simple firewall rather than port-forwarding to external addresses.

M0KUJ1N said:
if you're as up on networking as you suggest, OS X uses ipfw (which is the standard firewalling daemon for *BSD UNICes) therefore you could script it against ipfw, which is fairly similar to 2.2 linux kernel's ipchains firewalling.

I've had a look at ipfw already and it almost looks good, but I'm assuming it won't actually re-route packets to external IPs. My guess is that I need to use NAT to do that, but I can't seem to find any NAT daemon configuration files on here (natd.conf or something like that). Oh the weird and wonderful world of Mac! :p

Will continue to poke around. Thanks anyway guys.

arty
 
Big-Mac-Please said:
Ok thought it was worth a shout :)

Good luck!

Thanks - I've tried messing about with a NAT daemon but in the end decided to hold off for my new network card on this computer which should negate the need to connect through the Mini, allowing me to do all the port forwarding stuff on my proper router.

The Mini will still be used for a fair bit of stuff, though :)

arty
 
Back
Top Bottom