I have created tunnel in ubuntu using /dev/net/tun. when I send packets from eth0 interface to tunnel ip address. able to receive Packets using tunnel read. which I can see it in wireshark.
But when I write packets through the tunnel with destination address as eth0 address. packets doesn’t reaches eth0 interface. I tried iptables for routing, Also I changed net.iv4.ip_forward = 1 in sysctl.conf file .but it doesn’t work.How to configure IP tables ? Help me to resolve this issue.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.