X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vagrant%2Fsetup_proxy.sh;h=d9ee59700abef75b13540b5a4ae300d7df15f186;hb=a4faf95fb18ca579132bb2d4db9631ccedab46f9;hp=2161f295a7b8f43aa75eff6a15de587fb3ac436a;hpb=00929652c87ccd38b2d526bd2d382c31673928ab;p=demo.git diff --git a/vagrant/setup_proxy.sh b/vagrant/setup_proxy.sh index 2161f295..d9ee5970 100755 --- a/vagrant/setup_proxy.sh +++ b/vagrant/setup_proxy.sh @@ -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