losmapito
Posts: 2
Joined: Sun Sep 28, 2014 1:34 am

RaspberryPi - OpenVPN + apache2

Sun Sep 28, 2014 8:34 pm

Hi all,

I've got a raspberry pi running raspbian and i've setup and configured openVPN so i can use my home network when away from home (holiday/work/out in town etc) , the VPN part is working fine - installed apache to be able to work on little test projects, and it's setup and works fine..locally i can access htpp://192.168.0.9 at home or when connected through my VPN

HOWEVER i cant access the web server using frogs.zapto.org (the dynamic dns hostname linked to my dynamic home ip) --- the VPN works using this host name, but apache doesn't

I've checked and there doesn't seem to be any FW rules that would be stopping this? Only rules I have are to do with VPN and masquerading

Checked the config and it all looks fine (and as i say it works locla using 192.168.0.9!!)

I logged into my router and checked, and the port is forwarded but still NOTHING

ssh/VPN both work using the remote host/IP but apache wont!!

ANY suggestions greatly appreciated

thanks

map

IPGuru
Posts: 3
Joined: Mon Sep 29, 2014 11:56 am

Re: RaspberryPi - OpenVPN + apache2

Mon Sep 29, 2014 12:20 pm

Performing an nmap search on your URL shows all ports closed so I asume your PI is currently off line.

if you can access the web server internally they it is either incorrect port forwarding on your router or possibly the permissions incorrectly set within Apache.

Webmin can be quite useful configuring these settings if you have it installed.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: RaspberryPi - OpenVPN + apache2

Mon Sep 29, 2014 1:14 pm

1 nmap to see if the port is really open,
2 try a diffrent port. (some cheap routers won't forward 80)
3 check Apache is not ignoring that domain due to virtual sites.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RaspberryPi - OpenVPN + apache2

Mon Sep 29, 2014 7:21 pm

Are you sure 151.224.185.211 is still your public IP address?

Try this python3 program

Code: Select all

#!/usr/bin/python3

from urllib.request import urlopen
import json
ip = urlopen('http://httpbin.org/ip').read()
ip = ip.decode('utf-8')
ip = json.loads(ip)

print(ip['origin'])
import socket
name, alias, addresslist = socket.gethostbyaddr(ip['origin'])
print (name)
Have you got all of the ports forwarded on your Sky Broadband router?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

losmapito
Posts: 2
Joined: Sun Sep 28, 2014 1:34 am

Re: RaspberryPi - OpenVPN + apache2

Wed Oct 01, 2014 12:18 am

ARGH that sucks - i'm not at home and wont be for 6-12months
I think my dad must have turned it off when he left and locked up the house
:(

not 100% sure what the IP is but I had the no_ip script to update my IP if it changed

so all ports are 100% closed? I had hoped to be able to SSH into it and sort thigs out

(I haven't got internet access in my apartment atm)

Return to “Networking and servers”