Hi
I have been trying to setup things up so I can access a web server running on my home network from external networks and also trying to figure out what is happening to the traffic under different circumstances.
I was wondering someone may be able to help me interpret/debug what I am seeing.
Network Setup:
==============
I have a Netgear Nighthawk dd-wrt router on which I have configured NAT such that I can access the ipaddress/port my server is running on.
I have a VPN client running on the router and use an external VPN supplier to encrypt traffic,. The dns server on my router is configured as the ip address of my pihole dns server which in turn is configured to use my vpn dns servers. So outgoing traffic goes via the VPN server before being forwarded to my ISP. For the puposes of testing connections I have also enabled WAN ping on my router.
Externally I have registered a DN whose AAA record points to the WAN ip address of my router.
(As a side note: I have setup letsencrypt to provide CA signed certificate to allow use of https)
With this setup I see the following:
From a laptop within my local network:
--------------------------------------------------------------------------------
I can ping the WAN ip address of my router.
I can accesss my webserver using my DN
From a laptop on neighbour1s network who uses the same ISP as me:
--------------------------------------------------------------------------------
I can ping the WAN ip address of my router and when I do (at least if my interpretation of tcpdump packets is correct - which it may well not be) I see icmp traffic come in on my WAN, and going out of
both my routers vpn tunnel interface and my routers WAN interface. I do receive replies.
I can access my webserver using my DNort from a browser
From a laptop on neighbour2s network who uses a different ISP (vodaphone):
-----------------------------------------------------------------------------
When VPN is enabled:
I cannot ping the WAN ip address of my router. I can see icmp packets received on the WAN interface of my router. I see also (I think - above tcpdump caveat) the icmp reply packets go out on the vpn tunnel interface. I see no icmp packet replies go out on the routers WAN interface. I receive no replies back at the laptop.
I cannot access my webserver using my DN/port from a browser.
If I disable the VPN:
I can ping the WAN address of my router. I see icmp packets received at my WAN and replies transmitted through my WAN interface. (vpn tunnel itf does not exist!)
I can acccess my web server using my DN/port from a browser.
From a phone using 02 network with VPN enabled and disabled:
--------------------------------------------------------------------------------
When I attempt to accesss my webserver using DN/port from a browser I get a message:
"This site cant be reached
refused to connect
ERR_CONNECTION_REFUSED"
Has anyone got a possible explanation for these observations ?
Does anyone know how I might be able to chenage things so I can access my web server from anywhere ?
I have been trying to setup things up so I can access a web server running on my home network from external networks and also trying to figure out what is happening to the traffic under different circumstances.
I was wondering someone may be able to help me interpret/debug what I am seeing.
Network Setup:
==============
I have a Netgear Nighthawk dd-wrt router on which I have configured NAT such that I can access the ipaddress/port my server is running on.
I have a VPN client running on the router and use an external VPN supplier to encrypt traffic,. The dns server on my router is configured as the ip address of my pihole dns server which in turn is configured to use my vpn dns servers. So outgoing traffic goes via the VPN server before being forwarded to my ISP. For the puposes of testing connections I have also enabled WAN ping on my router.
Externally I have registered a DN whose AAA record points to the WAN ip address of my router.
(As a side note: I have setup letsencrypt to provide CA signed certificate to allow use of https)
With this setup I see the following:
From a laptop within my local network:
--------------------------------------------------------------------------------
I can ping the WAN ip address of my router.
I can accesss my webserver using my DN
From a laptop on neighbour1s network who uses the same ISP as me:
--------------------------------------------------------------------------------
I can ping the WAN ip address of my router and when I do (at least if my interpretation of tcpdump packets is correct - which it may well not be) I see icmp traffic come in on my WAN, and going out of
both my routers vpn tunnel interface and my routers WAN interface. I do receive replies.
I can access my webserver using my DNort from a browser
From a laptop on neighbour2s network who uses a different ISP (vodaphone):
-----------------------------------------------------------------------------
When VPN is enabled:
I cannot ping the WAN ip address of my router. I can see icmp packets received on the WAN interface of my router. I see also (I think - above tcpdump caveat) the icmp reply packets go out on the vpn tunnel interface. I see no icmp packet replies go out on the routers WAN interface. I receive no replies back at the laptop.
I cannot access my webserver using my DN/port from a browser.
If I disable the VPN:
I can ping the WAN address of my router. I see icmp packets received at my WAN and replies transmitted through my WAN interface. (vpn tunnel itf does not exist!)
I can acccess my web server using my DN/port from a browser.
From a phone using 02 network with VPN enabled and disabled:
--------------------------------------------------------------------------------
When I attempt to accesss my webserver using DN/port from a browser I get a message:
"This site cant be reached
refused to connect
ERR_CONNECTION_REFUSED"
Has anyone got a possible explanation for these observations ?
Does anyone know how I might be able to chenage things so I can access my web server from anywhere ?