miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mac OS X (Darwin) - pf instead of ipfw

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
AUTOMAGIC



Joined: 04 Nov 2013
Posts: 1
Location: Sweden

PostPosted: Mon Nov 04, 2013 9:13 pm    Post subject: Mac OS X (Darwin) - pf instead of ipfw Reply with quote

Hi,

Since Mac OS X Lion (10.7) ipfw has been replaced by pf. This is still the case for 10.8 and 10.9.

Currently there is no support for the Darwin+pf configuration. I tried to casually hack the Makefile to use the pf steps from BSD, with little success (got very little knowledge of make files).

The pfvar.h file is needed it seems, I downloaded it from Apple OSS site..

Anyone got any ideas for compiling on Mac OS X 10.8 and preferably 10.9?


Thanks,
Eric
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1391

PostPosted: Fri Dec 13, 2013 6:06 pm    Post subject: Reply with quote

I tried to compile on OS X 10.9 without success :
I made necessary modifications on genconfig.sh and Makefile.macosx but I cannot compile because OS X SDK doesn't include pfvar.h

I cannot pick a pfvar.h file from elsewhere because it looks like pf was customised by apple...
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1391

PostPosted: Fri Dec 13, 2013 6:17 pm    Post subject: Reply with quote

I'm going to download XNU source from http://www.opensource.apple.com/tarballs/xnu/

Or from github : https://github.com/opensource-apple/xnu
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1391

PostPosted: Fri Dec 13, 2013 6:31 pm    Post subject: Reply with quote

XNU pfvar.h includes :
Code:
#ifdef PRIVATE
/*
 * XXX
 * XXX Private interfaces.  Do not include this file; use pfctl(8) instead.
 * XXX
 */

_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1391

PostPosted: Mon Dec 16, 2013 12:17 pm    Post subject: Reply with quote

I made an attempt to compile on my OS X 10.9 : https://github.com/miniupnp/miniupnp/commit/fa87b3aff7e1469fee28ed9efc5d172470edb756
it does compile, but fails to launch :
Code:
 miniupnpd[2771] <Error>: pf is disabled


but that is a starting point
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.