Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextcloud container - allowed clients - only limit access in known use cases #3574

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented Oct 20, 2023

@szaimen szaimen added 3. to review Waiting for reviews bug Something isn't working labels Oct 20, 2023
@szaimen szaimen added this to the next milestone Oct 20, 2023
@szaimen szaimen requested a review from Zoey2936 October 20, 2023 15:02
Copy link
Collaborator

@Zoey2936 Zoey2936 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would make blocking other ips useless, since it is very easy to connect over the gateway to a container

@szaimen
Copy link
Collaborator Author

szaimen commented Oct 20, 2023

that would make blocking other ips useless, since it is very easy to connect over the gateway to a container

So do you have a better idea then how to fix #3540?

@Zoey2936
Copy link
Collaborator

No, but if we whitelist the gateway, we could also allow all ips....

@szaimen szaimen force-pushed the enh/3540/fix-rp-setup branch from 805129a to 3c2296c Compare October 20, 2023 15:58
@szaimen szaimen changed the title nextcloud container - allowed clients - also allow gateway ip in case of RP setup nextcloud container - allowed clients - only limit access in known use cases Oct 20, 2023
@szaimen szaimen force-pushed the enh/3540/fix-rp-setup branch from 3c2296c to a6b0e0e Compare October 20, 2023 16:01
@szaimen szaimen requested a review from Zoey2936 October 20, 2023 16:02
@szaimen szaimen force-pushed the enh/3540/fix-rp-setup branch 3 times, most recently from 5ab36ba to 28e8257 Compare October 20, 2023 16:42
…e cases

Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/3540/fix-rp-setup branch from 28e8257 to c5135e3 Compare October 20, 2023 17:37
sed -i "/^listen.allowed_clients/s/,$//" /usr/local/etc/php-fpm.d/www.conf
grep listen.allowed_clients /usr/local/etc/php-fpm.d/www.conf
set -x
if [ "$APACHE_PORT" = 443 ] || [ "$APACHE_IP_BINDING" = "127.0.0.1" ] || [ "$APACHE_IP_BINDING" = "::1" ]; then
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zoey2936 this is most important. I decided based on your comment to only limit it if AIO runs in normal mode or the reverse proxy runs in the host network of the server that runs AIO. For these recommended cases we limit the access. Does this make sense?

@szaimen
Copy link
Collaborator Author

szaimen commented Oct 20, 2023

@Zoey2936 if you are fine with this PR, I would like to merge this and create a new beta release :)

Copy link
Collaborator

@Zoey2936 Zoey2936 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can try it

@szaimen szaimen merged commit d5ff2fc into main Oct 20, 2023
9 checks passed
@delete-merged-branch delete-merged-branch bot deleted the enh/3540/fix-rp-setup branch October 20, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants