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
# blocksshd startup & stop configuration # function bsshd_startup { sleep 2 iptables -N `grep chain /etc/blocksshd.conf | awk -F\' '{print $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="bsshd_startup" # # stop # set all chains to accept, flush chains , remove extra chains # STOPCMD="bsshd_shutdown" # STOPCMD="bsshd_shutdown"