LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Low resource ip proxying (https://www.linuxquestions.org/questions/linux-newbie-8/low-resource-ip-proxying-4175605535/)

NotionCommotion 05-08-2017 10:06 PM

Low resource ip proxying
 
I would like to make http(s) requests to a given ip/port forwarded to another given ip/port, and have the response sent back to the initiator. The content passed back and forth will only be small json strings, and caching is not required. Filtering is also not required, and there are really no exceptional requirements. The machine acting as the proxy has limited resources, and I don't want to overly tax it. Recommendations? Thanks

r3sistance 05-09-2017 05:30 AM

So you just want to set-up a reverse proxy within apache? Dunno what else you are looking for as a response. The main taxing part will be the SSL offloading since you'd need to handle that at the reverse proxy.

https://httpd.apache.org/docs/2.4/ho...rse_proxy.html

NotionCommotion 05-09-2017 07:44 AM

Quote:

Originally Posted by r3sistance (Post 5708129)
So you just want to set-up a reverse proxy within apache? Dunno what else you are looking for as a response. The main taxing part will be the SSL offloading since you'd need to handle that at the reverse proxy.

https://httpd.apache.org/docs/2.4/ho...rse_proxy.html

Thanks r3sistance,

No, looking for forward, not reverse. Also, looking for low resource requirements where I expect Apache is on the higher end.

r3sistance 05-09-2017 08:13 AM

Apache in MPM_Prefork is generally on the higher end, Apache with MPM_Event is relatively light but nginx should be lighter. If nginx is too much then you'd probably need to make something yourself. Since you mention json, node.js might also be a consideration but no experience with it myself.

As for the port redirection, maybe ip forwarding with iptables then? If that isn't any good then maybe a bit more information is required?


All times are GMT -5. The time now is 11:37 PM.