I forwarded the following ports on my router for my linux server which has a static ip address.
TCP 21 FTP
TCP 22 SFTP
TCP 80 HTTP
TCP 115
Before enabling these rules I could already access my website from outside the network via the external ip address of the server (being the same as the router), but couldn't connect to it via FTP or SFTP. When trying from inside the same network however, both the website (HTTP) as well as FTP and SFTP worked just fine using the external ip address.
But after forwarding the ports on the router FTP/SFTP and HTTP work from outside the network but from inside the network only HTTP works.
So my connecting possibilities just swapped. Is there any chance I can get all of them working at the same time?
Network Setup:
domain.com
176.179.24.10 176.179.24.10
Internet---> Router----------> Server: static ip (same as router, with domain.com linked to it)
| Centro_grande_v2 |
| | 192.168.1.101
| L----> Macbook: can view domain.com in browser, but cannot connect with ssh
V
Computer: Can view domain.com in browser and can connect with ssh