Access to a Raspberry behind a 4G router through a VPN tunnel
Posted: Thu Aug 23, 2018 9:23 pm
Hi,
I would like to have some help with my configuration.
I tried to show it here after:
I own a Raspberry with a web server (for domotics). This Raspberry is located in a house where internet access is provided using a 4G router (mobile phone 4G provider which do not provide a public IP).
Then in order to access to the Rapsberry, I installed an OpenVPN server on a remote area which has a public fixed IP. The Raspberry has an OpenVPN client configured to connect to the server.
On the picture:
Freebox (ADSL router)
- Has a fixed WAN IP WAN. Let's call it "BOX_WAN_IP"
- Has a LAN IP: 192.168.1.254
- Has an OpenVPN configured in bridge
- Has port redirection of the 80 port to the 80 port of 192.168.1.101 (tap0 IP of the Raspberry) . I represented it with the orange circle.
Raspberry:
- Behing a 4G router without public IP
- OpenVPN client connected to the Freebox VPN server
- Web server configured on port 80
VPN tunnel:
Seems to be working well.
On the server I see 1 client connected;
When I use a computer located on the LAN network of the freebox, I can access to the Raspberry web server:
- using http://192.168.1.101 which show the VPN tunnel is OK
- using http://BOX_WAN_IP which let me think port redirection is also OK
What does not work:
I would like to use a mobile (without openVPN client) anywhere (for example connected to internet with 4G) and to access to the Rapsberry web server. I though that with my configuration typing http://BOX_WAN_IP would work (link in green in my drawing) but it does not.
Do know what is wrong with my configuration ?
I would like to have some help with my configuration.
I tried to show it here after:
I own a Raspberry with a web server (for domotics). This Raspberry is located in a house where internet access is provided using a 4G router (mobile phone 4G provider which do not provide a public IP).
Then in order to access to the Rapsberry, I installed an OpenVPN server on a remote area which has a public fixed IP. The Raspberry has an OpenVPN client configured to connect to the server.
On the picture:
Freebox (ADSL router)
- Has a fixed WAN IP WAN. Let's call it "BOX_WAN_IP"
- Has a LAN IP: 192.168.1.254
- Has an OpenVPN configured in bridge
- Has port redirection of the 80 port to the 80 port of 192.168.1.101 (tap0 IP of the Raspberry) . I represented it with the orange circle.
Raspberry:
- Behing a 4G router without public IP
- OpenVPN client connected to the Freebox VPN server
- Web server configured on port 80
VPN tunnel:
Seems to be working well.
On the server I see 1 client connected;
When I use a computer located on the LAN network of the freebox, I can access to the Raspberry web server:
- using http://192.168.1.101 which show the VPN tunnel is OK
- using http://BOX_WAN_IP which let me think port redirection is also OK
What does not work:
I would like to use a mobile (without openVPN client) anywhere (for example connected to internet with 4G) and to access to the Rapsberry web server. I though that with my configuration typing http://BOX_WAN_IP would work (link in green in my drawing) but it does not.
Do know what is wrong with my configuration ?