Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
blocksshd
> blocksshd.sysconfig
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File blocksshd.sysconfig of Package blocksshd (Revision 12)
Currently displaying revision
12
,
show latest
# blocksshd startup & stop configuration function bsshd_startup { sleep 2 iptables -A INPUT -j `grep chain /etc/blocksshd.conf | awk -F\' '{print $2}'` } function bsshd_shutdown { iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F iptables -X } # startup # e.g. iptables -A INPUT -j blocksshd # STARTCMD="bsshd_startup" STARTCMD="" # stop # set all chains to accept, flush chains , remove extra chains # STOPCMD="bsshd_shutdown" STOPCMD=""