Re: [lwip-users] LwIP with SSH

2018-06-13 Thread goldsi...@gmx.de

On 13.06.2018 16:20, Elinux wrote:

You say that we can implement an SSH server on our embraquƩ system using
sockets, I did not understand too much and how to proceed! do you have any
leads, or concrete examples with other protocols other than SSH that you
know,


No sorry, I do lwIP stuff, not SSH stuff. And especially, I don't know 
WolfSSL/WolfSSH.



Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] lwIP tun ARP table

2018-06-13 Thread Sergio R. Caprile
I don't know what you mean by "lwIP tun ARP table", lwIP is oblivious to
tun/tap.
I guess you have an lwIP port running in a Linux machine, "connected" to
a tun/tap interface.
If you want to see the lwIP ARP table you go one place (e.g:
src/core/ipv4/etharp.c and discover the existence of static struct
etharp_entry arp_table[ARP_TABLE_SIZE];), if you want to see Linux ARP
table for that tun/tap interface, you go other place (e.g.: Google, and
discover that if you have procfs you can grep tun0 /proc/net/arp;
assuming 'tun0' is the name of the interface).


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] lwIP tun/tap

2018-06-13 Thread Sergio R. Caprile
When you use the tun/tap interface in Linux, you have a tun/tap
interface in Linux. Nothing from lwIPland, just Linuxland.
As per my (sort of) expertise, you get what looks like another Ethernet
card attached to a network. There is your plain trusty old linux machine
on one side, there is your brand new process on the other side. Unless
you set it in bridging mode, thing I don't know how to do (but you can
ask your good friend Google), if your port process wants to connect with
"the rest of the machine", you have to route; that means properly
configuring routing on both ends. (I'm talking networking, not IPC)
Your lwip port will have to be setup with a default gateway equal to the
tun/tap address (which belongs to Linux), and be assigned a different
address on the very same subnet.
If you want to serve DHCP on that tun/tap, you have to configure the
DHCP server to listen to that interface (and probably start it after the
tun/tap goes up when you start the lwIP port).
If you have a web server on lwIP and want to access it from Firefox on a
Windows PC on your local network, you have to have a route to your
tun/tap (or a default to your Linux) in your Windows.
Your Linux machine is a router with several interfaces and one of them
happens to be connected to a device that is the lwIP port process.

So I guess the answer to your question is that the Linux stack will send
ARP requests on that network and your lwIP port will listen to them.
Just the opposite will happen when your lwIP port wants to know the MAC
address of the Linux side of the connection.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] LwIP with SSH

2018-06-13 Thread Simon Goldschmidt
Elinux wrote:
> >" lwIP does neither provide a shell nor the protocols required for ssh. 
> >I suggest taking a look at mbedtls and using sockets to use mbedtls on top 
> >of lwIP. "  
> 
> what do you mean by his?
> If we implement the tls.mbed sockets over LwIP with sockets, does that mean
> we can add the SSH protocol to LwIP using sockets?

What's the idea. I don't know how to implement an ssh server, but using lwIP
sockets, it should somehow work. I just wanted to say ssh won't be a part of
lwIP.

Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] LwIP with SSH

2018-06-13 Thread Elinux
Thank you Simon, 

>" lwIP does neither provide a shell nor the protocols required for ssh. 
>I suggest taking a look at mbedtls and using sockets to use mbedtls on top 
>of lwIP. "  

what do you mean by his?
If we implement the tls.mbed sockets over LwIP with sockets, does that mean
we can add the SSH protocol to LwIP using sockets? or did I understand
anything?

Thank you



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] LwIP with SSH

2018-06-13 Thread Elinux
Thank you Simon, 

" lwIP does neither provide a shell nor the protocols required for ssh. 
I suggest taking a look at mbedtls and using sockets to use mbedtls on top
of lwIP. "  

what do you mean by his?
If we implement the tls.mbed sockets over LwIP with sockets, does that mean
we can add the SSH protocol to LwIP using sockets? or did I understand
anything?

Thank you



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users