All of lore.kernel.org
 help / color / mirror / Atom feed
* L2 NAT
@ 2008-12-03 17:22 ivan
  2008-12-04  1:01 ` James King
  0 siblings, 1 reply; 7+ messages in thread
From: ivan @ 2008-12-03 17:22 UTC (permalink / raw)
  To: netfilter-devel

Hi,

After having a lot of help of Grant Taylor in order to analyze if I
was able to achieve my idea using the available iptables features, and
getting as result the fact that I had to develop my own kernel module.
I'm writing to this list because my question is related to the linux
kernel programing.

I would like to pass parameters to the kernel module in run time from
user space. These parameters could be IP address and MAC. Somebody
know how I can do this??

I was thinking about passing this parameters thorough a sysctl syscall
or using /proc filesystem, but I beleave that this is not the correct
way.

Also I was taking a look to iptables source code and analyzing the
source code of iptables and libiptc lib, but I could not find any clue
how to these ones change the kernel parameters.

Could you pleas help me???

thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread
* L2 NAT
@ 2008-11-14 16:34 ivan
  2008-11-15  4:02 ` Grant Taylor
  0 siblings, 1 reply; 7+ messages in thread
From: ivan @ 2008-11-14 16:34 UTC (permalink / raw)
  To: netfilter

Hi All,

I need to connect three devices via ethernet, through a switch, to the
same tftp server. The problem is that these devices have the same IPs,
i.e. 192.168.0.181, and when I address to or get data from one of
them, I can't tell which device I'm actually talking to. The devices
are three items of the same product, and their IP cannot be changed.

I have implemented a perl script that changes the ARP table in tftp
server side, but I need a stronger solution.

I was thinking on developing a sort of L2 NAT which could change the
IP source address of a package according to its MAC address, and put
it in the middle of the tftp server and the devices.

Using the current iptables command can I set up this?? or  I need to
develop my own kernel module???

If you have any idea please let me know.


Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-04 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 17:22 L2 NAT ivan
2008-12-04  1:01 ` James King
2008-12-04 13:34   ` ivan
2008-12-04 14:38     ` John Haxby
2008-12-04 15:43       ` ivan
  -- strict thread matches above, loose matches on Subject: below --
2008-11-14 16:34 ivan
2008-11-15  4:02 ` Grant Taylor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.