Connection problems

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.11
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

I have my server on network A and connections in network A works as usuall, also on mobile 4g all connetions work, but then when I go to network B I can’t connect at all to my server, on network B I also have another yunohost server that is working fine everywhere. I suspect it’s some DNS problem, I have adguardhome installed in both servers and I see server A not being blocked on server’s B adguardhome. What could it be?

Share relevant logs or error messages

No idea what I could share, if you know please let me know and I will do it.

On your client in network B try ping <fqdn yunohost network A>. This should give you an IP even thought the ping might not work. Look at the IP:

  • is it a private IP? Is it correct? Check routing and firewall between your client and the IP.
  • is it the IP you use to access your host from the internet? Check that your NAT is configured correctly (hairpin nat).
1 Like

I have a static IP on both networks

Could you please give an example of that command?

If it means simply “ping domain” or “ping ipaddress” of server A, I just did it from server B and it pings as expected, will try from my pc on network B later.

I just did the ping from my PC on network B and it has some problems regarding IPv6, it’s unreachable. I don’t understand why IPv4 is not working though. On my server in network it works as expected, so it must be something blocking ipv4 on my clients in network B?

Not even SSH works

ping www.my-domain.org

that’s what I thought, ping as usuall…thanks but I am not sure what to do, maybe disable ipv6 on server A?

Well, either you need to read up on all the more technical suggestions I made or you need to trust and reply with the result of the commands so that the network people here can get a better picture of what might be the problem and how to solve it. :wink:

Disabling IPv6 will probably not help. I’m guessing at a problem like this:

You resolve your fqdn (www.whatever-domain.org) and get the external IP in for your router. Then you try to connect to it, but you fail. You probably fail, because network address translation (nat) is only configured for the external interface of your router.

1 Like

How do I check if a yunohost server is blocking a certain IP address? Maybe that’s my case.

There are some topics on the forum having the same issue :

1 Like

I just found out how to whitelist an IP address on fail2ban, that was the problem as I checked and found it on the logs being blocked. Problem solved!

Can you explain what you did so it may help others

1 Like

Sure, I had this insight about fail2ban, and in the logs there it was my LAN IP, then I simply edited this file: /etc/fail2ban/jail.conf whitelisting my IP in the line:


[DEFAULT]

ignoreip = 123.456.78.90

2 Likes

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