I'm having a networking problem connecting to my raspberry pi from the internet through the router. These are the facts and things that I have tried:
- My raspberry pi is connected by both wlan0 and eth0 and both have internet addresses assigned by the router through DHCP.
- From within my network I can connect without any problems to both the wlan0 and the eth0 addresses by ssh, e.g. from my laptop.
- The raspberry pi can connect to the internet without any problem through both eth0 and wlan0.
- When setting up portforwarding in my router to the raspberry pi to the eth0 address, I can connect from the internet to my raspberry pi.
- When setting up portforwarding in my router to the wlan0 address, connections timeout!
- Setting up portforwarding to other another computer's wifi connections work without any problem. E.g. portforwarding of ssh to my laptop works fine.
- I have not setup a firewall but are using the default values from the installation.
I tried switching wifi dongles, but the behavior is the same for two different dongles with different chipsets.
My system configuration on the raspberry pi is:
> cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
So what is going on? How came the wifi interface is blocking incoming connections from the router?
Update 1: Portforwarding of https through the wlan0 interface works! Thus the problem must be with the sshd configuration.