How I tested: - setup fwmark service for 1234 mark in ip_vs on router - add prerouting rule for marking packets if they dst addr == 8.8.8.8 (why not 8.8.8.8 xD?) - enable net.ipv4.ip_forward (set 1) - set default gateway for 8.8.8.8 on other machine to address of router - connect to 8.8.8.8 on other machine - check traceroute for correct path - see, that have no connections/packets in stats ip_vs (/proc/net/ip_vs_stats) on router - be sad =(
2016-04-04 16:29 GMT+03:00 Дмитрий Сбойчаков <sboicha...@gmail.com>: > Now we using ip_vs from linux 4.3, but I have no limitations on the > choice of version. > I also tested my configuration on linux 4.5 kernel. > > 2016-04-04 16:12 GMT+03:00 Alex Lopez <alxm...@gmail.com>: > >> What version of lvs are u using? >> >> Sent from my iPhone >> >> > On Apr 4, 2016, at 8:04 AM, Дмитрий Сбойчаков <sboicha...@gmail.com> >> wrote: >> > >> > Thanks! >> > We already using keepalived as director for VRRP and IP_VS. >> > But the problem is how to configure daemon for load balance *forwarding* >> > traffic, or how setup this configuration without keepalived. >> > Can anyone help with that? >> > >> > -- >> > With best regards, >> > Sboychakov Dmitry >> > _______________________________________________ >> > Please read the documentation before posting - it's available at: >> > http://www.linuxvirtualserver.org/ >> > >> > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org >> > Send requests to lvs-users-requ...@linuxvirtualserver.org >> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users >> >> _______________________________________________ >> Please read the documentation before posting - it's available at: >> http://www.linuxvirtualserver.org/ >> >> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org >> Send requests to lvs-users-requ...@linuxvirtualserver.org >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users > > > > > -- > With best regards, > Sboychakov Dmitry > > -- With best regards, Sboychakov Dmitry _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-requ...@linuxvirtualserver.org or go to http://lists.graemef.net/mailman/listinfo/lvs-users