Going against the osmotic flow