yyyar / gobetween

:cloud: Modern & minimalistic load balancer for the Сloud era
http://gobetween.io
Other
1.94k stars 210 forks source link

source ip is "binded" in udp transparent mode from v0.8.0+snapshot to v0.8.0 when sent to backends #293

Open lotusnoir opened 4 years ago

lotusnoir commented 4 years ago

Hello, I have decided to reinstall my load balancer today and i faced a problem on the source ip of the load balanced traffic

After installing release v0.8.0, as u can see in this example, the sources ips are "binded" by 192.168.59.242 (when i restart the service it can be another one that "stick" the source) instead of their own ones when sent to the backends :

10.64.32.202 is the ip of the lb 10.64.32.122 / 10.64.32.123 the backends

U 2020/08/11 16:34:24.697331 10.25.7.2:514 -> 10.64.32.202:514 #103110
  <36>Aug 11 14:34:24 10.25.7.2 : 14258380 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established configuration modified.                                                   

U 2020/08/11 16:34:24.697433 192.168.59.242:514 -> 10.64.32.123:514 #103111
  <36>Aug 11 14:34:24 10.25.7.2 : 14258380 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established configuration modified.                                                   

U 2020/08/11 16:34:25.097481 10.25.7.2:514 -> 10.64.32.202:514 #103524
  <36>Aug 11 14:34:25 10.25.7.2 : 14258381 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established-idle configuration modified.                                              

U 2020/08/11 16:34:25.097643 192.168.59.242:514 -> 10.64.32.122:514 #103525
  <36>Aug 11 14:34:25 10.25.7.2 : 14258381 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established-idle configuration modified.

when i return to the binary v0.8.0+snapshot everything is alright:

U 2020/08/11 16:46:53.905620 10.25.7.2:514 -> 10.64.32.202:514 #306941
  <36>Aug 11 14:46:53 10.25.7.2 : 14258484 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established configuration modified.                                                   

U 2020/08/11 16:46:54.062527 10.25.7.2:514 -> 10.64.32.123:514 #307114
  <36>Aug 11 14:46:53 10.25.7.2 : 14258484 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established configuration modified.                                                   

U 2020/08/11 16:46:54.256781 10.25.7.2:514 -> 10.64.32.202:514 #307250
  <36>Aug 11 14:46:54 10.25.7.2 : 14258485 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established-idle configuration modified.                                              

U 2020/08/11 16:46:54.257700 10.25.7.2:514 -> 10.64.32.122:514 #307251
  <36>Aug 11 14:46:54 10.25.7.2 : 14258485 vprn13000 SYSTEM-WARNING-tmnxConfigModify-2006 [L2TP]:  State of L2TP t
  unnel 85196800 changed to established-idle configuration modified. 

Regards

saschathiergart commented 10 months ago

Have you ever been able to fix this?