modified tun receiver with rate limiting along with signal handler