Policy based routing with iptables

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

 



I have a physical IP address "192.168.25.2" and a virtual IP address
"192.168.25.254" on a Linux server. I would like to make the virtual
IP address a router such that anything comes to that IP from
192.168.25.0/24 and 192.168.20.0/24 will be redirected to the physical
IP address "192.168.25.2".

How do I do this with iptables? Do I need to make any changes to the
routing table as well?

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux