Restrict access to web server when using modem PPP conection
Posted: Tue Dec 01, 2020 10:07 am
Hello,
I've developing a device that could connect to a server using Wifi, Ethernet or Modem( in PPP mode).
Inside the device there is a simple HTTP (HTTPS in the future) that could be accessible from all three interphases. Due to I'm using >4.X version, netif abstraction make this very easy to implement but in some cases I want to restrict access over one interphase (in 95% of cases it will be over modem to reduce cost of internet data rates).
Is it possible? How can i do it?
Could I bind HTTP server socket only in Wifi and Ethernet?
Thanks.
I've developing a device that could connect to a server using Wifi, Ethernet or Modem( in PPP mode).
Inside the device there is a simple HTTP (HTTPS in the future) that could be accessible from all three interphases. Due to I'm using >4.X version, netif abstraction make this very easy to implement but in some cases I want to restrict access over one interphase (in 95% of cases it will be over modem to reduce cost of internet data rates).
Is it possible? How can i do it?
Could I bind HTTP server socket only in Wifi and Ethernet?
Thanks.