how to force linux to accept packet with loopback ip

i have an embedded system with an Ethernet interface that needs to accept external packets with IP of 127.x.x.xx. is there a way to force Linux to accept external packets with this loop back address and to treat the packets as “normal” IP packets?
also, is there a way to force Linux to send out ping packets when the interface has an IP of 127.x.x.x?

thank you in advance.

Answer

Linux has a weak host model and the network stack doesn’t really care which interface an TCP/IP packet arrives on. If it is for a configured IP-address it will be accepted.

That does not take into account ARP, firewall rules and routing.

Attribution
Source : Link , Question Author : mark , Answer Author : HBruijn

Leave a Comment