port forwarding

I want to forward all packets coming in on port 81 to 80 and forward all packets coming from port 80 to 81. How can I do this in QNX 6.3 system?
Can I do this in system level? or do I have to write C code?

Thanks