Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is it possible (Ubuntu and Windows) to create the following rules:

If target="192.168.*" use eth0
If target="*" use eht1 // default, the rest that doesn't match another rule

share|improve this question
    
For ubuntu see here: help.ubuntu.com/12.04/serverguide/firewall.html#ip-masquerading – 에이바 Oct 26 '12 at 16:06
up vote 0 down vote accepted

If target="192.168.*" use eth0

Read up on subnetting and the route command. It is designed for this. Specifically, use the route add command.

If target="*" use eht1 // default, the rest that doesn't match another rule

That is done by putting the default gateway via eth1.

This is basic TCP/IP networking, and is the same on both windows and GNU/Linux.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .