The "Endpoint" in the wireguard config
Correct!
That has to be an IP if the OP wants to use the VPN company's DNS server.
Here's the config beside the Keys.
[Interface]
PrivateKey =
Address = 10.0.8.195/24,fdab:1337:1337:8::195/64
DNS = 2001:9b1:8826::53, 2001:9b0:4:2601::53, 98.128.186.86, 155.4.89.136
[Peer]
PublicKey =
Endpoint = wireguard.5july.net:48574
AllowedIPs = 0.0.0.0/0, ::/0
that is not possible if you can't resolve the domain, this should be an ip address.
try this one: 98.128.186.73:48574
root@OpenWrt:~# nslookup wireguard.5july.net
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: wireguard.5july.net
Address 1: 98.128.186.119
Address 2: 98.128.186.115
Address 3: 2001:9b1:8826:0:98:128:186:115
Address 4: 2001:9b1:8826:0:98:128:186:119
Use IP.
Seems like I'm getting different nslookup results
nslookup wireguard.5july.net
Server: EDITH.happy.local
Address: 192.168.111.10
Non-authoritative answer:
Name: wireguard.5july.net
Addresses: 2001:9b1:8826:0:98:128:186:73
2001:9b1:8826:0:98:128:186:110
98.128.186.73
98.128.186.110
Likely because it's probably distributed. I explained to the OP already:
This whole setup from the provider seems to be a little off to me.
In the first place I would create a new Network Interface only for the VPN and then feed all the traffic into this.
I assumed the OP has this already.
The provider has no setup for this. They offer a file containing the configs, which you just throw into the wiregaurd application and click connect. I'm opening the file in editor and entering the the info to use it in the router so that the whole network is behind the tunnel.
I followed to setup the vpn on my router. Vid
This looks like a setup to me. You should be able to configure everything over the luci webinterface
I told you...OK, we're gonna try again...these pages and info already exist, you really need to search.
I suggest:
- Setup a Wireguard interface
- add it to a new firewall zone
- enable masquerade on that zone
- Add a route to a new table (e.g. 2). do not use names or you have to make more configs
- 0.0.0.0/0 via your tunnel
Test this way and let us know your results:
ip rule add from 192.168.1.x to 0.0.0.0/0 table 2 priority 2
x == IP of the client you're testing
go to: whatismyip.com
If your single client works upon testing (you should get the IP of the VPN company), we can ask more about how you want DNS and all your network to use VPN.
I intered the Ip adress you gave instead of ( ```
wireguard.5july.net
Btw, new acc cuz the first one can't reply anymore. :confused:
Do not create other accounts to circumvent the noob posting limitation - it is against the Community Guidelines.
Be advised, out of respect for these rules - I (and most others) will not respond to the new account.
Also, do not edit your past postings to add more information. They may be marked for SPAM or vandalism.
I know sorry, but It said I had to wait 22 hours and I just wanted to tell you that the problem has been solved.
Thanks for the help!
FYI you can use selective dns forwarding to resolve the ip of the wg server with any public nameserver, while using the internal nameserver in general resolving.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.