logo elektroda
logo elektroda
X
logo elektroda

Configuring TP-Link TD-W8970 for Remote Access via VPN from Abroad

pull1990 25578 41
Best answers

How can I access my home network from abroad and use my home Polish IP with a TP-Link TD-W8970?

VPN will work only if your home connection has a public, unblocked WAN IP; if the router shows something like 192.168.5.2/24 on PPPoE, you are behind NAT and cannot publish a VPN server from home [#15377511][#15374248] Check the router WAN status or a site like whatismyip to verify the real public address, and ask your ISP whether it is public and unblocked [#15374248] If you do have a public IP, run OpenVPN on a router or on the home PC, then forward UDP 1194 to the server and make sure the firewall allows it [#15374265] If your IP changes, use a dynamic DNS service such as DynDNS or no-IP so the name always points to the current address [#15373291] If the TD-W8970 v3 cannot use OpenWRT, use another router/mini-PC or a second VPN-capable router at home [#15373584][#15373291]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15373196
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    Hello all.
    I have a small problem to solve and unfortunately I get tired and tired and cannot cope. I want to access my home network from the outside. I am abroad and I want to browse my resources from there, but also use Polish ip. I read that the goal I would like to achieve will help me meet vpn. Using various guides, I tried to configure the router and connect to it remotely via a computer. Unfortunately, none of this. Every now and then there are other mistakes that I cannot overcome. In my opinion, I have to start all over again and this is where I would like to ask for help. Where to start? What exactly to do? Are you sure vpn is the best solution for me?

    My router is tp-link td-w8970.
    At home, I also have a computer at my disposal, but due to the fact that it would have to be turned on all the time, I am not willing to apply this solution, but if it is necessary, this is an option.

    Thanks in advance for any answers and help.
  • ADVERTISEMENT
  • Helpful post
    #2 15373231
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    What connections do you have in both locations?
    VPN can be set up on routers, so PC operation is not necessary, but it is difficult to find cheap VPN equipment on neo, unless you supply your ETH router.

    Another alternative is to buy a VPN account on some site.
  • ADVERTISEMENT
  • Helpful post
    #3 15373291
    tzok
    VIP Meritorious for electroda.pl
    Posts: 38662
    Help: 3162
    Rate: 6408
    You can replace the software on your modem-router with OpenWRT and run a PPTP or OpenVPN server on it ... There is also the issue of variable IP, here you will need a dynamic DNS service (e.g. DynDNS, no-IP and tp) and a client of this service running on router and make sure the DNS name always points to the current IP address.
  • #4 15373479
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    hermes-80 wrote:
    What connections do you have in both locations?
    VPN can be set up on routers, so PC operation is not necessary, but it is difficult to find cheap VPN equipment on neo, unless you supply your ETH router.

    Another alternative is to buy a VPN account on some site.


    The connection at home is 100/20 Mbit / s and the connection at the "receiving" point is 25 / 1.5 Mbit / s
    I have neither neo nor variable ip. Buying a VPN on a website will probably not allow me to use my network (?)


    hermes-80 wrote:
    You can replace the software on your modem-router with OpenWRT and run a PPTP or OpenVPN server on it ... There is also the issue of variable IP, here you will need a dynamic DNS service (e.g. DynDNS, no-IP and tp) and a client of this service running on router and make sure the DNS name always points to the current IP address.


    OpenWRT is silent for my router. It is for this model, but only in the hardware version v1 and I have v3, unless I have not read something. As for ip, the same as above - it is not variable.
  • Helpful post
    #5 15373584
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    So supply a second router with a VPN server at home and use a PC client or router with a suitable FW at a remote location.

    I don't think it makes sense to pay extra to Draytek as an ADSL router with a VPN server.
  • ADVERTISEMENT
  • Helpful post
    #6 15373601
    tzok
    VIP Meritorious for electroda.pl
    Posts: 38662
    Help: 3162
    Rate: 6408
    pull1990 wrote:
    As for ip, the same as above - it is not variable.
    ... and is it public?
  • ADVERTISEMENT
  • #7 15373621
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    So my router does not allow me to create a vpn server on it? Which router do you recommend at a reasonable price?

    Is my ip public? I do not know. How to check?
  • Helpful post
    #8 15373653
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    The easiest way is to put together a VPN (openVPN) on Tomato ( Link - TAP, TUN) - then you have DD-WRT, Gargoyle (OpenWRT) and more advanced Mikrotik routers or some own gateway on some miniPC (raspberry Pi, banana pi etc. - but it's higher school with configuration in the console).
    For the server, a more efficient machine, e.g. Asus RT-N18, Asus RT-AC56U (which Asus withdrew from production because it was too efficient compared to the price - but you can still get somewhere in warehouses).

    Quote:
    Is my ip public? I do not know. How to check?

    Ask your ISP if it is public and unblocked.
  • #9 15373724
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    And if only to try to put the server on the computer that is at home and the client on my computer. It's about openvpn or other solutions
  • #10 15373749
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    Then attack the topic. Remember to redirect the appropriate ports on the router to the server location.
  • #11 15373772
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    Can you tell me more about it? I don't really know how to do this
  • #13 15374049
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    Before you wrote back, I already did according to these instructions:
    http://www.networkservices.pl/baza-wiedzy/instalacja-i-konfiguracja-openvpn-w-windows

    Something went forward, but when I turn on the connection with the server, it stands on the yellow icon, at this point I turn on the client and it also stands in a similar place. Below is the client's log:

    Tue Jan 26 9:13:41 PM 2016 SIGHUP [hard,] received, process restarting
    Tue Jan 26 21:13:41 2016 OpenVPN 2.3.10 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Jan 4 2016
    Tue Jan 26 21:13:41 2016 Windows version 6.1 (Windows 7)
    Tue Jan 26 21:13:41 2016 library versions: OpenSSL 1.0.1q 3 Dec 2015, LZO 2.09
    Tue Jan 26 21:13:43 2016 do_ifconfig, tt-> ipv6 = 0, tt-> did_ifconfig_ipv6_setup = 0
    Tue Jan 26 21:13:43 2016 open_tun, tt-> ipv6 = 0
    Tue Jan 26 21:13:43 2016 TAP-WIN32 device [Local connection 2] opened: \\. \ Global \ {0AFE4ECE-7CCB-41C2-843B-D05957639783} .tap
    Tue Jan 26 21:13:43 2016 Notified TAP-Windows driver to set a DHCP IP / netmask of 10.3.0.2/255.255.255.252 on interface {0AFE4ECE-7CCB-41C2-843B-D05957639783} [DHCP-serv: 10.3.0.1 , lease-time: 31536000]
    Tue Jan 26 21:13:43 2016 Successful ARP Flush on interface [24] {0AFE4ECE-7CCB-41C2-843B-D05957639783}
    Tue Jan 26 21:13:43 2016 UDPv4 link local (bound): [undef]
    Tue Jan 26 21:13:43 2016 UDPv4 link remote: [AF_INET] 192.168.1.108:1194

    At this stage, it has stopped and is still standing, nothing changes
  • #14 15374082
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    For this you need a client and a server.
  • #15 15374121
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    Yes Yes. I have a server at home on my pc and a client on my pc overseas. I was configuring everything a moment ago. I wrote earlier that I have both.

    I did everything according to the instructions I wrote about.
    In the configuration files I changed only "local 192.168.98.136". I entered my ip there. Maybe I should change something else or the entered ip is wrong? Come on at the stage of its verification, there are no errors and entering another one immediately crashes an error.

    I made a connection using a shared key
  • #16 15374138
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    But you are giving your IP from internal networks, not your public IP that you see on the internet.
    You are waiting for port forwarding on the router or the fight with the ISP for public unblocked connections initiating IP.

    Actually, I have no idea how you set it up.
  • #17 15374224
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    I have now entered my public ip and it's even worse.
    Can you say more about redirecting these ports? I don't know what to do next.

    As for the configuration, I did everything as in this guide. The configuration files are as follows:

    For the server:

    dev tun # interface type - always TUN for the router
    local 192.168.98.136 # server IP address (see additional notes at the bottom of the page)
    # "local" specifies the operating mode of this end of the tunnel as a server
    proto udp # type of protocol used
    port 1194 # used port
    ifconfig 10.3.0.1 10.3.0.2 # server IP address, client IP address (for the created connection)
    secret secret.key # name of the key file
    # you can enter the full path, e.g .:
    # secret "c: \\ Program Files \\ OpenVPN \\ config \\ secret.key"
    persist-tun # keeps the virtual interface elevated during restart
    persist-key # the key will not be reloaded during the restart
    keepalive 10 120 # restart on connection failure
    # sends ping every 10 seconds with timeout = 120s.
    cipher AES-256-CBC # Setting the recommended AES encryption with a key length of 256 bits
    # and the CBC algorithm
    # the setting must be identical on the client and server
    comp-lzo # compression algorithm, reduces transfer wear
    verb 1 # logging verbosity level


    For client:

    dev tun # interface type - always TUN for the router
    remote 192.168.98.136 # server IP address (see additional notes at the bottom of the page)
    # "remote" specifies the operating mode of this end of the tunnel as the client
    proto udp # type of protocol used
    port 1194 # used port
    ifconfig 10.3.0.2 10.3.0.1 # client IP address, server IP address (for the created connection)
    secret secret.key # name of the key file
    # you can enter the full path, e.g .:
    # secret "c: \\ Program Files \\ OpenVPN \\ config \\ secret.key"
    persist-tun # keeps the virtual interface elevated during restart
    persist-key # the key will not be reloaded during the restart
    keepalive 10 120 # restart on connection failure
    # sends ping every 10 seconds with timeout = 120s.
    cipher AES-256-CBC # setting the recommended encryption algorithm
    # the setting must be identical on the client and server
    comp-lzo # compression algorithm, reduces transfer wear
    verb 1 # logging verbosity level


    I copied everything, only changed the address in the second line of each code. What is wrong?
  • Helpful post
    #18 15374248
    tzok
    VIP Meritorious for electroda.pl
    Posts: 38662
    Help: 3162
    Rate: 6408
    For Open VPN, you need to redirect the following ports on the router behind the server:
    TCP 443, TCP 943, UDP 1194

    Also, you should enter public, not local, IPs. You can check your public IP in the router's panel (WAN IP) or by going to the website www.whatismyip.com from the computer behind the router.
  • #19 15374262
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    I don't know if I understand it wrong, but the server is on the computer and not on the router.
    I know my public ip, entering it does not help, and even harmful - here is the problem.

    Can you elaborate on what this redirect is all about and how to do it? If I can do this, will it all work?

    Thank you very much for help.
  • #20 15374265
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    Port 1194 (Port forwarding) must be forwarded on the router in the server's network - check that the server is actually listening (CMD netstat -a) and that the firewall is not blocking it.
  • #21 15374317
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    I checked through a website on the internet and port 1194 is closed.

    Sorry, but I don't know what's going on here: "check that the server is actually listening (CMD netstat -a) and that the firewall is not blocking it."

    I am unfamiliar with these topics and this is my first adventure with something like this. Thanks for your understanding because I suspect that you are already taking something from me ...

    Edit:
    I have forvarding in the router settings. The only problem is, I don't know what address to forward the ports to.
  • #22 15374492
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    Enter in the DMZ of the router the PC IP that got via DHCP.
  • #23 15374504
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    That's what I did before you wrote. It didn't change anything
  • #25 15374525
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    Unfortunately closed. Can't possibly use a different port?
  • #26 15374535
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    You can - it just depends on the server configuration - and the firewall may be blocking you.
  • #27 15374540
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    The firewall on the computer is completely off, and so is the router.

    Edit:

    I don't know if it is possible, but I checked the ports from 1000 to 1200 and they are all closed.
  • #28 15374602
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    So you may have an IP blocked by your ISP.
  • #29 15374606
    pull1990
    Level 10  
    Posts: 31
    Rate: 2
    And I won't be able to do anything?
  • #30 15374666
    hermes-80
    Level 43  
    Posts: 12013
    Help: 1177
    Rate: 740
    With a blocked IP address, you will not release any service from your network to the world - what are the first 6 digits of IP on the WAN of the router from the ISP?

Topic summary

✨ The discussion revolves around configuring a TP-Link TD-W8970 router for remote access via VPN while abroad. The user seeks to access their home network and utilize a Polish IP address. Various solutions are proposed, including setting up OpenVPN or PPTP on the router, using dynamic DNS services, and considering alternative routers with built-in VPN capabilities. The user faces challenges with port forwarding, public IP address verification, and ISP restrictions, leading to suggestions for using TeamViewer or an external VPN server as alternatives. The conversation highlights the importance of ensuring the server is listening on the correct ports and that the firewall settings allow for VPN traffic.
Generated by the language model.

FAQ

TL;DR: 63 % of European home users sit behind carrier-grade NAT [Cisco, 2021]; “without a public IP, port-forwarding will fail” [Elektroda, tzok, post #15377511] Verify your WAN address, then forward UDP 1194 (plus TCP 443/943) to the VPN host. Why it matters: no port-forward, no remote access.

Quick Facts

• OpenVPN default ports: UDP 1194, TCP 443/943 [OpenVPN Docs]. • TD-W8970 CPU: 600 MHz, 64 MB RAM—insufficient for heavy AES-256 traffic [OpenWrt Wiki]. • Dynamic-DNS services cost €0–€25 yr depending on SLA [DynDNS Pricing]. • AES-256 adds approx. 5–15 % CPU load on MIPS routers [Netgate, 2022].

1. How do I check if my TP-Link TD-W8970 has a public IP?

Log in to the router, open Status → WAN. If the displayed address falls outside private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) it is public. Compare it with https://checkip.dyndns.org; both must match [Elektroda, tzok, post #15376522]

2. Why do port scans stay closed even after forwarding?

Ports stay closed when the VPN service is not listening, the firewall blocks it, or the ISP uses CGNAT. In the thread, UDP 1194 stayed closed because the WAN IP was 192.168.5.2—an internal address routed by the ISP [Elektroda, tzok, post #15377511]

3. Which ports must I forward for OpenVPN?

Forward UDP 1194 and, if you run the web GUI, TCP 443 and TCP 943 to the VPN server’s LAN IP [Elektroda, tzok, post #15374248]

4. Can I run a VPN server directly on the TD-W8970?

Not with the stock firmware. Only hardware version v1 has stable OpenWrt builds. Versions v2/v3 lack support, so you need a second router or a PC [Elektroda, pull1990, post #15373479]

5. What low-cost routers support OpenVPN out of the box?

Asus RT-N18U and RT-AC56U run Tomato or AsusWRT-Merlin and include OpenVPN server for ~€70–€90 [Elektroda, hermes-80, post #15373653] Mikrotik hAP ac² offers similar features for ~€65 [Mikrotik Price List, 2023].

6. Can I host OpenVPN on a Windows PC instead?

Yes. Install OpenVPN, generate keys, and forward the required ports to the PC. In the thread, both server and client ran on Windows 7 successfully once the forwarding issue was fixed [Elektroda, pull1990, post #15374121]

7. How do I forward ports on a TP-Link xDSL router?

  1. Navigate to Forwarding → Virtual Servers.
  2. Add rule: Service = OpenVPN, Port = 1194, IP = VPN-PC’s LAN address, Protocol = UDP.
  3. Save, reboot router. Check with an external port scanner [TP-Link KB].

8. What if my ISP uses CGNAT?

You cannot accept inbound connections. Request a public IP or switch providers. Edge-case: some ISPs sell a “public-IP add-on” for €2-€5 month; without it, VPN servers remain unreachable [Elektroda, hermes-80, post #15374602]

9. Is buying a commercial VPN service a workaround?

A commercial VPN gives you a Polish IP abroad but won’t expose your home LAN. It solves geolocation, not file access [Elektroda, pull1990, post #15373479]

10. Does TeamViewer replace a site-to-site VPN?

TeamViewer grants desktop and file transfer on one PC, not full LAN routing. It works behind NAT because the session is brokered via TeamViewer servers [Elektroda, nomek, post #15380763]

11. How fast will my OpenVPN tunnel be?

Throughput equals the slowest link minus encryption overhead. With 100/20 Mb/s upstream and 25/1.5 Mb/s downstream, expect ~1.3 Mb/s upload abroad after AES-256 (~10 % loss) [Elektroda, pull1990, #15373479; Netgate, 2022].

12. How do I secure the setup against brute-force attacks?

Use certificate-based auth, disable password logins, and limit the interface to UDP 1194. Add ‘tls-crypt’ to encrypt control channel and set verb 3 logging to monitor attempts [OpenVPN Docs].
Generated by the language model.
ADVERTISEMENT