|
|||
Pf open5.4 not accept rule
Hi,
I have the following table and rule in pf.conf table <PASS_FTP> { 192.168.20.3 192.168.20.5 192.168.20.6 192.168.20.8 } pass in quick on $int_if proto tcp from <PASS_FTP> to any port 21 divert-to 127.0.0.1 port 8021 with this rule, I allow only those ips ftp but please do not load the rule and displays the following error pfctl -f /etc/pf.conf /etc/pf.conf:139: address family mismatch for divert pfctl: Syntax error in config file: pf rules not loaded Anyone know if it has syntax error? Thanks! |
|
|||
On an old 5.2 snapshot adding inet fixes the syntax error
Code:
table <PASS_FTP> { 192.168.20.3 192.168.20.5 192.168.20.6 192.168.20.8 } pass in quick on $int_if inet proto tcp from <PASS_FTP> to any port 21 divert-to 127.0.0.1 port 8021 Code:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
J65nko, thanks for the reply.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pf NAT rule isn't working | flit | OpenBSD Security | 8 | 30th September 2013 02:45 AM |
4 py-*** packages wouldn't accept uninstall or repair | daemonfowl | OpenBSD Packages and Ports | 8 | 4th June 2013 06:21 PM |
Public WiFi and accept screens | phyro | OpenBSD Installation and Upgrading | 10 | 10th January 2013 09:36 PM |
Help with my pf rule please | whispersGhost | OpenBSD Security | 0 | 19th April 2012 07:54 AM |
How to get 'make' to accept all defaults for dependent packages | Xeon | FreeBSD Ports and Packages | 1 | 12th February 2009 01:54 AM |