Problem with arptables!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi to all,

I have been trying to use arptables to forward arp requests from PC_A to
PC_B via PC_C. All three PCs are connected to a switch and have ip
addresses 192.168.10.2, 192.168.10.3 and 192.168.10.4 respectively. I use
ebtables on PC_A to change the destination mac address of the Ethernet
frame containing the arp packet to that of PC_C, using the following
command:

ebtables -t nat -A OUTPUT -p arp -o eth0 -j dnat --to-dst
00:04:e2:51:c6:4e --dnat-target ACCEPT

I use the following command on PC_C:

arptables -A FORWARD -s 192.168.10.0/24 -d 192.168.10.0/24 -i eth0 -o eth0
-j ACCEPTable

When I do arptables -L -v, the pcnt and bcnt values remain zero.

On PC_C, i have compiled a new kernel (2.6.16) and have selected the
options regarding arptables, namely arp packet filtering and arp payload
mangling. I have not installed ebtables on PC_C but I have checked all the
ebtables options in the kernel.

What am I doing wrong?

Any help will be the very most welcome..

Warm regards,
Visham




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux