Sending structured logs through proxy - proxy

I have a .NET application that runs on Windows and am trying to send the application logs/structured logs (Serilog) through a proxy to a log server. The Windows machine doesn't have access to the Internet, so I was thinking that I could setup a Proxy(Squid) to forward logs to the Serilog log server (in AWS).
A web browser on the Windows machine can access the log servers' webpage/dashboard, however, the application itself isn't able to send logs through the Squid proxy server.
Questions:
Is a Proxy server the correct tool to use in this scenario?
Just because a web browser on the Windows machine (configured to use the Proxy), can access the log servers' URL, should that mean my application which is streaming serilog structured data, be able to send logs to this server?
Should I be routing my serilog data through the Proxy server, or should I be using a reverse proxy instead?
Here is how the serilog data is expected to travel:
Client application -->> Proxy Server -->> Corporate Domain Firewall -->> AWS

Related

IIS hosted Web Application cannot accessible through Internet

I have hosted Flask Web application on Windows Server on AWS, I have done followings
hosted it on IIS and add new bindings(port 8090) to web site
Created inbound rule for the port(8090) given in bindings
And it works fine on the server, but when i'm trying to access it on my PC's web browser says
it cannot reach took too long to respond
What else i need to do ?
In your vm, different provider has their security policy. For aws even you have set inbound port rule, it will not work. You also need to set inbound rules in their potal.
👉(1) Open Windows firewall, Create an Inbound Port Rule.
👉(2) Directly in Amazon Web Service console, exactly in security groups/inbound.

How to achieve load-balancing and failover between the two application servers through web server in WAS

i am new in WAS so i configured WAS and also web server IHS then i created 2 application server
so through the web server the client can access the application then the traffic over HTTP to one of two application servers i created
integrate web server and 2 application server as an single endpoint then traffic distribute over applications server
like thie img how can i do that
so please can anyone help me in this?
You have to install on IHS the WebSphere Application Server plugin. Then generate the plugin config file. IHS will pass any http requests it cannot resolve to the plugin which will try to resolve to the known applications. If the plugin is not functioning properly then follow the instructions here to collect data and open an IBM Support ticket.

Using Squid to forward traffic to specific IP address

I have an issue I can't seem to figure how to solve. I am thinking of using Squid for this but not 100% sure how to configure. A developer is writing a script that will request an XML file from a secure web server.
The script will live in a cloud-based application and will send the request for this XML file to the web server, the script will then translate the XML file content into readable data using API calls and presented to the user in the application.
The problem is the following:
The application server (A) its load balanced and the IP address may not always be the same. We do not own this app server only have access to APIs
The Web server (B) that owns the XML is behind a firewall and it has to specify the incoming IP address allowed to access this content
I am thinking I would have to configure reverse proxy on Squid that will receive the script/request from any IP address (preferably from the application servers only) and would have to forward the exact request to the IP address of the Web server that owns the XML file.
This means that I would have to specify the IP address of the proxy server rather than the web server in the script and somehow allow the proxy server to know it needs to forward it to the web server.
I'm not sure how to do this securely since in this scenario as ANY external IP address coming the proxy server will be forwarded over.
(A) App server ======> Squid Proxy =======> (B) Webserver
I hope this makes sense thank you so much in advance for your help.

Is it possible to open a WebSocket to client localhost?

I've to design a solution that permits to read real-time data generated by local sensors through a remotely-hosted web application.
The design is still work in progress: the sensors' data could be handled by a windows application/service installed on the client machine, or by some external hardware (like a raspberry) located on the same network of the client machine.
Now, I'm very new to WebSockets, but they seems exactly what I need for providing real-time data via browser.
My question is: can a remote web application open a WebSocket to a server that is located on the same local network which the client belongs to?
Is solution B possible? How can I achieve that?
For example, I'd like the server to be located on the client localhost. Sensors would send data to the local windows service, and the web application would show them by opening a WebSocket to localhost (client localhost, not server localhost!).
Well, I did some testing and the answer is yes, it is possible.
Test setup:
A web page hosted on a remote server, with a WebSocket client which connects to 'localhost'.
WebSocket server running on my pc.
It worked.

Mule on Amazon Cloud

I installed Mule Community Server on AWS cloud and it is functioning properly. When I use http end point and invoke Mule services from browser on my Amazon EC2 machine they work. When I access them from outside, the request timeout. The end points are not bound to local host but mapped to 0.0.0.0:8081. I have checked all firewall settings using amaozon security group and set permission for all. Yet it doesnt work. I am able to access the Windows IIS http server on the same machine but not mule on port 8081. Any clues would help.
Hope this doesn't sound rude, but did you disable the windows firewall, or allow 8081 through the windows firewall?

Resources