Linux has very advanced Routing, filtering and traffic shaping options. This site attempts to document how to configure and use these features.