Force internal re-routing for certain subnets

Linux Advanced Routing and Traffic Control

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

 



Hi list,

I have an ipcop 1.3.0 with one regular ip address on its green
(internal) interface 172.25.0.1 with one subnet 172.25.0.0/22 related to
it.

In addition I have assigned two further ip addresses 172.25.64.1. and
172.25.68.1 to right that green network card with two respective further
subnets 172.25.64.0/22 and 172.25.68.0/22 related to each for certain
reasons.

Now I want to force all external (red) traffic from / to both the
further green subnets 172.25.64.0/22 and 172.25.68.0/22 to go through
the first "regular" green interface.

This is because this "regular" green interface 172.25.0.1 is where
squid, dnsmasq and others are listening and such I want to ease other
alternative networking calamities which I encountered.

Can one give me a hand how to arrange this internal re-routing with ip
rule ... / ip route ...  etc.?

I had a look at
http://www.linuxguruz.com/iptables/howto/2.4routing-4.html and tried to
figure out but such easy it didn't work for me.

Many thanks and cheers

Manuel

_______________________________________________
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