Networking - Whitelist ports does not work as expected
-
@BrutalBirdie Whoops, the filename is wrong. The correct filename is
/home/yellowtent/boxdata/firewall/ports.json.# cat /home/yellowtent/boxdata/firewall/ports.json { "allowed_tcp_ports": [ 10050 ] } # systemctl restart cloudron-firewall # iptables -L -n | grep -i 10050 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp multiport dports 10050 -
@BrutalBirdie Whoops, the filename is wrong. The correct filename is
/home/yellowtent/boxdata/firewall/ports.json.# cat /home/yellowtent/boxdata/firewall/ports.json { "allowed_tcp_ports": [ 10050 ] } # systemctl restart cloudron-firewall # iptables -L -n | grep -i 10050 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp multiport dports 10050@girish said in Networking - Whitelist ports does not work as expected:
@BrutalBirdie Whoops, the filename is wrong. The correct filename is
/home/yellowtent/boxdata/firewall/ports.json.# cat /home/yellowtent/boxdata/firewall/ports.json { "allowed_tcp_ports": [ 10050 ] } # systemctl restart cloudron-firewall # iptables -L -n | grep -i 10050 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp multiport dports 10050Now it's working as intended.
I will create a PR for the docs.edit:
https://git.cloudron.io/cloudron/docs/-/commit/fd7c5d31f5fbd02e65589e06d5f9ee50322269eb
Has been done already, because it's not live yet I thought I could do that.Thanks

-
@BrutalBirdie Whoops, the filename is wrong. The correct filename is
/home/yellowtent/boxdata/firewall/ports.json.# cat /home/yellowtent/boxdata/firewall/ports.json { "allowed_tcp_ports": [ 10050 ] } # systemctl restart cloudron-firewall # iptables -L -n | grep -i 10050 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp multiport dports 10050 -
@girish How would be the syntax to open several ports? I'd need RStudio server (8787) and Geoserver (8080).
Is it comma separated, semicolon separated or a line per port?
Thanks a lot for the support!
-
I would also enjoy UDP being supported this way.
Since I can still just do it manual via iptables why not give the user a easier way. -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
