On 06/10/13 09:17, Rhys Ap Mihangel wrote:
Hi,

I'm trying to open port 9001 on my gateway machine for a tor relay. I've been 
trying different combinations for some time now only to have syntax errors, etc 
on pfctl -nvf /etc/pf.conf. Why am I finding it so difficult?

I would expect simple statements like this to just work

pass in on (egress) to (egress) port 9001

pass in on (rl0) to (rl0) port 9001


thanks

rhys


Two things, when specifying a port you have to also specify what type of network and what protocol. Secondly you don't give your full ruleset so it's hard to know what's going on, but based on what you have sent to the list unless you're trying to get to port 9001 on your gateway machine on the rl0 interface only then the second rule you sent should read something like:

pass in on rl0 inet proto tcp to any port 9001

Aaron

Reply via email to