Route networktraffic target dependent to different networkadapters

1

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

PKeidel

Posted 2012-10-26T15:33:35.033

Reputation: 113

For ubuntu see here: https://help.ubuntu.com/12.04/serverguide/firewall.html#ip-masquerading

– 에이바 – 2012-10-26T16:06:50.263

Answers

0

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.

Hennes

Posted 2012-10-26T15:33:35.033

Reputation: 60 739