How to disable redirecting gw to next hop
Hi,
I have a little problem with redirecting gateways. I have set routing table, that to network x.x.x.x i want to go thru gw y.y.y.y. Problem is, that clients are connected on GSM routers so their connectin isnt much stable. And when i want to communicate with some, i get message that gw was redirected to y.y.y.z, but this is bad trace and packet is lost.
So the question is: how can i permanently disable this automatic redirecting? I tried sysctl.conf (in all, default and every single interface I set send_redirect, accept_redirect to zero), block icmp redirect on firewall (but it just block the messages, not the mechanism).
Im really desperate and dont know what else I can do...
Thank for any help
David
PS: mabye I can add some more information. I am using Raspberry PI as server (with Raspbian) and I am running VPN here
Last edited by banannek; 06-15-2015 at 12:12 AM.
Reason: adding information
|