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

Feature: restrict access to LAN only #14

Open
ValdikSS opened this issue Sep 29, 2023 · 1 comment
Open

Feature: restrict access to LAN only #14

ValdikSS opened this issue Sep 29, 2023 · 1 comment

Comments

@ValdikSS
Copy link

First of all, thanks for such a beautiful software! I've converted my Samsung MFP from 2005 into a driverless networked printer+scanner, and it works perfectly fine!

Current ghostscript-printer-app version listens on 0.0.0.0/[::] and does not support IP-level access control, which may be a security issue due to rather widespread IPv6 connectivity with 'real' addresses. CUPS has 'allow LAN access only' convenient checkbox, it would be great to have the same functionality in pappl-retrofit-based applications without nginx/other web front-end.

# snap list | grep printer
ghostscript-printer-app  10.01.2-1     769    latest/stable  openprinting**  -

# ss -nlpt | grep 8000
LISTEN 0      4096                             0.0.0.0:8000        0.0.0.0:*     users:(("ghostscript-pri",pid=625431,fd=7))                                    
LISTEN 0      4096                                [::]:8000           [::]:*     users:(("ghostscript-pri",pid=625431,fd=8))

It should be implemented by enumerating IP addresses on the interfaces and allowing access by the network segment and its mask. I saw that libcups function is already used to enumerate addresses.
Thanks.

@ValdikSS
Copy link
Author

Example host found with censys:
http://103.160.82.52:5100/

Screenshot_20230929_170253-fs8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant