PF pf help

Why does this pf.conf work but my further attempts to improve it don't? I do use a vpn hence tun0.
 

Attachments

  • workingpf.conf
    2.9 KB · Views: 177
  • pfnotworking.conf
    1.3 KB · Views: 167
workingpf.conf works because a person that knows how to write PF rules posted it on http://linuxoidblog.blogspot.com/2017/09/freebsd.html

pfnotworking.conf does not work because because a person thought that copy & paste might be enough for writing PF rules.

There is nothing wrong making first steps with examples. Newbees are expected to start with simple examples for learning to understand what each line of the example means. This learning enables writing your own lines by trial and error.

You further need to learn how to debug using pfctl -vv and pflog. Grow your set of rules line by line.

You further need to learn how to post smart questions in forums. Asking why copied stuff from elsewhere works and why your own mess don't is not the way to go here. Have a look at diff workingpf.conf pfnotworking.conf . Do you like what you see?
 
Back
Top