Search code examples
gitsshportforwarding

After replacing my modem/router I am no longer able to access an internal git server locally, but still can from external networks


I have a git 'user' account established on a local machine. I was able to use it with git clone git@localhost:repo/gitrep.git from both the local area network and from externally as git clone [email protected]:repo/gitrep.git, where domain.com is a domain name maintained by Dyndns. I had to change my internet modem/router and after port forwarding domain.com access to ports 22, 443, 80, 3036 and 8080, as it was on the older router, I can access my server from an external network, but not from a machine on the internal network. I can ping it, ssh to the git users account, but git will not connect. What do I need to check to determine the problem?


Solution

  • I found that my isp had implemented a new 'security' feature on the new modem/router that when it detected 'suspicious' activity, it blocked the port. The suspicious activity was my using ssh to access another machine on my local network. I turned off that 'security' feature and now everything works fine.