On Thu, 27 Sep 2001, Johnson Joseph spewed into the ether:
<snip>
> My idea was to do some thing like tunnelling , *without going to the kernel
> level*. I don't know to do kernel level coding, :-).
You are trying to implement a VPN (or VPN like) software in userland. I
don't think its possible, but I'm probably wrong (snort/libpcap).
> Can any body tell me how to read and write correctly from the eth card.
See libpcap.
> Also , is my idea correct ? That is, if I read all the IP packets addressed
> to the 2nd Lan, and send it to that Lan, via the internet, to a machine
> where a similar program is also listening to the internet. This thread of
> the program then writes the packet to the ethernet card, after adding the
> necessary eth hdr( after looking up the ARP).
> If i do so will I be able to ping , telnet , or ftp from one Lan's machine
> to the other Lan's machine ?
Congratulations, you have just created a VPN between the two LANs.
> Can any body give me a simple tunneling progam , for achieving what is
> described above?
IIRC, ssh can do this.
ssh -L
Also take a look at FreeSWAN.org
Devdas Bhagat
--
Absolutum obsoletum. (If it works, it's out of date.)
-- Stafford Beer
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help