Solved pf fules for socks5 in regular firefox?

Hello community,

I installed security/tor and I can make regular www/firefox-esr work with tor by setting

Code:
127.0.0.1 port 9050

as socks5 proxy in Preferences -> Advanced -> Network -> settings.

But as soon as I enable PF firewall, the traffic is blocked.

My current /etc/pf.conf looks like

Code:
tcp_services = "{ ssh, sftp, ntp, imaps, https, smtps, domain, www, pop3, auth, pop3s }"
udp_services = "{ domain, ntp }"
tcp_in_services = "{ ssh, sftp }"
block all
pass in proto tcp to port $tcp_in_services
pass out proto tcp to port $tcp_services
pass proto udp to port $udp_services

I also tried adding socks to both tcp_services and tcp_in_services but to no avail.

Any suggestions on how to write the correct pf.conf for socks5 proxy used in regular firefox?

Thanks.
KI
 
1. If you don't have set skip lo0, firefox can't connect to port 9050 with this config.
2. block log all is your friend for debugging.
 
1. If you don't have set skip lo0, firefox can't connect to port 9050 with this config.
2. block log all is your friend for debugging.

Thank you so much for your hint. I used

Code:
set skip on lo0

in /etc/pf.conf, now it works.
 
Back
Top