mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #601] adding php capability to the nginx server and doing the ip lookups on the agent to the server #2327
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2327
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @meuchels on GitHub (Jun 28, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/601
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
add php to the nginx server so lookups and agent communication can be contained to our own environment along with other server side scripting.
Describe alternatives you've considered
the following will give you a webpage that will provide the public ip using php.
<?php echo $_SERVER['REMOTE_ADDR']; ?>Additional context
containment and communication with 3rd party sites is my reasoning.
curl rmm.mydomainname.com/ip.phpshould get you the same results without all the fuss and keep it contained in our own environments.
@unplugged216 commented on GitHub (Jun 28, 2021):
I am not sure PHP will account for all instances of hosting. For example, we are using CloudFlare for reverse proxy and
<?php echo $_SERVER['REMOTE_ADDR']; ?>returns the CF Ray instance IP rather than the end users IP. Now, we could build tests in for that however, that could entail a pretty beefy update to handle all of the proxy providers out there.Is there a security concern with querying a service like
icanhazip.com? I could see this being a benefit if it was an internal only network. At that point then one could implement a forward lookup record in DNS for either internal or external networks and redirect to a controlled instance.In tacticals situation, nginx is strictly used for proxy at the moment from what I can tell. Adding services to it may expose more then it closes.
Thoughts?
@meuchels commented on GitHub (Jun 28, 2021):
gotcha.
my concern is using tactical in an environment where you have to whitelist all communication. gov or municipalities usually require this.
we would have to put in a security request to allow rmm communication let alone the public ip query feature.
the more you can keep contained to server-agent communication the better IMHO.
maybe there is an alternative to my mention?
@wh1te909 commented on GitHub (Jun 28, 2021):
the install script doesn't install php and we're not going to install php to do something that can already be done with django/python, so if it were to be implemented we would just add an api endpoint for it
and yes the reason the agent needs to hit a 3rd party service and not the RMM is because alot of people run tacticalrmm behind NAT or cloudflare as @unplugged216 mentioned and so if we query the rmm for the ip it will not always return the public ip of the agent
@meuchels commented on GitHub (Jun 28, 2021):
Thanks for helping clear up your reasoning.
I will go ahead and close this.
keep up the good work!