Help with Port Forwarding

Help with Port Forwarding

Help with Port Forwarding
Help with Port Forwarding
2 weeks ago - last edited 2 weeks ago
Model: Archer C7  
Hardware Version: V5
Firmware Version: 1.2.1

Hello all. I am trying to set up port forwarding on my router so I can access a Raspberry Pi 3B that I am planning to use as a home VPN.

The router is a TP-Link Archer C7 v.5.0. I already have the Raspbian OS on an SD card in the Raspberry Pi which is powered and connected to the router via network cable. When I try to use Putty on my Win10 computer to load the OpenVPN server software remotely, I get a message that says:

Network Error: connection refused

I am quite certain that is caused by the port forwarding not being correctly set up.

My present set up on this router is as shown on the screenshot (attached). What have I gotten wrong?

Thanks for any and all help.

 

 

 

  0      
  0      
#1
Options
3 Reply
Re:Help with Port Forwarding
a week ago

Hello @ffl332 ,

Welcome to our community.

 

First, it's important to note that port forwarding is only needed when you want to access your Raspberry Pi from outside your home network (from the internet). Since you're trying to connect from your Windows 10 computer that's on the same local network as your Raspberry Pi, port forwarding is unlikely to be the cause of the problem.

 

The "connection refused" error in PuTTY typically indicates one of these things:

1. SSH service isn't enabled or running on your Raspberry Pi • Make sure SSH is enabled in Raspbian. You can enable it by creating an empty file named "ssh" (no extension) in the boot partition of your SD card.
2. Incorrect IP address • Verify you're using the correct local IP address of your Raspberry Pi. You can check this in your router's DHCP client list.
3. Firewall blocking the connection • Check if any firewall on the Raspberry Pi is blocking SSH connections.
Regarding port forwarding setup: According to our knowledgebase, when configuring port forwarding on your Archer router, you should first make sure the server (your Raspberry Pi) is accessible from the internal network. Once you can successfully connect via PuTTY locally, then you can set up port forwarding for external access.

For detailed instructions on configuring port forwarding, please refer to: how to set up virtual server on TP-Link wireless router?

If port forwarding doesn't work after you've verified local access, check that:
• Your router has a public WAN IP address (not a CGNAT address in the range 100.64.0.0 to 100.127.255.255)
• The firewall settings on your Raspberry Pi allow traffic from outside

For more troubleshooting details, see: Why port forwarding feature is not working on my Wi-Fi router
 

  0  
  0  
#2
Options
Re:Help with Port Forwarding
a week ago

  @ffl332 I wish it were that easy!

 

I have diagnosed the problem to be the Carrier Grade Network Address Translation (CGNAT) that my ISP is secretly using preventing the real IP to be passed on to my router.

 

I cannot have a conventional VPN with this ISP. I will either have to use ZeroTier One or switch ISP's as I am not interested in paying extra for a static IP address, the only alternative option my ISP has offered.

 

Thanks for your comments.

  0  
  0  
#3
Options
Re:Help with Port Forwarding
a week ago

@ffl332 ,

Yes, CGNAT address will also cause you unable to use the OpenVPN or port forwarding and affect the NAT Type. 

  0  
  0  
#4
Options