Re: routing within the same network? is it possible?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Victor,

Friday, June 11, 2004, 5:21:05 PM, you wrote:

VC> +-------------------+
VC> |debian13           |
VC> |eth0:192.168.0.13  |
VC> +-------------------+
VC>          |eth0
VC>          |
VC>          |eth0
VC> +--------------------------+
VC> |firewall/router(linux-box)|
VC> |which configuration here? |
VC> +--------------------------+
VC>          |eth1
VC>          |
VC>          +----------------------+
VC>          |                      |
VC>          |eth0                  |eth0
VC> +-------------------+  +-------------------+
VC> |eth0:192.168.0.15  |  |eth0:192.168.0.16  |
VC> |debian15           |  |debian16           |
VC> +-------------------+  +-------------------+

Transparent proxiing will do the trick.
You even wont have to change the default routes on .15 and .16.

1) Assign 192.168.0.14 for the eth0 interface on the router.
2) Assing 0.0.0.0 for eth1 interface on the router.
3) Add routes .15 and .16 via eth1
4) Add a default gw (via eth0,since we gave only that interface an ip)
5) echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp


P.Krumins

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux