Question Ubuntu | how to turn off the firewall, or in better words, open every port

BlockModder

Distinguished
Jun 29, 2013
23
0
18,510
I'm at my the end of my rope with Ubuntu, I cannot get my ports to listen or open. I have tried every ufw command, I have tried turning ufw off, Ive tried disabling it. What I've discovered is that apparently ufw doesnt come pre-installed anymore because Linux/Ubuntu come by default with every port blocked/closed. I want to be done with this, how do I open every port, permanently, its being used for a server in my LAN, I dont need this for defense.

Long story short, I cannot get Samba or NoMachine to work because ports like 4000, 137 – 139 and 445(Samba) are not actually open no matter what I put into UFW. I did a UFW reset even, no dice. Its not the router, all of my windows machines have no issues, even the VM's that are on same server(using bridged connections and thus their own IP's).

Please, any advice welcome, I really dont want to have to uninstall Ubuntu, but so far its so buggy I dont think I can use it if commands dont affect it.
 

Ralston18

Titan
Moderator

BlockModder

Distinguished
Jun 29, 2013
23
0
18,510
What commands are you using?

Show some examples and the resulting error codes, messages, etc..

Not a Ubuntu user per se but there seems to be quite a bit of information on the internet.

For example:

https://www.cyberciti.biz/faq/how-to-open-firewall-port-on-ubuntu-linux-12-04-14-04-lts/

https://www.slingacademy.com/articl...close-a-port-in-firewall-ufw/#google_vignette

Note: Just example links - not a recommendation or endorsement.
Sure, I used commands such as sudo ufw allow samba, sudo ufw allow 137, sudo ufw allow 4000(the port Im using for nomachine). Then if I go and do an nmap scan of my machine on those ports, they return as still closed which is wild to me. I feel like there is something I might be fundamentally missing about Ubuntus firewall/internet protection, but at the same time, considering the pure bugginess that I have experienced with Ubuntu, Im beginning to think I might need a reinstallation which also isnt happening. Ill pay for and install windows server 2019 or 2022 before I do that, Ubuntu took to long to setup as it is.