Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-02-14 Thread Sylvain Rochet
Hi Andrew, On Tue, Feb 11, 2020 at 11:47:04AM +0100, goldsi...@gmx.de wrote: > Am 11.02.2020 um 10:20 schrieb Andrew Pullin: > > [..] > > > > The part that I am stuck on presently is that Host2 has no knowledge of > > how to route packets from PPP out to the WAN, say, 8.8.8.8. > > Between

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-02-11 Thread goldsi...@gmx.de
Am 11.02.2020 um 10:20 schrieb Andrew Pullin: > [..] > > The part that I am stuck on presently is that Host2 has no knowledge of > how to route packets from PPP out to the WAN, say, 8.8.8.8. > Between ip4_forward, IP_FORWARD, ip4_route_src, LWIP_HOOK_IP4_ROUTE, > LWIP_HOOK_IP4_ROUTE_SRC, and

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-02-11 Thread Andrew Pullin
On 1/31/2020 4:48 PM, Sylvain Rochet wrote: Or how host3/C could be configured for routing a subnet (now 11.0.0.0/32) that is essentially "private" between host2/B and host1/A. That is the "192.168.0.0/24 via 172.16.1.1" route in your example, or "11.0.0.0/32 via 10.0.0.016" in my case. It

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-31 Thread Sylvain Rochet
Hi Simon, On Thu, Jan 30, 2020 at 10:11:23PM +0100, goldsi...@gmx.de wrote: > > Well, yes, my bad. The question wasn't phrased well. The thing I don't > understand (because I'm not using it) probably all boils down to using > lwIP as a PPP 'proxy' to remote networks without doing NAT at the same

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-31 Thread Sylvain Rochet
Hi Andrew, On Fri, Jan 31, 2020 at 12:11:56AM -0800, Andrew Pullin wrote: > On 1/30/20 11:42 AM, Sylvain Rochet wrote: > > > > 10.0.0.1/32 and 10.0.0.2/32 are within 10.0.0.0/16 subnet, that > > shouldn't be a problem here, this is usually a bad practice and it > > should be avoided. This is a

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-31 Thread Andrew Pullin
On 1/30/20 11:42 AM, Sylvain Rochet wrote: There are no ARP in PPP, but whatever, this configuration is correct. Roger that. At the very least, ARP is enabled on the NetX equivalent of a netif on the PPP-only host. But it must be inactive and not accomplishing anything. 10.0.0.1/32 and

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread goldsi...@gmx.de
Am 30.01.2020 um 22:02 schrieb Sylvain Rochet: Hi Simon, On Thu, Jan 30, 2020 at 09:31:11PM +0100, goldsi...@gmx.de wrote: Am 30.01.2020 um 20:42 schrieb Sylvain Rochet: On Wed, Jan 29, 2020 at 08:15:11PM -0800, Andrew Pullin wrote: Host2:     - Micontroller device, ESP32     - has both

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread Sylvain Rochet
Hi Simon, On Thu, Jan 30, 2020 at 09:31:11PM +0100, goldsi...@gmx.de wrote: > Am 30.01.2020 um 20:42 schrieb Sylvain Rochet: > > On Wed, Jan 29, 2020 at 08:15:11PM -0800, Andrew Pullin wrote: > > > > > > Host2: > > >     - Micontroller device, ESP32 > > >     - has both WiFi and Ethernet PHY

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread goldsi...@gmx.de
Am 30.01.2020 um 20:42 schrieb Sylvain Rochet: Hi Andrew, On Wed, Jan 29, 2020 at 08:15:11PM -0800, Andrew Pullin wrote: Uh-oh, I think I did a poor job of explaining it. Although you seem to have surmised most of it. The full rundown: Host1:     - Micontroller device with no MAC or PHY   

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread Sylvain Rochet
Hi Andrew, On Wed, Jan 29, 2020 at 08:15:11PM -0800, Andrew Pullin wrote: > > Uh-oh, I think I did a poor job of explaining it. Although you seem to have > surmised most of it. > > The full rundown: > > Host1: >     - Micontroller device with no MAC or PHY >     - running NetX IP stack >     -

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-30 Thread Jens Nielsen
Hi, On 2020-01-30 05:15, Andrew Pullin wrote: On 1/29/20 5:42 AM, Sylvain Rochet wrote: Hi Andrew, On Tue, Jan 28, 2020 at 04:57:19PM -0800, Andrew Pullin wrote: Hi folks, I am stuck on an issue here where I am trying to use lwip's IP_FORWARDING feature. I am trying to forward packets

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-29 Thread Andrew Pullin
On 1/29/20 5:42 AM, Sylvain Rochet wrote: Hi Andrew, On Tue, Jan 28, 2020 at 04:57:19PM -0800, Andrew Pullin wrote: Hi folks, I am stuck on an issue here where I am trying to use lwip's IP_FORWARDING feature. I am trying to forward packets between a PPP server netif and a WAN interface. It is

Re: [lwip-users] IP forwarding to/from PPP working for one netif, but not another

2020-01-29 Thread Sylvain Rochet
Hi Andrew, On Tue, Jan 28, 2020 at 04:57:19PM -0800, Andrew Pullin wrote: > Hi folks, > > I am stuck on an issue here where I am trying to use lwip's IP_FORWARDING > feature. > I am trying to forward packets between a PPP server netif and a WAN > interface. It is working on case, where the