Simple:
Tell all the hosts on the 2 networks that the unix box's IP (the one that matches the host's netmask (i.e. 2 networks, 192.0.16.0 and 192.0.17.0, UNIX has 192.0.16.1 and 192.0.17.1, for computer '192.0.16.44', use 192.0.16.1) is their default gateway (assuming that the UNIX system also has access to everything else you want it to see).
If it's just connecting the 2 networks to each other (as opposed to connecting them to the internet, other networks, etc...), then just add the UNIX system as an additional gateway.
Routing should occurr automatically. This is separate from firewalling (smoothwall, checkpoint, etc), so no extra software is needed...
If it refuses to route, you may have to change some sysctl or /proc values to make it work. Depends on the system, OS, and OS version.