Skip to content

Rakancito/Firewall-Packet-Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Firewall-Packet-Filter for FreeBSD.

How to enable PF on FreeBSD 12.1

  1. Input this commmand:

    sysrc pf_enable=yes
  2. Download the file "pf.conf" and upload in your-option-folder.

NOTE: Please you need modificate the pf.conf PORTS for your PORTS or maybe you will be blocked.

  1. Configure the rules with the pf.conf

    sysrc pf_rules=/your-option-folder/pf.conf

If you want logs you can active with this commands:

  1. First command for enable Logs.

    sysrc pflog_enable=yes
  2. Second command for specify archive destination logs.

    sysrc pflog_logfile=/var/log/pflog

Start and Stop Firewall

a) Command for start Firewall:

service pf start

b) Command for start Logs:

service pflog start

c) Command for stop Firewall:

service pf stop

d) Command for restart Firewall:

serve pf restart

e) Command for check Firewall status:

service pf status

Specific commands for this Rules PF Archive:

  1. Show all abusive hosts:

    pfctl -t abusive_hosts -T show
  2. Delete all Banned Clients:

    pfctl -t abusive_hosts -T flush
  3. Add one IP for Ban:

    pfctl -t abusive_hosts -T add IP
  4. Delete one IP Banned:

    pfctl -t abusive_hosts -T del IP

About

Packet Filter for FreeBSD Firewall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published