Jump to content

Access to LAN webserver from VPN (installed on gl-inet openwrt router)

Nord1ing
Go to solution Solved by sk8rs_dad,

All your traffic is probably routed through the VPN, including DNS resolution. You may have to tweak routing tables.   This guide looks like a good place to start.

 

https://www.wireguard.com/netns/

How can I access via https (port 443) local server on LAN from a pc connect to lan via vpn?

  • Without VPN, access work fine via URL
  • With zerotier access work fine
  • with VPN (wireguard, server is configured on gl-inet router), url redirect to router web gui instead of lan webserver.
    • in dns server on LAN side webserver url is configured to LAN ip (192.168.12.2)
    • access work fine via lan ip instead of url

What additional configuration should be made?

PC Specs - AMD Ryzen 7 3700X - Asrock AB350 ITX - 64GB DDR4-3600MHz - Geforce GTX 1080 - Samsung 960Pro - Monsterlabo's "The First" - Corsair SF450

Link to comment
Share on other sites

Link to post
Share on other sites

All your traffic is probably routed through the VPN, including DNS resolution. You may have to tweak routing tables.   This guide looks like a good place to start.

 

https://www.wireguard.com/netns/

Death before dishonour! Nothing before coffee!

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks, for some reasons default dns was different in configuration file from router ip. After putting internal ip (10.0.0.1), everything is fine.

PC Specs - AMD Ryzen 7 3700X - Asrock AB350 ITX - 64GB DDR4-3600MHz - Geforce GTX 1080 - Samsung 960Pro - Monsterlabo's "The First" - Corsair SF450

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×