Link to home
Start Free TrialLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

PF firewall rule to restrict only one IP access and restrict bandwidth usage in freeBSD

I am new to PF firewall and looking for a simple PF rule to execute on my freeBSD 11.3 box. I tried to learn by doing but many times kept myself locked out of ssh :( hence looking for suggestion

1. I want only one 1 TCP connection from each source IP to port 22. If there is a existing connection to port 22 then new connection from same source IP would not be allowed
2. Also all IP can not use more than 1Mbps speed

I just bought the book "The Book of PF" and reading more to learn the basic. But I would really appreciate if someone can help on how can I achieve this? on my system PF is not enabled yet. TIA
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial