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

php-fpm: no internet access (--noprofile) (resolv.conf) #5746

Closed
osevan opened this issue Mar 21, 2023 · 5 comments
Closed

php-fpm: no internet access (--noprofile) (resolv.conf) #5746

osevan opened this issue Mar 21, 2023 · 5 comments
Labels
networking Issues related to networking features (--net=, etc) notabug The behavior is as intended or the issue was caused by user error or by an old version

Comments

@osevan
Copy link

osevan commented Mar 21, 2023

Im running in my test environment php-fpm inside my favourite fj container. Everything works great, except internet functionality of cms software like wordpress.

Even when i run with --noprofile flag internet connections for searching directory like for plugins didnt work.

Outside container everything works - even internet connection.

So i dunno what is wrong.

Apparmor ofc for this profile disabled, but i havent internet connection for both: with --noprofile flag AND with profile.

Hope someone can check this up.

Other containers have internet.

Thanks and

Best regards

@kmk3
Copy link
Collaborator

kmk3 commented Mar 21, 2023

Basic debugging information is missing; please follow the bug report template:

@kmk3 kmk3 added the needinfo More information is needed from the issue author label Mar 21, 2023
@osevan
Copy link
Author

osevan commented Mar 21, 2023

Debian bullseye
Firejail master branch from 30 days ago.

Application startpath /opt/php8.2/bin/php-fpm -nodaemonize and config file in as arguments

Both tested: with --noprofile and with profile. ..

Aplication starts well, but, no internet connection to outside - egress and ingres - traffic.

Outside container, with php-fpm apps accessing internet, works well.

Container running inside vps

@osevan
Copy link
Author

osevan commented Mar 23, 2023

I see now, etc/resolv.conf is flagged as default as blacklist.

I did whitelist resolv.conf and added new dns inside config and my Problem gone.

Thanks and

Best regards

@osevan osevan closed this as completed Mar 23, 2023
@kmk3 kmk3 added notabug The behavior is as intended or the issue was caused by user error or by an old version and removed needinfo More information is needed from the issue author labels Mar 23, 2023
@kmk3
Copy link
Collaborator

kmk3 commented Mar 23, 2023

(Re-closing as "not planned" since nothing was changed in firejail)

@kmk3 kmk3 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2023
@osevan

This comment was marked as duplicate.

@osevan osevan closed this as completed Mar 23, 2023
@kmk3 kmk3 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2023
@kmk3 kmk3 changed the title strange things happens with php-fpm and --noprofile flag php-fpm: no internet access --noprofile flag Sep 2, 2024
@kmk3 kmk3 changed the title php-fpm: no internet access --noprofile flag php-fpm: no internet access (--noprofile) Sep 2, 2024
@kmk3 kmk3 added the networking Issues related to networking features (--net=, etc) label Sep 2, 2024
@kmk3 kmk3 changed the title php-fpm: no internet access (--noprofile) php-fpm: no internet access (--noprofile) (resolv.conf) Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
networking Issues related to networking features (--net=, etc) notabug The behavior is as intended or the issue was caused by user error or by an old version
Projects
None yet
Development

No branches or pull requests

2 participants