rat Rat is a programmable network address translator (NAT) written in pure-ruby. It is written as a TUN device. At the moment, it can only reflect TCP, UDP, ICMP packets; see reflector.rb.