So I'm running Ubuntu Server 22.04 on a Pi4, I have Wireguard installed so I can use the Pi4 to establish a connection to my Wireguard Server in Oracle Cloud. On that note, all is good and a connection is established.
On other devices at home, devices such as AppleTV where I cannot run a VPN on device itself, I'm wanting to point to the Pi4, specifying that as the gateway and then all traffic runs through that VPN on the Pi4.
All is good at this point but the next thing is what I think I need some help with and also a couple of things I found to be an issue post-setup.
Maybe a minor thing but I'm seeing IPv4 address on interface eth0 appearing twice. One entry is for the IP it picked up on DHCP and secondly, the IP which it has now, statically assigned by the router.
For clarity, router is 192.168.0.1, I have a PiHole/PiVPN running on 192.168.0.2 and my Pi4 is 192.168.0.3.
Ideally when the Pi4 has no VPN connection, it'll default to using PiHole's IP for DNS. That's what I'm wanting to achieve here.
I'm thinking when doing a full tunnel VPN, the Pi4 won't see the devices in local network such as PiHole with it being on an internal IP address.
I was hoping I could set DNS to be 192.168.0.2 on Pi4 so that traffic would hit PiHole and do the necessary. While traffic seems to go to PiHole, sites don't load as I'd expect but see responses from devices in PiHole.
I hope I'm making sense. I have devices normally going to PiHole directly. Where a device has Pi4 set as gateway, the local DNS doesn't work. So when gateway is set as that of Pi4, I'd like for Pi4 to potentially be the DNS as well.
For that case then, I should see logs in PiHole that show DNS queries coming via Pi4 if it is the gateway but I don't.
Apologies if none of this is so clear. My setup is a little unique maybe. I use PiHole to block ads, its intended purpose and with DNSmasq to direct queries to ControlD SmartDNS for certain domains while rest will go DoH to Cloudflare. So I want content from a certain country on Apple TV and want for DNS to fallback to PiHole where the VPN is disconnected.
submitted by /u/phoenix_73
[link] [comments]
More...
Running Wireguard on Ubuntu Server 22.04 with Pi4
The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.
Post Reply
1 post
• Page 1 of 1
- /RaspberryPi
- Corporate
- Posts: 2449
- Joined: Wed Jun 05, 2019 1:29 am
Post Reply
1 post
• Page 1 of 1
Return to “Raspberry Pi Forum”
Jump to
- From Retro to Current
- ↳ Classified Ads
- ↳ Community
- ↳ Marketplace
- ↳ Jobs
- ↳ Dating
- ↳ Housing
- Nintendo Forums
- ↳ SNES Classic Edition Forum
- ↳ Switch Forum
- ↳ NES Classic Edition Forum
- ↳ Wii U Forum
- ↳ 3DS Forum
- ↳ Wii Forum
- ↳ DS Forum
- ↳ Gamecube Forum
- ↳ Game Boy Advance Forum
- ↳ Game Boy Color Forum
- ↳ Nintendo 64 Forum
- ↳ Super Nintendo Forum
- ↳ Game Boy Forum
- ↳ Nintendo Entertainment System Forum
- ↳ Game & Watch Forum
- SONY Forums
- ↳ PlayStation 5 Forum
- ↳ PlayStation Classic Forum
- ↳ PlayStation 4 Forum
- ↳ PlayStation Vita Forum
- ↳ PlayStation 3 Forum
- ↳ PlayStation Portable Forum
- ↳ PlayStation 2 Forum
- ↳ PlayStation 1 Forum
- Microsoft Forums
- ↳ Xbox Series Forum
- ↳ Xbox One Forum
- ↳ Xbox 360 Forum
- ↳ Xbox Forum
- SEGA Forums
- ↳ Genesis Mini Forum
- ↳ Dreamcast Forums
- ↳ Sega Saturn Forum
- ↳ Genesis Forum
- ↳ Master System Forum
- Other System Forums
- ↳ General Discussion
- ↳ Other Console Forum
- ↳ Arcade Cabinet Forum
- ↳ Windows, Mac, & Linux Forum
- ↳ Atomiswave Forums
- ↳ WWW.ATOMISWAVE.NET
- ↳ General Discussion
- ↳ Tech Support
- ↳ System Setups
- ↳ Modified Moderboards
- ↳ Home Consoles & Systems
- ↳ Arcade & Candy Cabinets
- ↳ Marketplace
- ↳ Video Game Marketplace
- ↳ Game Discussion
- ↳ Video Game Catalogs
- ↳ FAQs, Reviews, & Guides
- ↳ Assorted Discussion
- ↳ Custom Ideas
- ↳ Open Discussion
- ↳ SNK Neo Geo Forums
- ↳ General Discussion
- ↳ Buying & Selling
- ↳ Tech Support
- ↳ Systems
- ↳ Neo Geo Arcade Stick Pro Forum
- ↳ Neo Geo Mini Forum
- ↳ Neo Geo X Forum
- ↳ Neo Geo CD Forum
- ↳ Neo Geo MVS Forum
- ↳ TurboGrafx-16 Forums
- ↳ General Discussion
- ↳ Marketplace
- ↳ Magazine Scans
- ↳ Games
- ↳ TurboChip/HuCard Forum
- ↳ CD-ROM²/Super CD-ROM²/Arcade CD-ROM² Forum
- ↳ Systems
- ↳ TurboGrafx-16 Mini Forum
- ↳ TurboDuo Forum
- ↳ TurboExpress/PC Engine GT/LT Forum
- ↳ SuperGrafx Forum
- ↳ TurboGrafx-CD/PC Engine CD Forum
- ↳ TurboGrafx-16/PC Engine Core Forum
- ↳ Raspberry Pi Forum
- ↳ Atari Forum