Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 


89 posts

Master Geek


  # 2350212 8-Nov-2019 13:45
Send private message quote this post

muppet:

 

Well if that's the case and everything is routing via the router correctly, it doesn't sound like what I said applies.

 

Can you ping your pihole when your VPN is connected?

 

 

I cant seem to ping anything on my Home LAN (But I can ping the local router)


2181 posts

Uber Geek

Trusted

  # 2350213 8-Nov-2019 13:48
Send private message quote this post

Are you sure your Android is being pushed a route?

 

It sounds like you might be getting a VPN connected, but not doing anything to route traffic over it.

 

With openVPN you can either "push" routes down the client, or configure routes on the client itself.

 

 

 

When the OpenVPN client is connected, can you browse to ipchicken.com to find your current public IP? Is is the IP of your home ISP, or still the IP of your Phone's wifi/mobile connection?

 

 

 

It still sounds like a simple routing problem :)

 

The router has a route back to the VPN range, yea??


 
 
 
 




89 posts

Master Geek


  # 2350227 8-Nov-2019 13:56
Send private message quote this post

muppet:

 

Are you sure your Android is being pushed a route?

 

It sounds like you might be getting a VPN connected, but not doing anything to route traffic over it.

 

With openVPN you can either "push" routes down the client, or configure routes on the client itself.

 

 

 

When the OpenVPN client is connected, can you browse to ipchicken.com to find your current public IP? Is is the IP of your home ISP, or still the IP of your Phone's wifi/mobile connection?

 

 

 

It still sounds like a simple routing problem :)

 

The router has a route back to the VPN range, yea??

 

 

 

 

If I bypass my local dns and set it to google (8.8.8.8) Both android and windows get internet and show my home IP

 

However if I set DNS to my PiHole, it appears to be timing out on my andriod (Cant resolve IP is my guess) 
and using my local DNS Server (local to client) on my windows PC 
When I do a tracert it shows the hostname of the local router, not my home router
However when I do a dns lookup using a hostname from my home lan, it resolves it fine, so it appears DNS can be routed?






89 posts

Master Geek


  # 2350229 8-Nov-2019 14:03
Send private message quote this post

muppet:

 

Are you sure your Android is being pushed a route?

 

It sounds like you might be getting a VPN connected, but not doing anything to route traffic over it.

 

With openVPN you can either "push" routes down the client, or configure routes on the client itself.

 

 

 

When the OpenVPN client is connected, can you browse to ipchicken.com to find your current public IP? Is is the IP of your home ISP, or still the IP of your Phone's wifi/mobile connection?

 

 

 

It still sounds like a simple routing problem :)

 

The router has a route back to the VPN range, yea??

 



Ok i think it is a routing issue for just my DNS?
I tried to do other queries and they fail, for some reason the one device i tried to query on my LAN happened to work? (caching?)



2412 posts

Uber Geek

Lifetime subscriber

  # 2350231 8-Nov-2019 14:08
Send private message quote this post

How does /23 make the OpenVPN server and tunnel networks different??





Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+. Apple TV 4, Apple TV 4K, iPad Air 1, iPhone 6s, VodaTV Gen 2. If it doesn't move then its data cabled.




89 posts

Master Geek


  # 2350232 8-Nov-2019 14:10
Send private message quote this post

Spyware:

 

How does /23 make the OpenVPN server and tunnel networks different??

 



Sorry i dont understand what your asking?


2412 posts

Uber Geek

Lifetime subscriber

  # 2350234 8-Nov-2019 14:12
Send private message quote this post

The two networks are meant to be different networks.





Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+. Apple TV 4, Apple TV 4K, iPad Air 1, iPhone 6s, VodaTV Gen 2. If it doesn't move then its data cabled.


 
 
 
 




89 posts

Master Geek


  # 2350238 8-Nov-2019 14:16
Send private message quote this post

Spyware:

 

The two networks are meant to be different networks.

 



I have a /23 to allow for IP forwarding from the TUN interface on the VPN server to my LAN
So the end user gets an IP that is passed though to my firewall where I can do IP management on it
Rather than using the NAT on the VPN server and showing all traffic as coming form the servers LAN interface

It works for everything else, just not DNS as far as I can tell


2412 posts

Uber Geek

Lifetime subscriber

  # 2350240 8-Nov-2019 14:19
Send private message quote this post

Route would be invalid then.





Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+. Apple TV 4, Apple TV 4K, iPad Air 1, iPhone 6s, VodaTV Gen 2. If it doesn't move then its data cabled.




89 posts

Master Geek


  # 2350242 8-Nov-2019 14:22
Send private message quote this post

Spyware:

 

Route would be invalid then.

 



Not to come across as rude, but have you read the rest of the thread?

I can get internet when on the VPN showing my homes public IP (using google dns)
I can access internal services on other vlans though my VLAN routing I have on my router

The only thing that doesn't appear to be working is routing DNS queries over the VPN
So either my DNS isnt being sent down the VPN
or theres a routing issue somewhere in my setup (Which I can't find as I have open routing for DNS traffic)

I dont see how using a /23 will break "Only" DNS requests


2412 posts

Uber Geek

Lifetime subscriber

  # 2350313 8-Nov-2019 17:49
Send private message quote this post

pomtom44:

 

Rather than using the NAT on the VPN server and showing all traffic as coming form the servers LAN interface

It works for everything else, just not DNS as far as I can tell

 

 

And why are you NATing traffic between private networks anyway?? It makes no sense.





Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+. Apple TV 4, Apple TV 4K, iPad Air 1, iPhone 6s, VodaTV Gen 2. If it doesn't move then its data cabled.


2412 posts

Uber Geek

Lifetime subscriber

  # 2350435 8-Nov-2019 19:19
Send private message quote this post

No need to masquerade traffic on server at all. You have the route (10.10.101.0/24 gw 10.10.100.2) to the tunnel network on your router, routes to your private networks in client config.

 

# Allow traffic initiated from VPN tunnel to access everywhere

 

iptables -I FORWARD -i tun0 -o eth0 -s 10.10.101.0/24 -m conntrack --ctstate NEW -j ACCEPT

 

# Allow established traffic to pass back and forth

 

iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

 

 

 

And it all works perfectly, routed end to end.





Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+. Apple TV 4, Apple TV 4K, iPad Air 1, iPhone 6s, VodaTV Gen 2. If it doesn't move then its data cabled.




89 posts

Master Geek


  # 2350483 8-Nov-2019 22:07
Send private message quote this post

Spyware:

 

No need to masquerade traffic on server at all. You have the route (10.10.101.0/24 gw 10.10.100.2) to the tunnel network on your router, routes to your private networks in client config.

 

# Allow traffic initiated from VPN tunnel to access everywhere

 

iptables -I FORWARD -i tun0 -o eth0 -s 10.10.101.0/24 -m conntrack --ctstate NEW -j ACCEPT

 

# Allow established traffic to pass back and forth

 

iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

 

 

 

And it all works perfectly, routed end to end.

 

 

that is what i have setup.....

 

my routing works fine for everything else. just not to my internal DNS

 

i can access a internal web server fine via its internal IP

 

and i can get internet if i set the VPN clients DNS to google 8.8.8.8

 

i just cant get my internal DNS to get queries from my VPN client.


1 | 2 
View this topic in a long page with up to 500 replies per page Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30


JBL launches headphones range designed for gaming
Posted 13-Jan-2020 09:59


Withings introduces ScanWatch wearable combining ECG and sleep apnea detection
Posted 9-Jan-2020 18:34


NZ Police releases public app
Posted 8-Jan-2020 11:43


Suunto 7 combine sports and smart features on new smartwatch generation
Posted 7-Jan-2020 16:06


Intel brings innovation with technology spanning the cloud, network, edge and PC
Posted 7-Jan-2020 15:54


AMD announces high performance desktop and ultrathin laptop processors
Posted 7-Jan-2020 15:42


AMD unveils four new desktop and mobile GPUs including AMD Radeon RX 5600
Posted 7-Jan-2020 15:32


Consolidation in video streaming market with Spark selling Lightbox to Sky
Posted 19-Dec-2019 09:09


Intel introduces cryogenic control chip to enable quantum computers
Posted 10-Dec-2019 21:32


Vodafone 5G service live in four cities
Posted 10-Dec-2019 08:30


Samsung Galaxy Fold now available in New Zealand
Posted 6-Dec-2019 00:01


NZ company oDocs awarded US$ 100,000 Dubai World Expo grant
Posted 5-Dec-2019 16:00


New Zealand Rugby Selects AWS-Powered Analytics for Deeper Game Insights
Posted 5-Dec-2019 11:33



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.