Linux Kernel routing on same subnet packets

214 Views Asked by At

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.

2

There are 2 best solutions below

0
On BEST ANSWER

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
2
On

Check the value of:

/proc/sys/net/ipv4/ip_forward

It specifies whether the kernel performs IPv4 packet routing or not.