Fixed CDR_IMAGE_VERSION in portal script
[demo.git] / vagrant / setup_proxy.sh
index 2161f29..d9ee597 100755 (executable)
@@ -3,7 +3,7 @@ set -ex
 
 SOCKS5_IP=${SOCKS5_IP:-127.0.0.1}
 SOCKS5_PORT=${SOCKS5:-1080}
-DNS_SERVER=${DNS_SERVER:-10.248.2.5}
+DNS_SERVER=${DNS_SERVER:-10.248.2.1}
 
 sudo apt-get install -y redsocks iptables
 
@@ -31,9 +31,9 @@ sudo iptables -t mangle -F
 sudo iptables -t nat -F
 
 sudo iptables -t nat -N REDSOCKS || true
-sudo iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
-sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
-sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
+sudo iptables -t nat -A REDSOCKS -d 0.0.0.0/16 -j RETURN
+sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/16 -j RETURN
+sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/16 -j RETURN
 sudo iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
 sudo iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
 sudo iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN