VPN for your Home Network with Wireguard on OpenWrt and iphone connecting to linux VPN

VPN for your Home Network with Wireguard on OpenWrt and iphone connecting to linux VPN

OneMarcFifty

4 года назад

54,928 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

chesshooligan 1
chesshooligan 1 - 05.09.2023 18:53

Nothing terrifies me more than some hacker accessing my security camera and finding out what's going on in my garden.

Ответить
drew mobile
drew mobile - 30.07.2023 01:32

Love your videos Marc!
Your teaching style is superb and you have a great and fun way of explaining complex IT aspects.
Would you be interested in doing an updated version using Luci to show how to set up a home OpenWRT Wireguard server that mobile phones can connect to?

Ответить
Doni Sewell
Doni Sewell - 06.07.2023 22:32

Very easy to follow. I now have a working WG server.

Ответить
Robert Tee
Robert Tee - 27.06.2023 12:51

Does this method require public ip? Will this work if my ip is behind a cgnat?

Ответить
Rene Schultze
Rene Schultze - 14.05.2023 10:55

Hello Marc, do you know if a Wireguard server could run on a dumb AP in the same network as the AP? I do get a VPN connection - peer connection shows up - but cannot ping the peer or server. Is it possible with Firewall & dnsmasq off as recommended? Thank you very much in advance!

Ответить
Rodrigo e Beta
Rodrigo e Beta - 08.05.2023 06:31

Hi Marc, I was setting the Wireguard connection from a OpenVPN connection, but accidentally dropped all my LAN from WAN, and subsequently my OpenVPN server. I don't have SSH over WAN enabled, so I'm kind of locked out. I have access to the UDP port Wireguard uses and the Wireguard server is running on my router, I also have the public key, but couldn't add myself as a peer before being locked out. Do I have any chance of logging back in to my router? Of course I have root access, but I'm 5000 miles away from home until July, so kinda desperate. THanks!

Ответить
Wagner
Wagner - 06.05.2023 23:19

I don't know what is happening at my end. I try several guides, posts and videos and nothing can do my WireGuard on OpenWrt works from the outside "from WAN".

Ответить
John Bajer
John Bajer - 06.05.2023 21:32

Hello, how to set it up? I followed the tutorial without success. any hint where to took at? I got the following error after connection established, what could be the cause?: daemon.err miniupnpd[5290]: try_sendto(sock=8, len=409, dest=[ff02::c]:1900): sendto: Permission denied
daemon.err miniupnpd[5290]: try_sendto(sock=7, len=471, dest=239.255.255.250:1900): sendto: No such device

Ответить
Joaquín Vacas Verísimo
Joaquín Vacas Verísimo - 31.03.2023 19:54

It's been a while I'm looking for some kind of mDNS repeater/replicator/reflector/whatever that works using Wireguard.

I have 2 routers using Site-to-Site Wireguard and DNS works fine, etc. But mDNS does not.

I was wondering if it's possible to get mDNS working so I can use some of my services on the other red. Mainly network device auto-discovery.

Not at all for all use cases, but it would be cool to play music to your Sonos speakers being in another network, just for the "being able to do it". 😂

Ответить
Maarten Valk
Maarten Valk - 24.02.2023 18:31

Hi Marc, many thanks for your nice videos! I tried to follow your guide and ran the script on my Openwrt 22.03. However it does not seem to work, I do not get the same screens as you show in the video. Has anyone applied this on 22.03?

Ответить
Arion Cheng
Arion Cheng - 21.02.2023 14:50

My Openwrt is behind to my ISP. Virgin media Hub 4 router, I followed you to config ure Wireguard, but it cannot handshake, how can I solve it? Thanks!

Ответить
Volker Peper
Volker Peper - 18.02.2023 16:53

Hi, ist es möglich das tolle Video auch auf Deutsch zu machen! Ich habe eine aktuelle Version Openwrt 22.03.02 und möchte gerne per Wireguard von zu Hause auf mein weiteres Netzwerk an einem anderen Standort zugreifen. Das Script lief teilweise auf Fehler und ich habe es versucht manuell mit Hilfe diese Video anzulegen. Das klappt allerdings noch nicht.
Ich würde gerne mit einem Linux Laptop von zu Hause per wireguard auf mein System - Router zugreifen und dort auf ioBroker System zugreifen. Das wäre genial.

Ответить
Wellio Lima
Wellio Lima - 31.01.2023 00:17

Very good!!! Excelente!!! Congratuletions!!!!!!

Ответить
Antonio Henrique
Antonio Henrique - 29.01.2023 08:07

can you do the same video, but, using IPv6?

Ответить
Will Carlson
Will Carlson - 21.01.2023 21:03

This is great! How do I easily add multiple clients?

Ответить
Michael Kirk
Michael Kirk - 30.12.2022 20:17

Excellent tutorial and script. One thing worth pointing out is the line "opkg install wireguard" at the top of the script needs to be changed to "opkg install wireguard-tools" to work with the current version of OpenWRT. Otherwise, it all worked flawlessly!

Ответить
Peter Parker
Peter Parker - 06.12.2022 22:25

Hi, I installed that package wireguard qrencode and luci-app-wireguard but the button to view the qrcode of the vpn is not there! Strange right? thank you in advance for your help.

Ответить
sledgeHammerRulez
sledgeHammerRulez - 04.12.2022 19:28

Hi Marc, how can I know that I have enough resources for installing WG on my OpenWRT router? It is rather light router (in resources and weight :D).
TPlink TL-WR104ND v4
Openwrt 19.07.3 (but it should be upgradeable)
Load: 0.65 0.19 0.07
Memory: 27.02 MB/ 58.15 MB

Ответить
Gordon Freeman
Gordon Freeman - 23.11.2022 01:18

You are doing God's work man. Thank you so much for this.

Ответить
BlueTumbleweed
BlueTumbleweed - 05.11.2022 22:53

I'm not getting the QR code button even after installing the qrencode package. I'm on 22.03.2.

Ответить
unmesh59
unmesh59 - 09.09.2022 19:47

Is there a way with Wireguard to access my LAN from a friend's house who uses the same IP addresses on his LAN as I do on mine?

Ответить
Нет Рашизму
Нет Рашизму - 22.08.2022 13:00

Wireguard простой , но очень не надёжный, даже сам линк восстанавливать не умеет.

Ответить
Anton Nosov
Anton Nosov - 21.08.2022 11:29

Dear Marc,
Thanks for your videos! It help me a lot.

Could you please share information how it possibly to set up two WireGuard connections at the same time on OpenWRT. One for connecting to the home network from mobile devices, the second for outputting traffic.
Thank you!

Ответить
Raukze
Raukze - 18.08.2022 09:54

Hi Marc, great video once again! Could you please also make a video on OpenVPN? What I'd specifically be interested in is the OpenWRT router acting as a OpenVPN client. I would then like to have an interface which is dedicated to that VPN connection to then be able to create a wifi which routes all my traffic through that VPN. This would come in handy as I would then be able to use VPN providers like NordVPN and such to have a wifi network which lets me surpass geoblocking for all devices within that network. Because what I cannot figure out is how to not route the LAN interface traffic through the VPN but only the traffic of a specific network. Do you have a video planned on OpenVPN? Thanks in advance!

Ответить
Sergey Barkovskiy
Sergey Barkovskiy - 18.05.2022 03:42

As usually - very well and detailed described.
Breath of the air in learning OpenWRT world.
Spoken with so much care and attention also to small details.
Awesome - thanks again!

Ответить
Tolis L
Tolis L - 11.05.2022 18:41

Marc you rock! Thank you very much. I have transitioned from a, 10 years old but trusted, SSH tunneled port forwarding configuration to wg in order to access my lan resources. It is much more convenient. You have a top class channel in here I say. Well done!

Ответить
Roblox Rainbow Twins
Roblox Rainbow Twins - 01.05.2022 23:01

VPN is not working for me. I have one doubt and I guess it is the problem. What's the IP you added with port number in the App. You said DNS. But which DNS is that?

Ответить
DetHjemme
DetHjemme - 06.03.2022 23:40

Hi, i have a home server which run website on it with letsencrypt + nginx. And have wireguard vpn subscription. I can connect to wireguard from the home server very simply. But my website can't be reached any more on port 443 or 80. Should forward port 443 and 80 on my server or contact the provider to let the port open? Any tutorial from you i've missed?
PS: the ports are already open in my openwrt and works fine. But not after starting the wireguard.

