Jump to content

Raspberry Pi 3 OpenVPN routing

Sir Asvald

I've set up OpenVPN on my RPi3 and It's connected directly to my router. It's BTHub6 and I want be able to connect from LAN side of the BTHub6 which is 192.168.1.x and to my pfsense. Which has a wan IP of 192.168.1.82. The LAN which is used on the Pfsense is 172.16.105.0. What I want is when I VPN into my RPi3 I want be able to access the 172.16.105.x network when I'm connected to through my VPN

 

This is the network diagram:

 

47325b4f95781e8cc31fbc77cb927c60.png

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 16 GB (2 x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitors: 24" Acer S240HLBID + 24" Samsung  | OS: Win 10 Pro

 

Audio: Behringer Q802USB Xenyx 8 Input Mixer |  U-PHORIA UMC204HD | Behringer XM8500 Dynamic Cardioid Vocal Microphone | Sound Blaster Audigy Fx PCI-E card.

 

Home Lab:  Lenovo ThinkCenter M82 ESXi 6.7 | Lenovo M93 Tiny Exchange 2019 | TP-LINK TL-SG1024D 24-Port Gigabit | Cisco ASA 5506 firewall  | Cisco Catalyst 3750 Gigabit Switch | Cisco 2960C-LL | HP MicroServer G8 NAS | Custom built SCCM Server.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

I'm not sure i understand 100% from where you are connecting.

I'm guessing you want to connect from the internet to your Pi and then be able to connect to the 172.x.x.x network from that pi?

 

IF that is the case, it would make more sense to make the pfSense box the server for your VPN and connect directly to it. 

Like in this example:(didn't use the guide myself) https://www.sparklabs.com/support/kb/article/setting-up-an-openvpn-server-with-pfsense-and-viscosity/

 

Or moving the PI behind the pfSense box would make things simpler, too.  

 

OR do you want to connect from your 172.x.x.x Network to the PI to access the 192.168.x.x network? to change router settings for example?

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×