Hi, I'm currently using ipfw on Freebsd9.1 FreeBSD 9.1 but I'm getting some problems to make it work.
This is my relevant part of rc.conf:
And this is /etc/firewall.rules:
But IPFIREWALL returns an error on the second line
In my kernel I have configured this options:
Can someone help me with this error? Alternatively, how can I translate those rules with pf?
Many thanks in advance!
This is my relevant part of rc.conf:
Code:
firewall_enable="YES"
firewall_script="/etc/firewall.rules"
And this is /etc/firewall.rules:
Code:
ipfw -f flush
ipfw add 60000 fwd localhost,3128 ip from any to any via gre0 in
ipfw add 60500 allow ip from any to any
But IPFIREWALL returns an error on the second line
Code:
ipfw add 60000 fwd localhost,3128 ip from any to any via gre0 in
Code:
ipfw: getsockopt(IP_FW_ADD): Invalid argument
ipfw: opcode 86, unknown opcode
In my kernel I have configured this options:
Code:
options IPFIREWALL # firewall
options IPFIREWALL_FORWARD # Enable transparent proxy support
Can someone help me with this error? Alternatively, how can I translate those rules with pf?
Many thanks in advance!