10年工作经验,专研网站运维。
全部博文(454)
分类: 系统运维
2015-12-14 16:15:57
useradd haha -m -s /bin/bash3. passwd haha
7. log out, and log in.
deluser --remove-home olduser
iptables -L
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPTiptables -A INPUT -p tcp --dport *1234* -j ACCEPT
iptables -A INPUT -j DROP
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -I INPUT 5 -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 76. Save iptables configurationiptables-save > /etc/iptables.rules7. Configure iptables save automaticallyvim vim /etc/network/interfacesadd following content:pre-up iptables-restore < /etc/iptables.rulessave and quit.
apt-get update
apt-get upgrade