PBR and real IP between internal networks

Hi, recently I have configured this on my router BGP Example — VyOS 1.5.x (circinus) documentation and everything works fine, devices in 192.168.188.0/24 can ping 192.168.189.0/24 etc.

Only one thing (bug potential) I noticed is that when I connect from 192.168.188.12 to 192.168.189.30 on 192.168.189.30 I don’t see the real ip (192.168.188.12) only my gateway (vyos) which is problematic because I can’t set up any ACL in for example NFS server. When I disable PBR on interfaces the issue is fixed.

My questions: can I somehow fix it? I don’t see to many options except main table. Or is it not a bug and I should use something else to achieve multiple uplinks? I googled it for a while but I didn’t find anything useful and I am not an expert on networks. Thanks!

Difficult to say without config and network diagram. You didn’t provide any output. If you see gw address instead of the real address I guess you use NAT somewhere.

1 Like