# Firewall blocking my connection

**URL:** <https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838>\
**Category:** Virtualmin\
**Created:** [April 7, 2024, 1:04pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838 "2024-04-07T13:04:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheMidnighter](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/d2c977/32.png) [@TheMidnighter](https://forum.virtualmin.com/u/TheMidnighter)\
**Post date:** [April 7, 2024, 1:04pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/1 "2024-04-07T13:04:59Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu 22 |
| Webmin version | The most recent |
| Virtualmin version | The most recent |
| Related packages | SUGGESTED |

Hi team,

I was having some issues with people trying to connect to the server so I installed & configured Fail2ban and a recommended Firewall… I fell off the face of the planet for a while, came back - I can’t connect to Virtualmin via port 10000 anymore, but I can connect when I remote to the server locally.

This tells me the firewall is blocking my connection.  
Now, I’ve tried adding the exception to iptables - but that did not work, I am not banned with Fail2ban … but there’s clearly another service running that’s blocking me.

How would one be able to find out what firewall rule/service is blocking my connection?  
I can remote to the server and access the panel that way, that’s no problem - and I can ssh to the server too.

Any guidance is appreciated, thank you all

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [April 7, 2024, 1:13pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/2 "2024-04-07T13:13:26Z")

</div>

> [@TheMidnighter](#):
>
> so I installed & configured Fail2ban and a recommended Firewall…

how many firewalls do you need?

just one should be enough (and will avoid conflicts)

---

<div class="post-metadata">

**Author:** ![popmay](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/ecc23a/32.png) [@popmay](https://forum.virtualmin.com/u/popmay)\
**Post date:** [April 7, 2024, 1:20pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/3 "2024-04-07T13:20:34Z")

</div>

> [@TheMidnighter](#):
>
> This tells me the firewall is blocking my connection.  
> Now, I’ve tried adding the exception to iptables - but that did not work, I am not banned with Fail2ban … but there’s clearly another service running that’s blocking me.

In Virtualmin failtoban wants to work with firewallID

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [April 7, 2024, 1:46pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/4 "2024-04-07T13:46:59Z")

</div>

> [@TheMidnighter](#):
>
> clearly another service running that’s blocking me.

do you have UFW running?

---

<div class="post-metadata">

**Author:** ![ID10T](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/id10t/32/7895_2.png) [@ID10T](https://forum.virtualmin.com/u/ID10T)\
**Post date:** [April 7, 2024, 1:50pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/5 "2024-04-07T13:50:18Z")

</div>

Webmin has its’ own access control. You can check that. Hard to say what changed.

traceroute -p 10000 domain.tld

> **[5 ways to check if a Port is open on a remote Linux PC | FOSS Linux](https://www.fosslinux.com/35730/5-ways-to-check-if-a-port-is-open-on-a-remote-linux-pc.htm)**
>
> There is an ample number of ways to check for any open ports on a remote Linux PC. This tutorial shows you some of the best command-line tools that you can use.

---

<div class="post-metadata">

**Author:** ![TheMidnighter](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/d2c977/32.png) [@TheMidnighter](https://forum.virtualmin.com/u/TheMidnighter)\
**Post date:** [April 7, 2024, 9:53pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/6 "2024-04-07T21:53:26Z")

</div>

I do not -  
Command ‘ufw’ not found, but can be installed with:  
sudo snap install ufw # version 0.36.2, or  
sudo apt install ufw # version 0.36.1-4ubuntu0.1  
See ‘snap info ufw’ for additional versions.

and I just followed a guide on how to secure my Virtualmin server – it was months ago and emails work so I didn’t have to pay attention to it … crap. I have too many domains to just re-install…

Any way I can find out what Firewall is installed? I’m going to go through my browser history and see if I can find it there… lol thanks for the help & suggestions

@ID10t - I am running Windows on my main machine - so I cannot run that command sadly, but thank you as well for the tip

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [April 7, 2024, 10:07pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/7 "2024-04-07T22:07:13Z")

</div>

> [@TheMidnighter](#):
>
> I am running Windows on my main machine - so I cannot run that command sadly, but thank you as well for the tip

Its tracert in windows.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/4/432ffedf3dbdbf0778d95b0ec89e6a7096d50ea2.png)

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [April 7, 2024, 11:57pm UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/8 "2024-04-07T23:57:23Z")

</div>

> [@TheMidnighter](#):
>
> and I just followed a guide on how to secure my Virtualmin server

Following random guides on the internet without understanding what you’re doing is always a bad idea.

The default firewall in a Virtualmin system installed in the recommended/documented way is firewalld. There is a module for managing it in Webmin. There are command line tools for managing it, too. We also setup fail2ban to work with it.

If you switched from firewalld to something else, I would hope you would know what you switched to. But, there are only a few commonly used options. If it’s not firewalld, it could be CSF, it could be plain ol’ iptables, it could be ufw (but if you don’t have ufw installed, it’s obviously not ufw).

Everything works if you let it. Don’t go out of your way to break things unless you have a real good reason to do so, and take the time to understand why you’re doing it.

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [April 8, 2024, 5:46am UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/9 "2024-04-08T05:46:45Z")

</div>

> [@Joe](#):
>
> Following random guides on the internet without understanding what you’re doing is always a bad idea.

> [@TheMidnighter](#):
>
> so I installed & configured Fail2ban and a recommended Firewall

This to looks like a webmin install or a minimal virtualmin install as with a full install you would not have to install fail2ban as the installer would have done that. so without more info who knows how the mail stack is set up

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [June 7, 2024, 5:47am UTC](https://forum.virtualmin.com/t/firewall-blocking-my-connection/125838/10 "2024-06-07T05:47:32Z")

</div>

Closed on June 7, 2024, 5:47am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
