Been looking for hours, couldn’t find anything.
My ports are forwarded as the following:
# | External Port | SRC | Internal Port | Destination
1 | TCP/UDP: 27005-27015 | Any | TCP/UDP: 27005-27015 | 192.168.0.17
2 | TCP/UDP: 25444 | Any | TCP/UDP: 25444 | 192.168.0.23
3 | TCP/UDP: 80 | Any | TCP/UDP: 80 | 192.168.0.17
4 | TCP/UDP: 443 | Any | TCP/UDP: 443 | 192.168.0.17
I performed a nmap on my LAN (192.168.0.17)
Starting Nmap 7.91 ( https://nmap.org ) at 2021-02-15 22:51 UTC
Nmap scan report for 192.168.0.17
Host is up, received arp-response (0.0029s latency).
Not shown: 1041 closed ports
Reason: 1041 resets
PORT STATE SERVICE REASON VERSION
21:tcp open ftp syn-ack ttl 64 vsftpd 2.0.8 or later
22:tcp open ssh syn-ack ttl 64 OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)
80:tcp open http syn-ack ttl 64 Apache httpd
443:tcp open ssl/http syn-ack ttl 64 Apache httpd
3306:tcp open mysql syn-ack ttl 64 MySQL 5.7.33-0ubuntu0.18.04.1
27015:tcp open tcpwrapped syn-ack ttl 64
MAC Address: 38:60:77:67:8C:74 (Pegatron)
Device type: general purpose
Running: Linux 4.X|5.X
OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5
OS details: Linux 4.15 - 5.6
Network Distance: 1 hop
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 14.41 seconds
However, when I performed a nmap on my public IP address:
Starting Nmap 7.91 ( https://nmap.org ) at 2021-02-15 22:47 UTC
Nmap scan report for *public ip url or smth* (*public ip*)
Host is up, received echo-reply ttl 254 (0.017s latency).
Not shown: 1040 closed ports
Reason: 1040 resets
PORT STATE SERVICE REASON VERSION
25:tcp filtered smtp no-response
135:tcp filtered msrpc no-response
136:tcp filtered profile no-response
137:tcp filtered netbios-ns no-response
138:tcp filtered netbios-dgm no-response
139:tcp filtered netbios-ssn no-response
445:tcp filtered microsoft-ds no-response
Too many fingerprints match this host to give specific OS details
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 5.06 seconds
I did sudo netstat -lptn
, and it showed the following:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:27015 0.0.0.0:* LISTEN 10979/./srcds_linux
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 10289/mysqld
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 713/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1027/sshd
tcp6 0 0 :::443 :::* LISTEN 15678/apache2
tcp6 0 0 :::80 :::* LISTEN 15678/apache2
tcp6 0 0 :::21 :::* LISTEN 962/vsftpd
tcp6 0 0 :::22 :::* LISTEN 1027/sshd
When attempting to visit 192.168.0.17
in my browser, I receive the page normally.
When attempting to visit public ip
in my browser, I receive “public ip refused to connect.”.
Does anyone know a way to fix this?