Search code examples
linuxrouteskernelsubnet

Linux Kernel routing on same subnet packets


I'm looking for an handler or something else in Linux Kernel (v 3.10) to check if there is some kind of option enabled that allows the kernel to make routing on packets from the same subnet.


Solution

  • Maybe I found a possible solution browsing through handlers in the following path:
    /proc/sys/net/ipv4/conf/eth0/*
    Setting to 0 /proc/sys/net/ipv4/conf/eth0/accept_redirects could fix my problem.

    echo 0 >/proc/sys/net/ipv4/conf/eth0/accept_redirects