LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to disable redirecting gw to next hop (https://www.linuxquestions.org/questions/linux-networking-3/how-to-disable-redirecting-gw-to-next-hop-4175545142/)

banannek 06-12-2015 01:15 AM

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

nini09 06-12-2015 02:18 PM

Where is VPN terminator, in GSM router or client machine?

banannek 06-15-2015 12:10 AM

Its in GSM router, but i finally fixed it. So I put it here for someone who might have same problem. When i was creating vpn devices, there were created MAC addresses for each of them, but the automatic mechanism gave same MAC to many devices so thats why the redirecting ocuured. So solution was simple, just assign MAC addresses manually.


All times are GMT -5. The time now is 02:25 PM.