Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just tried allowing Firefox by sudo ufw allow Firefox. I get back the following message;
Traceback (most recent call last):
File "/usr/sbin/ufw", line 115, in <module>
pr.data['iptype'], pr.force)
File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 679, in do_action
res = self.set_rule(rule, ip_version)
File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 419, in set_rule
rules = self.backend.get_app_rules_from_template(rule)
File "/usr/lib/python3/dist-packages/ufw/backend.py", line 413, in get_app_rules_from_template
(port, proto) = ufw.util.parse_port_proto(p)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 76, in parse_port_proto
raise ValueError
ValueError
Firefox's profile is in UFW's app list. I have tried other apps in the list with the same problem.
I did the same on another machine with no problem.
I did try uninstalling UFW and making sure that all UFW files were gone then reinstalling UFW.
Didn't work. Same message.
I know nothing about the files in the message so I have no idea what's wrong.
Using Ubuntu 14.04.
You have to have a profile for the app that you want to allow. Some make their own
UFW profiles but most you have to make one for them and put it in /etc/ufw/applications.d.
To show what applications are there, the command is> sudo ufw app list.
You will be presented with a list of app profiles that are stored.
The profile defines what port/s and what protocol/s the app can use.
If you are looking for hand-holding or to be spoon-fed, this is not the place for that.
I notice that you didn't answer the question. So, show us your firefox profile for UFW then.
If you don't know anything about app profiles in UFW then you obviously can't help.
Going beyond the defaults has nothing to do with why it won't work on this one computer.
I am not asking for hand holding. I am asking for some direction.
My Firefox UFW profile;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.