diff options
author | Silvino Silva <silvino@bk.ru> | 2016-09-11 01:13:16 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-09-11 01:13:16 +0100 |
commit | d4f02214d7262e85e42cacc25c2ba77d8dd89c19 (patch) | |
tree | c58c1d674a4e0974565185239b2ceb18e9cfdeee /core/conf | |
parent | f7994fd3e7ed3d00838022f7ab63b9f849528f04 (diff) | |
download | doc-d4f02214d7262e85e42cacc25c2ba77d8dd89c19.tar.gz |
network iptables and resolver revision
Diffstat (limited to 'core/conf')
-rw-r--r-- | core/conf/rc.d/iptables | 31 | ||||
-rw-r--r-- | core/conf/resolv.conf | 3 |
2 files changed, 34 insertions, 0 deletions
diff --git a/core/conf/rc.d/iptables b/core/conf/rc.d/iptables new file mode 100644 index 0000000..d3bbc9b --- /dev/null +++ b/core/conf/rc.d/iptables @@ -0,0 +1,31 @@ +#!/bin/sh +# +# /etc/rc.d/iptables: load/unload iptable rules +# + +case $1 in +start) + echo "Starting IPv4 firewall filter table..." + /usr/sbin/iptables-restore < /etc/iptables/rules.v4 + ;; +stop) + echo "Stopping firewall and deny everyone..." + /usr/sbin/iptables -F + /usr/sbin/iptables -X + /usr/sbin/iptables -t nat -F + /usr/sbin/iptables -t nat -X + /usr/sbin/iptables -t mangle -F + /usr/sbin/iptables -t mangle -X + /usr/sbin/iptables -P FORWARD DROP + /usr/sbin/iptables -P OUTPUT DROP + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file diff --git a/core/conf/resolv.conf b/core/conf/resolv.conf new file mode 100644 index 0000000..8a85b42 --- /dev/null +++ b/core/conf/resolv.conf @@ -0,0 +1,3 @@ +# /etc/resolv.conf.head can replace this line +nameserver 213.73.91.35 +# /etc/resolv.conf.tail can replace this line |