You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The primary objective of this feature request is to integrate UPnP (Universal Plug and Play) functionality into ehco. This enhancement aims to significantly simplify the user experience for individuals utilizing soft routers.
Here's an example of a standard RelayRule configuration:
To facilitate this feature, it is proposed to add a new field: "enable_upnp": true/false.
When a rule is identified with UPnP enabled, ehco will leverage a UPnP client to map the specified listen_port (for instance, port 1234 in the example above) to the public internet. This process aims to automate port forwarding, thereby reducing manual configuration steps and improving accessibility for users with dynamic IP addresses or those behind NATs.
By implementing UPnP support, ehco can offer a more user-friendly and efficient setup process for its users, making it an even more powerful tool for traffic forwarding in diverse networking environments.
By the way, I recommend implementing a separate UPnP client within the pkg directory. This client can then be utilized to integrate the UPnP feature within the internal/relay module. This approach will help in maintaining a clean separation of concerns and enhance the modularity of the codebase, making it easier to manage and extend the UPnP functionality in the future.
The text was updated successfully, but these errors were encountered:
Description:
The primary objective of this feature request is to integrate UPnP (Universal Plug and Play) functionality into ehco. This enhancement aims to significantly simplify the user experience for individuals utilizing soft routers.
Here's an example of a standard RelayRule configuration:
To facilitate this feature, it is proposed to add a new field:
"enable_upnp": true/false
.When a rule is identified with UPnP enabled, ehco will leverage a UPnP client to map the specified
listen_port
(for instance, port 1234 in the example above) to the public internet. This process aims to automate port forwarding, thereby reducing manual configuration steps and improving accessibility for users with dynamic IP addresses or those behind NATs.By implementing UPnP support, ehco can offer a more user-friendly and efficient setup process for its users, making it an even more powerful tool for traffic forwarding in diverse networking environments.
Related code
ehco/internal/config/config.go
Line 30 in 00478cf
ehco/internal/relay/conf/cfg.go
Line 13 in 00478cf
Additional Information
By the way, I recommend implementing a separate UPnP client within the
pkg
directory. This client can then be utilized to integrate the UPnP feature within theinternal/relay
module. This approach will help in maintaining a clean separation of concerns and enhance the modularity of the codebase, making it easier to manage and extend the UPnP functionality in the future.The text was updated successfully, but these errors were encountered: