The WRT310N only supports VPN Passthrough (a computer behind the router hosting a VPN server).
DD-WRT will not help with that limitation. The router cannot act as a VPN server because it lacks enough memory for a good solution (such as OpenVPN on the router).