Jump to content
TorGuard

🔥 HowTo - OpenWRT with any TorGuard's Wireguard IP

Rate this topic


19807409
 Share

Recommended Posts

1 hour ago, James8078 said:

[email protected]:/etc/torguard# cat ca.crt
cat: read error: Is a directory

This seems then to be a bug in my scripts if you did not create that folder on your own, I will fix that today/tomorrow, thanks for reporting.

What you did not write is if it now works :).

Also, if you are not using config created by generator tool on torguard, then you need to enable timeoutfix at least once every <24hours, if you are using generated config, then disable/do not use timeout fix

Link to comment
Share on other sites

9 hours ago, 19807409 said:

This seems then to be a bug in my scripts if you did not create that folder on your own, I will fix that today/tomorrow, thanks for reporting.

What you did not write is if it now works :).

Also, if you are not using config created by generator tool on torguard, then you need to enable timeoutfix at least once every <24hours, if you are using generated config, then disable/do not use timeout fix

does not work... it misses infos in wireguard interface, btw, I use 21.02 and tplink c2600 (ipq806x)

Link to comment
Share on other sites

You can send over private message the log where I can see what happened, I will check on fresh install with 21.02, anyway, there is a bug with certificate, by that a lot could have gone wrong. Your router should be capable to reach speeds of 100Mbit over wireguard, maybe even more, it says 1400Mhz, however, if you need this router for basic things like routing and wireless, you will be much more happy with some rasspberryPi4 or similar SoC board, on which you can install openwrt too.

In general, this is currently obsolete method, as you can create under your account a config which does not expire, my scripts use torguard client method which is currently still the same, around a month ago (for some servers maybe even longer), api calls create temp configs which have to be renewed, for those who need to manage their connections with scripts and many clients, for such people api method is still preferable, but remember that currently recommended method by torguard is to create a config with their config generator.

1. create first a config in config generator

2. Setup is simple, from factory reset point, you only need to run:

opkg update
opkg install luci-app-wireguard

That's it, then when you go to Network-Interfaces and create new interface, as protocol choose wireguard. Copy the rest from config which you created in step 1, it is self explaining.

If you copy&pasted the config, then you are finished, reboot the router to finalize it.

Additional info:

All users possibility to have 2 usernames, when you setup your port forwarded IP's, do it with one username, for all other connections use second. This will give you the ability to explicitly set port forwarded IP which will never expire. Another reason for this is, that if you use same username, then you cant create configs for multiple devices on port forwarded IP's. I wrote this because I assume you will use port forwarding too.

About own vpn server and gateway for torguard:

You do it all with one config, when you create your interface and paste IP address from torguard, then you can paste it like it is, with /24, however, for better overview, use /32 (1 ip address). As next add ip address range for your own vpn under, as torguard uses 10.*.*.* and your local network some 192.*.., for better overview, you can set something like 178.16.0.1/24. Then, for every your client which you want to be able to connect, add it as a peer and in allowed ip's on your router you need to add ip address which client config will use, lets your mobile phone with 178.16.0.10/32. This allows you to have run same interface as client for torguard and routing everything over it where on the same time all you have own vpn network in own range.

For more complicity, on openwrt, if you have 2 free LAN slots, then you can create 2 additional vlans where one port will be assigned as wan and the second one as lan/switch, this is quite a nice method if you want to set next to your original connection and wlan, vpn wlan using second interface and own network with dhcp server to which you can connect a switch. All in all, best is if you have always only one wireguard interface, never create/use two or more.

  • Thanks 1
Link to comment
Share on other sites

10 hours ago, 19807409 said:

You can send over private message the log where I can see 

Hi.

 

Thanks for your message, i did not find the private message option here

Link to comment
Share on other sites

  • 5 weeks later...

it is weird, I have internet cause Ive made opkg update before and everything was ok, but still problem with installing command;

 

-----END CERTIFICATE-----
curl: OK - found: - /usr/bin/curl
logCleanupOldLogFolder
Check for existing logs... Logs folder found
Move log dir... moved existing log folder to /tmp/1641856499.backup
tee: /var/log/torguard/tginstall/tginstall.log: No such file or directory
initLogFiles
tee: /var/log/torguard/tginstall/tginstall.log: No such file or directory
Log: enabled
Create new logfolder... OK
Create new logdir ... OK (/var/log/torguard/tginstall
Create new logfile ... OK (/var/log/torguard/tginstall/tginstall.log)
set globalVars
tee: /etc/torguard/ca.crt: Is a directory
-----BEGIN CERTIFICATE-----
MIIEujCCAqKgAwIBAgIRAOLkx9DgmetClFsZ11C9TDIwDQYJKoZIhvcNAQENBQAw
PTERMA8GA1UECgwIVG9yR3VhcmQxKDAmBgNVBAMMH1Rvckd1YXJkIFByaXZhdGUg
Um9vdCBDQSAxIDIwMjAwHhcNMjAwODA1MTk1MjUzWhcNMjQwODA0MTk1MjUzWjA0
MREwDwYDVQQKDAhUb3JHdWFyZDEfMB0GA1UEAwwWVG9yR3VhcmQgVlB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czyOBaVXNmsf969jRgKodTY/gejIW8WH6OnjYpYZhn
5h70Jr0xt8rppo7BqX9UUJbIKIfqHRTBuy9MHIamkYks1SY85TyrfSsSQOSg6AlS
aM92o+jm3qoVza75Ksa8Wel3pgs6FUfAp8aPRaQ+ysYV2Qlp6Byd702VuzdIfc/1
BlMk6TYfMFiaESBensO5GTa6p8ZEXOOsN3OSRc51iZ5OEMRp1w6364JnYNK9vmdA
OJdOz5njXFgb1BetQVuMY06pT861ByCQ0tl5XZycQf2ifFoAlZSwWkP5DFV5Ozq2
dI1mOMT8mRwIDfOfBJc=
-----END CERTIFICATE-----
curl: OK - found: - /usr/bin/curl
Set script messages
initialize luci configs
Found bin: /usr/bin/tgfunctions ... not downloading
Found bin: /usr/bin/tginit ... not downloading
Found bin: /usr/bin/tginit-uci-basic ... not downloading
Found bin: /usr/bin/tginstall ... not downloading
Found bin: /usr/bin/tguninstall ... not downloading
Found bin: /usr/bin/tgsetup ... not downloading
Found bin: /usr/bin/tgupgrade ... not downloading
Found bin: /usr/bin/speedperf ... not downloading
tee: /etc/torguard/ca.crt: Is a directory
-----BEGIN CERTIFICATE-----
MIIEujCCAqKgAwIBAgIRAOLkx9DgmetClFsZ11C9TDIwDQYJKoZIhvcNAQENBQAw
PTERMA8GA1UECgwIVG9yR3VhcmQxKDAmBgNVBAMMH1Rvckd1YXJkIFByaXZhdGUg
Um9vdCBDQSAxIDIwMjAwHhcNMjAwODA1MTk1MjUzWhcNMjQwODA0MTk1MjUzWjA0
MREwDwYDVQQKDAhUb3JHdWFyZDEfMB0GA1UEAwwWVG9yR3VhcmQgVlBOIFNlcnZl
ciBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKcu3+XcrvJIzhxw
GOnkbn1hA4gjpe9qp0HU2gkaciUG7MyBgulfGAJh2ZhRUtVN2r6ZSdGP/nXTcYmj
6dQLo1ohruTkbgbbwRAynFJQQaFidO6eD1o7snFNMaBwiNNLjK7jlMgjHAPpmMcl
+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c51iZ5OEMRp1w6364JnYNK9vmdA
OJdOz5njXFgb1BetQVuMY06pT861ByCQ0tl5XZycQf2ifFoAlZSwWkP5DFV5Ozq2
dI1mOMT8mRwIDfOfBJc=
-----END CERTIFICATE-----
curl: OK - found: - /usr/bin/curl
/usr/bin/tginstall: line 982: -f: not found
cfg01df4d
cfg02df4d
cfg0328fd
cfg045b80
cfg058a39
cfg066b78
cfg0795a6
cfg0895a6
cfg0995a6
cfg0a95a6
cfg0b95a6
cfg0c95a6
cfg0d95a6
cfg0e95a6
cfg0f95a6
cfg1095a6

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...