Skip to contentSkip to conversation

routing using netfilter hooks

DISCUSSION mtrayudu 2 participants 2 messages Mar 31, 2004

lore
Share & tools
lore

mtrayudu

author
#0 lore raw

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

#1 lore raw
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