Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.