Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to route packets from tunnel interface to ethernet 0?
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.×