iptables fix

master
bedefaced 8 years ago committed by bedefaced
parent f53fb1ed6e
commit 7dc9ab9e51
  1. 9
      pptp/iptables-setup.sh

@ -3,6 +3,13 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $DIR/env.sh
if [ "$PLATFORM" == "$CENTOSPLATFORM" ]; then
systemctl enable iptables
systemctl stop firewalld
systemctl disable firewalld
systemctl start iptables
fi
COMMENT=" -m comment --comment \"PPTP\""
if [[ ! -e $IPTABLES ]]; then
@ -28,7 +35,7 @@ done
# detect default gateway interface
echo "Found next network interfaces:"
ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d'
ifconfig -a | sed 's/[: \t].*//;/^\(lo\|\)$/d'
echo
GATE=$(route | grep '^default' | grep -o '[^ ]*$')
read -p "Enter your external network interface: " -i $GATE -e GATE

Loading…
Cancel
Save