![]() |
|
|||||||
| OpenBSD Security Functionally paranoid! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
Hello
I'm experimenting with the rules for packet tagging but when I check the syntax of the rules I get errors... Code:
/# pfctl -n -f /etc/pf.conf.test /etc/pf.conf.test:102: syntax error /etc/pf.conf.test:105: syntax error /etc/pf.conf.test:108: syntax error Code:
# Tag roper -> inet block out on $ext_if from $my_ip tag ROPER_to_INET # line 99 # Allow roper -> inet DNS pass quick tagged ROPER_to_INET proto udp to $dns_ip port domain # line 102 # Allow roper -> inet NTP pass quick tagged ROPER_to_INET proto udp to $ntp_ip port ntp # line 105 # Allow roper -> inet pkg_add pass quick tagged ROPER_to_INET proto tcp to $pkg_ip # line 108 Thanks in advance /Quaxo |
|
|||
|
...never mind. I found the problem!
Correct rules should be with "tagged" at the end of the line: Code:
# Tag roper -> inet block out on $ext_if from $my_ip tag ROPER_to_INET # Allow roper -> inet DNS pass quick proto udp to $dns_ip port domain tagged ROPER_to_INET # Allow roper -> inet NTP pass quick proto udp to $ntp_ip port ntp tagged ROPER_to_INET # Allow roper -> inet pkg_add pass quick proto tcp to $pkg_ip tagged ROPER_to_INET /Quaxo |
|
||||
|
The intent is to make your ruleset easier to manage, and easier to understand. I don't use them, only because my rulesets predate the feature. Otherwise, I'd have investigated them in detail.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Policy routing bsd and cisco | clone | Guides | 1 | 17th August 2009 04:57 PM |
| IP Security Policy Management snap-in | wesley | OpenBSD Security | 2 | 11th August 2009 04:34 AM |
| Web content filtering | Crypt | FreeBSD Security | 14 | 14th December 2008 01:38 PM |
| Enforce a better user password policy | anomie | Guides | 8 | 7th November 2008 08:10 PM |
| question about Packet Filter (pf) | milo974 | OpenBSD Security | 2 | 31st July 2008 01:39 PM |