Thread: pf.conf help?
View Single Post
Old 28th January 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Quote:
Originally Posted by ucharfli View Post
@jggimi;
It was nice, but I do not know how to write a rule with PF from where. That's why I asked for help.
You have a choice:
  1. Blindly copy/paste a configuration someone prepares for you, and hope that it works, and hope that it does not cause problems.
  2. Learn how to provision your own network connections, so that you are able to manage and maintain them the way you wish.
I'm happy to help you with "b." Step by step. But I have no interest in providing a PF configuration file for you to copy/paste.
Quote:
I found something simple, but is it a benefit?
These two rules conflict with each other. The set skip rule instructs PF to ignore traffic on the interface, the pass rule instructs PF to pass traffic on the interface.

The two rules have a similar result, but they are not exactly equivalent.

The set skip rule will only be applied at the time the rules are loaded, and if the tun0 interface does not exist at that time, the first rule will not be applied.

Last edited by jggimi; 28th January 2018 at 02:03 AM. Reason: clarity
Reply With Quote