23 lines
477 B
Bash
Executable File
23 lines
477 B
Bash
Executable File
#!/bin/sh
|
|
### Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
|
|
export PATH="/usr/sbin:/sbin:$PATH"
|
|
|
|
iptables -F
|
|
iptables -X
|
|
iptables -Z
|
|
iptables -P INPUT ACCEPT
|
|
iptables -P OUTPUT ACCEPT
|
|
iptables -P FORWARD ACCEPT
|
|
|
|
if [ -e "/proc/net/if_inet6" -a -n "`cat /proc/net/if_inet6`" ] && which ip6tables >/dev/null 2>&1; then
|
|
ip6tables -F
|
|
ip6tables -X
|
|
ip6tables -Z
|
|
ip6tables -P INPUT ACCEPT
|
|
ip6tables -P OUTPUT ACCEPT
|
|
ip6tables -P FORWARD ACCEPT
|
|
fi
|
|
|
|
exit 0
|