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
I know for different incoming connections I can route them to different paths in aiohttp, like django does.
But I have a cluster of internal servers and want their connections to come from a totally port different than the one a client visits for security. Then since I know exactly where other servers are, I can easily set up firewall rules to restrict that specific port to host connections from a specific IP address (or specific subnet) to avoid a malicious client mocking a server to connect to this aiohttp server program, which only requires knowing the correct path.
So is it possible for a "web.WebSocketResponse()" to bind to another port? Or only one tcp can be used for one aiohttp python program?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know for different incoming connections I can route them to different paths in aiohttp, like django does.
But I have a cluster of internal servers and want their connections to come from a totally port different than the one a client visits for security. Then since I know exactly where other servers are, I can easily set up firewall rules to restrict that specific port to host connections from a specific IP address (or specific subnet) to avoid a malicious client mocking a server to connect to this aiohttp server program, which only requires knowing the correct path.
So is it possible for a "web.WebSocketResponse()" to bind to another port? Or only one tcp can be used for one aiohttp python program?
Beta Was this translation helpful? Give feedback.
All reactions