IP Forwarding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 8:07 AM
Hello, I have a question about LWIP functionality.
I'd like to know if it's possible to redirect a tcp request received on the pppos interface, to a device that is connected onto the ethernet interface and listening on the desired port.
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
Ethernet
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-18 2:59 AM
Hello @RPC ,
I assume that would be possible as mentioned in LwIP documentation and this can be done by setting
#define IP_FORWARD 1 |
IP_FORWARD==1: Enables the ability to forward IP packets across network interfaces. If you are going to run lwIP on a device with only one network interface, define this to 0. refer to lwIP: IPv4.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-18 2:59 AM
Hello @RPC ,
I assume that would be possible as mentioned in LwIP documentation and this can be done by setting
#define IP_FORWARD 1 |
IP_FORWARD==1: Enables the ability to forward IP packets across network interfaces. If you are going to run lwIP on a device with only one network interface, define this to 0. refer to lwIP: IPv4.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-18 3:16 AM
https://www.nongnu.org/lwip/2_0_x/group__lwip__opts__ipv4.html#ga881d32ff5ee02af01f758953f1b51d59
A complex system designed from scratch never works and cannot be patched up to make it work.
