routing using netfilter hooks
Hello
I have a problem i.e i have a system with 2 ethernet cards ,i want to capture the packets from one ethernet card process for information and send it through the other ethernet card using netfilter hooks. Please suggest me the method of doing this
thank you
rayuduIndiatimes Email now powered by APIC Advantage. Help! HelpClick on the image to chat with me
Quoted 5 lines · mtrayudu
Hello
I have a problem i.e i have a system with 2 ethernet cards ,i want to capture the packets from one ethernet card process for information and send it through the other ethernet card using netfilter hooks. Please suggest me the method of doing this
Presuming the datagrams originate on one card and are destined for an address/subnet on the other card, enable IP forwarding (`echo 1
Quoted 1 line
/proc/sys/net/ipv4/ip_forward`) then add rules to your FORWARD chain
that define which packets may and may not pass.
If you can be more specific about what sort of information you want to process for, how your network is setup and what exactly you are trying to achieve we will be able to help more.
David