car advice

i have a peugeot  307 hdi engine is sounding like a transit van when driving so loud that i would not go over 50 mph               revs read 1000 when idling    Any ideas what could be the problem