To setup linux as a router because thats really what you are asking... you need to use ip masquerading and under the properties for the network device in XP , you need to specify the linux box as the gateway.
You can visit the link below for a more in depth explanation
http://www.linuxdoc.org/HOWTO/IPCHAINS-HOWTO.html