How to route TCP/IP responses through a different interface?

后端 未结 2 688
鱼传尺愫
鱼传尺愫 2021-02-09 05:25

I have two machines each with two valid network interfaces, an Ethernet interface eth0 and a tun/tap interface gr0. The goal is to start a TCP connecti

2条回答
  •  [愿得一人]
    2021-02-09 06:09

    You may be interested in enabling logging of martian packets net.ipv4.conf.all.log_martians, and disable reverse path filtering net.ipv4.conf..rp_filter on the affected interfaces.

    This sysctl vars are accesible via the sysctl utility and/or the /proc filesystem.

提交回复
热议问题