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 |
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).
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. answered 21 Feb '23, 14:59 SomeoneElse ♦ |