NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm trying a vpn setup over openstreetmap server that i setup following https://www.linuxbabe.com/linux-server/osm-openstreetmap-tile-server-ubuntu-22-04

My internal IP is 192.168.0.190, vpn ip is 10.8.0.6(VPN tunnel). During setup, I try to change the renderd and apache2 host from localhost to 10.8.0.6, but it only render correctly when i use 192.168.0.190, confirmed with local leaflet(hosted on 190), which is using http://192.168.0.190/osm/{z}/{x}/{y}.png, but it doesnt work on http://10.8.0.6/osm/{z}/{x}/{y}.png, I've changed /etc/renderd.conf and /etc/apache2/sites-available/tileserver_site.conf's host to 10.8.0.6

Is there any place i missed, so renderd could serve from 10.8.0.6? (VPN tunnel).

asked 19 Feb '23, 03:24

skymyth's gravatar image

skymyth
11112
accept rate: 0%


Is there any place i missed, so renderd could serve from 10.8.0.6?

No. renderd just makes tiles available, and apache just allows people to access to access them by serving on whatever local IPs you choose to let it. Beyond that, whatever internet plumbing you have (in your case a VPN) allows traffic from (somewhere) access that (or not).

During setup, I try to change the renderd and apache2 host from localhost to 10.8.0.6

That was probably a mistake. Generally speaking, sets of instructions like https://www.linuxbabe.com/linux-server/osm-openstreetmap-tile-server-ubuntu-22-04 and https://switch2osm.org/serving-tiles/ will work if you follow them, and don't try a bit of "freestyle jazz" in the middle.

If you were following a recipe and baking a cake, and decided "but I really like sausages so let's add some of those", the result is unlikely to be what you intend.

permanent link

answered 21 Feb '23, 14:59

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×440

question asked: 19 Feb '23, 03:24

question was seen: 922 times

last updated: 21 Feb '23, 14:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum