Skip to content

jamespfinn/routeFixforVIP.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

routeFixforVip.sh

10.12.11 jfinn [README]
Created script to remove route for local subnet via default gatway.
This way the packets that come in via the vip from the local subnet will follow the same path they came in. All traffic destined for the local subnet that did not pass through the vip will be routed by the default gateway and successfully reach its destination.

must be run as root.

Problem: Requests from the same subnet were being responded to directly // instead of passing through the VIP.
// |-------| // REQUEST---> | VIP | X----RESPONSE // ^ |-------| | // |_________________________|

Solution: Remove route to local subnet to force all trafic to A) follow the same path in which packets were received B) follow default gateway for all local subnet traffic

Desired result: // |-------| // REQUEST---> | VIP | <----RESPONSE // |-------|

About

Shell & VB Scripts for fixing routing issues when using load balancer in same subnet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published