#!/bin/sh
VPS=$1
LANIP=$2

if [ -n "$(traceroute -q 1 -i eth1 -w 1 -n -m 5 ${VPS} | grep ${LANIP})" ]; then
	echo "detected"
else
	echo "no loop"
fi