X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vagrant%2Fsetup_proxy.sh;h=d9ee59700abef75b13540b5a4ae300d7df15f186;hb=129d553d323653461d14f248cb9e8b6f266eb5e3;hp=2161f295a7b8f43aa75eff6a15de587fb3ac436a;hpb=5a14ee34314b6d500c63dc19523ee4748734c8c0;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