Thanks in Advance

Ответить
Iurii Lunev
Iurii Lunev - 23.02.2022 23:42

Thank you! Did help to me today. Cheers!

Ответить
David W
David W - 03.02.2022 13:44

Funktioniert leider bei mir nicht. Fritzbox 4040, OpenWrt 19.07.8

Ответить
Fernando Ariznavarreta
Fernando Ariznavarreta - 27.12.2021 17:31

I have followed the instructions step by step, and even downloaded the script and installed it, but cannot stablish a connection.
I have revised the traffic rules, key pairs, etc, but still not get a connection, no connection in the wireguard openwrt interface, and no traffic in the mobile.

I had it running in a NAS with the ISP router redirecting UDP traffic to it. But I cannot get it working in openWR.

Ответить
Gary Gravett
Gary Gravett - 18.12.2021 03:31

Hi, do I need to setup a ddns like Duckdns first and how to get it’s IP?

Ответить
Fredrik Rutgersson
Fredrik Rutgersson - 14.12.2021 20:22

Hi

Thanks for the inspiration. I have an OpenSwan IPSEC tunnel today(OpenWrt) but think Wireguard looks very interesting and I plan to rebuild it during the Christmas weekend. Are there any changes in the new OpenWrt 21?

Ответить
mindfuloftech
mindfuloftech - 24.11.2021 20:20

Perfect, thanks Marc! After following (and being confused by) a few different guides yours worked perfectly! It took me a while to figure out you need to restart the interface after setting up the peer, I wrongly assumed save & apply would do this.

I also had to clean up old keys and regenerate them from the interface because I had tried a couple of other methods before and made a mess.

Your channel is a treasure trove of network shenanigans, thanks again!

Ответить
Familie Ortmüller
Familie Ortmüller - 13.10.2021 11:30

Hey Marc, thanks very much for your video. It works perfectly. Could you please also show what has to be done, to get internet access for the clients. I tried for more than one day but didn´t get it working :-(

Ответить
Brendan
Brendan - 01.10.2021 05:22

Fantastic thank you!

Ответить
Tomás Duca
Tomás Duca - 12.09.2021 08:35

Hi once again Mark!! One quick question: will this script work with OpenWrt v21? Or it needs to be tweaked due to the change from swconfig to DSA? I’m case it needs to be “fixed”, are you planning to publish the v21 version? Thank you!!!

Ответить
Xenstar Network
Xenstar Network - 30.06.2021 16:47

Thanks a lot for the script. I was able to setup it easily with your script. But now I am finding it very hard to generate QR code, or create additional users, so I can let access some other people access my NanoPi R2S router.

Ответить
Tomás Duca
Tomás Duca - 30.05.2021 08:44

Hi Marc! This is great! Thank you once again. I have it up and running in my tplink C7. My question: would you recommend to configure in the iPhone the option On Demand for every unknown/public wifi? I am thinking my own known secure network will be always better than a public one, right?

Ответить
Gürkan Çekiç
Gürkan Çekiç - 19.05.2021 23:00

Hi OneMarcFifty , at the end when connecting from phone i have got this fault message " Error bringing up tunnel :At least one address must be specified" , i followed your instructions and script . thank you for your videos .

Ответить
Arion Cheng
Arion Cheng - 26.03.2021 06:57

Can your script be run on DD-WRT? since I have one that run DD-WRT but it cannot convert to OpenWrt, thanks

Ответить
a h
a h - 19.03.2021 10:13

i don't recommend to use this script i screwed my network.lucky i have backup

Ответить
Marcos Núñez
Marcos Núñez - 17.03.2021 21:56

Hi Marc! I'm new to your channel, and I've been devouring all your videos ever since. I've Wireguard set up in a RPI3, but I'm going to try the OpenWRT approach in another router I have. Quick question: In my current Wireguard setup, whenever I'm home and my phone picks up my WiFi, it stops working (I guess I've something routed wrongly), so I'm forced to turn Wireguard off. What would happend with your OpenWRT Wireguard script?

Ответить
Name SName
Name SName - 13.03.2021 15:53

May you do video on how to access home network via VPN if home network is behind multiple NATs?

Ответить
Doctor Ideology
Doctor Ideology - 06.03.2021 22:19

Can I have your number?

Ответить