#StackBounty: #networking #ssh #ufw Curl works, but not pages in a web browser

Bounty: 50

I’m running Ubuntu 20.04.1 LTS on a Linode server and OpenLiteSpeed openlitespeed.org.

I’m getting timeouts for example.com:8088 and example.com:7080, the two OpenLightSpeed admin and config pages, in a browser.

But running
curl 127.0.0.1
gives me the text of the index.html file at root, and
curl http://localhost:8088
gives me the html dump of the OpenLiteSpeed admin page.

So curl works, but I can’t connect to example.com:8088 and example.com:7080 in a browser.

Apache is running, but OpenLightSpeed hasn’t yet been configured to use port 80, since I can’t get to the admin pages.

ufw status shows:

65500                ALLOW        Anywhere                 
443                    ALLOW        Anywhere                 
443/tcp                ALLOW        Anywhere                 
7080/tcp            ALLOW        Anywhere                 
8088/tcp            ALLOW        Anywhere                 
OpenSSH        ALLOW        Anywhere                 
80/tcp                ALLOW        Anywhere                 
65500 (v6)        ALLOW        Anywhere (v6)            
443 (v6)            ALLOW        Anywhere (v6)            
443/tcp (v6)        ALLOW        Anywhere (v6)            
7080/tcp (v6)    ALLOW        Anywhere (v6)            
8088/tcp (v6)    ALLOW        Anywhere (v6)            
OpenSSH (v6)    ALLOW        Anywhere (v6)            
80/tcp (v6)        ALLOW        Anywhere (v6)

Completely disabling ufw makes no difference with the issue.

Any ideas?


Get this bounty!!!

#StackBounty: #ufw UFW not denying traffic on specific ports

Bounty: 100

I have setup a UFW to allow all incoming and outgoing traffic by default. I wish to limit a few ports (in this case, 9200 and 5601). When I have the following configuration:

> sudo ufw status verbose
Status: active
Logging: on (low)
Default: allow (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere
9200                       DENY IN     Anywhere
5601                       DENY IN     Anywhere
22/tcp (v6)                ALLOW IN    Anywhere (v6)
9200 (v6)                  DENY IN     Anywhere (v6)
5601 (v6)                  DENY IN     Anywhere (v6)

I still seem to be able to access ports 9200 and 5601 from the outside world. What’s going on?


Get this bounty!!!

#StackBounty: #ufw #virtualbox-networking Ubuntu Svr VM in VirutalBox gets no IP on Bridged Network, unreachable via NAT IP

Bounty: 50

I’ve setup an Ubuntu Server 18.04 VM in VirutalBox on my Lenovo laptop (which is running Ubuntu Desktop 18.04). When the VM boots up using NAT for networking, it does get an IP and it can get out to the internet (PING google, etc): 10.0.2.15

However, I cannot get in to the VM via SSH, nor does PING work or anything else – nothing inbound to the VM is being allowed. I tried to disable UFW like so: systemctl stop ufw …which did disable UFW, but still nothing inbound is being allowed at all.

I then tried setting the NIC to use “Bridged” networking, but it cannot get an IP from DHCP (not sure why). I’m fine with using either IP, it doesn’t matter. I just need inbound connectivity. How can I get it?


Get this bounty!!!

#StackBounty: #mysql #ufw ubuntu 18.04 ufw how to allow local 3306 connections to mysql?

Bounty: 50

If I run this command:

mysql -u root -p -h 127.0.0.1 -P 3306

with the correct password (yes, I have the correct password) it says access denied

I run the exact same thing, just disable ufw first
sudo ufw disable

then the above command, and it works.
But: now ufw is disabled :S

What I really want to do is connect via mysql workbench using ssh
but without disabling ufw altogether, and without allowing none ssh access to my mysql installation?

these are the current settings that work for me with mysql-workbench, but only if ufw is disabled. As soon as I enable ufw, this stops working. And I dont want to just open 3306 ports to everyone either using ufw. I want to close everything except ssh, and let me connect via ssh to the 3306 port of mysql.

enter image description here


Get this bounty!!!