Ask Your Question

Revision history [back]

Finally I use linux anyip as a workaround

below is the procedure

for example

test client ip range is 172.22.1.0/24 , instance port ip is 10.35.72.5

  1. assign 172.22.1.0/24 as anyip to lo, ip -4 route add local 172.22.1.0/24 dev lo
  2. add a route in upside router for pointing this ip range , ip route 172.22.1.0/24 10.35.72.5
  3. setting the allowed address pairs of the port with 172.22.1.0/24