ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.188.170.226 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /etc/rc4.d/ |
Upload File : |
#!/bin/bash ## # Advanced Policy Firewall (APF) v1.7.6 # (C) 2002-2019, R-fx Networks <proj@rfxn.com> # (C) 2019, Ryan MacDonald <ryan@rfxn.com> # This program may be freely redistributed under the terms of the GNU GPL v2 ## ### BEGIN INIT INFO # Provides: apf # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start apf at boot time # chkconfig: 345 55 25 # description: Advanced Policy Firewall (APF); iptables firewall wrapper ### END INIT INFO # source function library . /etc/rc.d/init.d/functions # import variables . /etc/apf/conf.apf . /etc/apf/internals/internals.conf ipt="/sbin/iptables" inspath="/etc/apf" prog="apf" case "$1" in start) echo -n "Starting APF:" /usr/local/sbin/apf --start >> /dev/null 2>&1 echo_success echo ;; stop) echo -n "Stopping APF:" /usr/local/sbin/apf --stop >> /dev/null 2>&1 echo_success echo ;; restart) $0 stop $0 start ;; condrestart) if $ipt $IPT_FLAGS -n -L TALLOW > /dev/null 2>&1 && \ $ipt $IPT_FLAGS -n -L TDENY > /dev/null 2>&1 && \ $ipt $IPT_FLAGS -n -L TGALLOW > /dev/null 2>&1 && \ $ipt $IPT_FLAGS -n -L TGDENY > /dev/null 2>&1; then $0 stop $0 start else echo "APF not running, doing nothing." fi ;; *) echo "usage: $0 [start|stop|restart|condrestart]" esac exit 0