Hi,
I am trying to add and remove from commadline on the fly .I have tried like below--
1.I have written the below line on /etc/pf.conf to create anchor.
2. Then I have loaded the pf.conf file like below
3.Then I have added a rule like below
4. Up to this it's working fine.
But now If want to add new rule it replacing the previous rule .
How I will keep on add and delete the new rule on the same anchor on run time.
Please help.
I am trying to add and remove from commadline on the fly .I have tried like below--
1.I have written the below line on /etc/pf.conf to create anchor.
Code:
"anchor goodguys"
pfctl -f /etc/pf.conf
3.Then I have added a rule like below
echo "block in proto icmp from 10.0.104.140 to any"| pfctl -a goodguys -f -
4. Up to this it's working fine.
But now If want to add new rule it replacing the previous rule .
How I will keep on add and delete the new rule on the same anchor on run time.
Please help.