-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dante-sockd: add firewall rule #5006
base: master
Are you sure you want to change the base?
Conversation
This PR provides a solution to use custom service ports defined in the installation wizard. As both the |
@publicarray configurable ports may be usefull for the dnscrypt-proxy package as discussed in #4744 (and other issues ?) |
@publicarray do you know how to create an interface selection dialog in the wizard - similar as we do for the volume for shared folders? |
Why not let the user choose any valid port number? In the install script you could also create the firewall rule on the fly. The DSM6 docs still have wizard information: https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/6.0/enu/DSM_Developer_Guide_6_0.pdf#page72 I did this on mobile so the json is probably invalid [
{
"step_title": "Conf",
"items": [
{
"type": "combobox",
"desc":"port",
"subitems": [
{
"key": "wizard_port",
"desc": "port",
"displayField": "display_name",
"valueField": "port",
"editable": false,
"mode": "local",
"store": {
"xtype": "arraystore",
"fields": ["port", "display_text],
"data": [["53","53/dns"], ["80","80/http"]]
]
}
]
},
]
}
] |
@publicarray you probably mixed up my two questions/remarks above. The dante-sockd wizard let the user choose any valid port. The tricky part is, that the firewall rule file (".sc) must be generated/updated in the preinst step or it will not be applied by DSM installer. And as the *.sc file in the spk package contains a placeholder for the port, the DSM installer is not able to verify whether the port entered in the wizard is already in use. So the validation is done in service-setup.sh. and, i tried to use The other question was about enumerating the available network internaces similar to the list of volumes in DSM 7 compatible wizards for shared folder volumes. |
I haven't done it before (the volume selection was a copy and paste from the official DSM6 docs), but the dropdown can use a web API: https://global.download.synology.com/download/Document/Software/DeveloperGuide/Os/DSM/All/enu/DSM_Login_Web_API_Guide_enu.pdf
|
I found an issue with the missing |
@publicarray thanks for the wizard update. Thats what I was looking for. Permissions on DSM 6 do not work yet, I got the following log:
|
@hgy59 this should work again 😃 |
- add firewall rule for port configured with wizard - patch for DSM 7 only - add libwrap (tcp wrappers) - add some documentation to sockd.conf - install socksify script
Co-authored-by: hgy59 <hpgy59@gmail.com>
- apply patch for all DSM versions
Motivation: Add firewall rule for port configured with wizard
Linked issues: This is a follow up of #4898
Checklist
all-supported
completed successfullyTODO
root
eth0
has no inet addr assigned, butovs_eth0
has)