ileti:~/ozan# cat iptables_flash
#!/bin/bash
#
IPTABLES="/sbin/iptables"
#
# reset the default policies in the filter table.
#
$IPTABLES -P INPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -P OUTPUT ACCEPT
#
# reset the default policies in the nat table.
#
$IPTABLES -t nat -P PREROUTING ACCEPT
$IPTABLES -t nat -P POSTROUTING ACCEPT
$IPTABLES -t nat -P OUTPUT ACCEPT
#
# reset the default policies in the mangle table.
#
$IPTABLES -t mangle -P PREROUTING ACCEPT
$IPTABLES -t mangle -P OUTPUT ACCEPT
#
# flush all the rules in the filter and nat tables.
#
$IPTABLES -F
$IPTABLES -t nat -F
$IPTABLES -t mangle -F
#
# erase all chains that's not default in filter and nat table.
#
$IPTABLES -X
$IPTABLES -t nat -X
$IPTABLES -t mangle -X
apt-get güncellemesi için
ileti:~/ozan# cat guncel
iptables -A OUTPUT -d 137.226.34.227 -o eth0 -p tcp --dport 80 -m tcp -m state --state NEW -j ACCEPT
iptables -A OUTPUT -d 212.211.132.32 -o eth0 -p tcp --dport 80 -m tcp -m state --state NEW -j ACCEPT
iptables -A OUTPUT -d 212.211.132.250 -o eth0 -p tcp --dport 80 -m tcp -m state --state NEW -j ACCEPT
iptables -A OUTPUT -d 192.54.42.193 -o eth0 -p tcp --dport 80 -m tcp -m state --state NEW -j ACCEPT
iptables -A OUTPUT -d 194.8.57.6 -o eth0 -p tcp --dport 80 -m tcp -m state --state NEW -j ACCEPT
iptables -A OUTPUT -d 82.195.75.82 -o eth0 -p tcp -m tcp --dport 80 -m tcp -m state --state NEW -j ACCEPT
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment