2

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

2

Check the value of:

/proc/sys/net/ipv4/ip_forward 

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

Sign up to request clarification or add additional context in comments.

2 Comments

Correct, but I need something more specific. The kernel I'm studying seems to perform routing on packets from the same subnet. This is something very strange so I'm trying to understand if there is some option related to this issue.
This variable keep status of forwarding packets in the kernel. Routing means participating in routing using routing algorithms such as OSPF.
1

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 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.