Can not connect to server from outside my lanhi

Sysuser

New Member
Joined
Jan 28, 2021
Messages
6
Reaction score
2
Credits
57
Hi there

I have a home linux ubuntu 20.1 server.

I want to connect to my server in two way.

1. Via znc my irc bouncer

2. Via ssh

Now i can connect to these from inside my lan but when i change location such as when i go to my parents house i can not access my server via my znc or ssh

I have allow the correct relevant ports that i use for znc and ssh via the ufw.

I have accessed my routers settings and added the relevent ports that i use for znc and ssh and selected my server.

And i still can not connect to my server out side my lan.

Any help is much appreciated.

Thank you
 


Hey,

Can you post any error message ? What do you use ?
 
Ok so to connect to my znc i use weechat and my ip followed by the port number and my log in details and it just does not connect. It says connecting ssl...... and stops there.

When i try connect to znc admin panel using browser https ip port number i get a error saying page can not be reached.

To ssh i use terminal. And in put my details and it says can not connect. Connection refused.

But when i am at home on my lan both work fine.
 
Last edited:
Are you sure about your router configuration ? No error between incoming traffic and outgoing ?
 
I have gone to my router settings - firewall and port forwarding. Selected allow all traffic incoming and outgoing

I selected my server from a list of connected devises - input my port number that i use for ssh and znc. Saved settings.

Still can not connect to server
 
Can you ping your server at least ? If yes, can you test the status of your port with telnet ?

Example :
Code:
telnet 192.168.0.1 22
 
When i ping the server From inside my lan i get this
192.168.*.*** ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7010ms rtt min/avg/max/mdev = 2.927/8.120/10.406/2.235 ms $ ping 192.168.*.*** (port) PING **** (0.0.26.41) 56(124) bytes of data.

telnet 192.168.*.*** (port) ^C --- (port) ping statistics --- 108 packets transmitted, 0 received, 100% packet loss, time 107052ms
 
7010ms ? Where is your server from you ?

And, can you post your ufw details ?
Code:
ufw status

If your router configuration is correct, I think you have to check your sshd_config in /etc/ssh/sshd_config, I don’t have all parameters in mind.
 
Last edited:

Members online

No members online now.

Latest posts

Top