Hi guys,
I'm currently trying to use my RPi as an OpenVPN hotspot. The RPi is connected to my Access Server via Ethernet, and I want to be able to use the Access Servers IP to load from a webserver, that's connected to the RPi by wifi
So, on the Access Server I was setting up a DMZ, and am already at a point where I can load a webserver that is ON the RPi itself, but I can't figure out how to route the requests to a client that's connected on wlan0.
I've seen and tried multiple and multiple tutorials and tips, a lot of them probably heavily outdated. Sadly my network-skills aren't that good to get this going without help.
Is there anyone willing to help me through this?
Thanks in advance
Use RPi as OpenVPN hotspot
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
-
- OpenVPN Power User
- Posts: 156
- Joined: Thu Mar 28, 2013 8:31 am
Re: Use RPi as OpenVPN hotspot
Are you running Ubuntu 20.04 64-bit on the raspberry pi?
Have you installed and configured hostapd?
Are you using ISC's DHCP server or dnsmasq to be your DHCP server?
Have you installed and configured hostapd?
Are you using ISC's DHCP server or dnsmasq to be your DHCP server?
-
- OpenVpn Newbie
- Posts: 5
- Joined: Thu Aug 05, 2021 8:38 am
Re: Use RPi as OpenVPN hotspot
I'm running the current Raspbian (or Raspberry OS or what it's called now), a fresh install. My wifi client is connected with a static IP, I have set up hotsapd for that.
So, on the RPi eth0 now has 192.168.1.160 (which is connected to my router), wifi0 has 192.168.4.1.
My wifi client has 192.168.4.20
Now when I would install openvpn again, I would get the tun0 interface, and would like to route traffic that comes in through tun0, to my wifi devices. If possible, even to different devices distinguished by the incoming port.
E.g. let's say my Access Server has 1.2.3.4 for an external IP, I want to be able to load http://1.2.3.4:33333 to load from the webservice on wifi client
#1, and http://1.2.3.4:44444 to load from the webservice on wifi client #2
So, on the RPi eth0 now has 192.168.1.160 (which is connected to my router), wifi0 has 192.168.4.1.
My wifi client has 192.168.4.20
Now when I would install openvpn again, I would get the tun0 interface, and would like to route traffic that comes in through tun0, to my wifi devices. If possible, even to different devices distinguished by the incoming port.
E.g. let's say my Access Server has 1.2.3.4 for an external IP, I want to be able to load http://1.2.3.4:33333 to load from the webservice on wifi client
#1, and http://1.2.3.4:44444 to load from the webservice on wifi client #2