Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed May 31, 2018
1 parent ac39873 commit 21df61e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iptables/ipt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
/sbin/iptables -A OUTPUT -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.111 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.112 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 443 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 443 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 22 -j ACCEPT
##允许ping规则
##/sbin/iptables -A INPUT -p icmp -j ACCEPT
/sbin/iptables -A INPUT -j REJECT
/sbin/iptables -A FORWARD -j REJECT

/sbin/service iptables save
echo ok
/sbin/iptables -nL
echo ok

0 comments on commit 21df61e

Please sign in to comment.