Its very simple to masquerade in linux with few lines of iptables and ip_forward commands.
Read this post on abhishek.nagar.me