LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2015, 02:15 AM   #1
banannek
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
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 01:12 AM. Reason: adding information
 
Old 06-12-2015, 03:18 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,627

Rep: Reputation: 140Reputation: 140
Where is VPN terminator, in GSM router or client machine?
 
Old 06-15-2015, 01:10 AM   #3
banannek
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create our own option type for hop by hop extention header manin Linux - Kernel 0 08-20-2014 10:44 PM
double hop 'scp' rsashok Linux - Wireless Networking 1 03-09-2009 08:31 PM
Hop on traceroute lo-kəy Linux - Networking 1 11-11-2008 05:13 AM
Load balancing just going out one hop Xeta Linux - Networking 0 05-27-2006 07:34 PM
Mysterious Hop Problem magebeast Linux - Networking 2 05-24-2002 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration