Logoj0ke.net Open Build Service > Projects > internetx > blocksshd > blocksshd.sysconfig
Sign Up | Log In

File blocksshd.sysconfig of Package blocksshd (Revision 12)

Currently displaying revision 12, show latest

 
1
# blocksshd startup & stop configuration
2
3
function bsshd_startup {
4
    sleep 2
5
    iptables -A INPUT -j `grep chain /etc/blocksshd.conf | awk -F\' '{print $2}'`
6
}
7
8
function bsshd_shutdown {
9
    iptables -P INPUT ACCEPT
10
    iptables -P FORWARD ACCEPT
11
    iptables -P OUTPUT ACCEPT
12
    iptables -F
13
    iptables -X
14
}
15
16
# startup
17
# e.g. iptables -A INPUT -j blocksshd
18
# STARTCMD="bsshd_startup"
19
20
STARTCMD=""
21
22
# stop 
23
# set all chains to accept, flush chains , remove extra chains
24
# STOPCMD="bsshd_shutdown"
25
26
STOPCMD=""
27