Skip to main content
2 of 3
added 311 characters in body
Tom Yan
  • 1
  • 8
  • 10

I'm pretty sure that's because you have an SNAT rule in your iptables (or an snat rule in your nftables) that sets the source IP to 164.X.X.X for traffics from 10.114.0.0/20 (or, all traffics, so to speak).

Solutions would be:

  1. adding ! -o lo (oifname != "lo" for nftables) to the rule, or
  2. adding -o eth0 (oifname "eth0" for nftables) to the rule (assuming the interface name is "static")

P.S. For nftables, depending on "details" of your system / distro, you might be able to use oif instead of oifname (especially when the name in concern is lo) for better performace (well, theoretically / technically speaking, at least).

Tom Yan
  • 1
  • 8
  • 10