PF - pfctl命令备忘

 

# pfctl -d Disable the packet filter.
# pfctl -e Enable the packet filter.

# pfctl -f /etc/pf.conf 载入 pf.conf 文件
# pfctl -nf /etc/pf.conf 解析文件,但不载入
# pfctl -Nf /etc/pf.conf 只载入文件中的NAT规则
# pfctl -Rf /etc/pf.conf 只载入文件中的过滤规则

# pfctl -sn 显示当前的NAT规则
# pfctl -sr 显示当前的过滤规则
# pfctl -ss 显示当前的状态表
# pfctl -si 显示过滤状态和计数
# pfctl -sa 显示任何可显示的


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0008403560{main}( ).../index.php:0
20.09231321184Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09231321184Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.33822979440Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.33913003848Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.34013059176Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.34033076232require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.35013220320K2ControllerItem->execute( ).../k2.php:64
90.35013220320K2ControllerItem->display( ).../BaseController.php:710
100.35953489400K2ControllerItem->display( ).../item.php:78
110.35953489400K2ControllerItem->display( ).../controller.php:19
120.36143507920Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.36363528336K2ViewItem->display( ).../ViewController.php:102
140.43574070552K2ViewItem->display( ).../view.html.php:742
150.43574070552K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.43794244952include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Pfsense
  • Read 3880 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0008403560{main}( ).../index.php:0
20.09231321184Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09231321184Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.33822979440Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.33913003848Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.34013059176Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.34033076232require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.35013220320K2ControllerItem->execute( ).../k2.php:64
90.35013220320K2ControllerItem->display( ).../BaseController.php:710
100.35953489400K2ControllerItem->display( ).../item.php:78
110.35953489400K2ControllerItem->display( ).../controller.php:19
120.36143507920Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.36363528336K2ViewItem->display( ).../ViewController.php:102
140.43574070552K2ViewItem->display( ).../view.html.php:742
150.43574070552K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.43794244952include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top