Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Routing VPN Connections Without Multiple VPN Servers
« previous
next »
Print
Pages: [
1
]
Author
Topic: Routing VPN Connections Without Multiple VPN Servers (Read 729 times)
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Routing VPN Connections Without Multiple VPN Servers
«
on:
August 11, 2024, 06:46:03 pm »
Hi! I'm looking for a way to avoid creating 30 VPN servers just for routing traffic to other VPN clients connected to Proton servers. Managing such a large number of connections is not ideal for resources or security.
I need to route connections from private subnets to these VPN gateways. One idea I had is using HAProxy.
Would set up proxy profiles in the clients' browsers and use a specific port to route only HTTP and HTTPS traffic to the VPN gateway connected to the Proton server.
However, I'm not sure how to proceed and would appreciate any help, tutorials, or advice.
Thanks for any feedback!
«
Last Edit: August 11, 2024, 06:52:34 pm by kozistan
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 572
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #1 on:
August 11, 2024, 07:47:08 pm »
What do you mean by 30 VPN servers? 30 firewalls in different locations? That's not an unusual size for a hub and spoke corporate topology - 30 small offices connected to the HQ.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #2 on:
August 11, 2024, 08:42:10 pm »
No, I have 30 Proton clients connected to different geolocations, using the standard of ProtonVPN app.
I need to route clients from the private network to these Proton connections.
Currently, I have 30 different OVPN servers, and when clients connect, I NAT their traffic and use rules to direct it to the specified gateway.
However, I’m looking for a more sophisticated solution using a proxy. Squid probably isn't suitable as it’s limited to one port, and I need multiple ports.
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 572
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #3 on:
August 11, 2024, 08:58:19 pm »
What's a Proton Client? Sorry, not my area of expertise. I have absolutely no idea what you might be doing there.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #4 on:
August 11, 2024, 10:00:25 pm »
A ProtonVPN client would be the software used to connect to ProtonVPN's secure servers, which helps users encrypt their internet traffic, protect their privacy, and access content that might be restricted in their region.
As you can see in the screenshot, I have connections to several countries as OVPN clients, then I have the equivalent of OVPN servers, which I route through the gateways of these connections. Everything works, but I want to do it without those servers and route it differently than I have now. For example, through a proxy.
The reason is to filter user activity.
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 572
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #5 on:
August 11, 2024, 10:17:42 pm »
I agree with the escaping your region part. Other than that in my opinion so called VPN providers take away your money
and
your privacy. I would not touch a product like this with a ten foot pole.
A VPN is when I control all ends of the connection. Hence, virtual
private
network.
You do you. Good luck with your use case.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #6 on:
August 11, 2024, 10:23:50 pm »
I think you misunderstood me; this system is already working for me, but within OPNsense, I need to route 80/443 traffic to these gateways through a proxy. Can you advise me on how to do this differently than using VPN servers where I route the traffic to these gateways?"
Logged
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #7 on:
August 11, 2024, 11:16:19 pm »
First of all, I'm not running away anywhere, and secondly, it's for the practical reasons of my client. The only thing I care about is that I want to solve this issue differently than in the robust way I have it set up now. That's why I'm asking for another possible solution using a proxy that will be routed to the gateways of these VPN connections.
Logged
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #8 on:
August 12, 2024, 11:29:49 am »
so now Im kind of good way with the reverse proxy.
I've set two real servers to IP of the Proton client connection, one for 80 and second for 443 port.
I've add both Real servers into the backed config and as frontend I set listen addresses to 0.0.0.0:8081.
With this config i can see some activity on backend HAP stats once I've set the proxy on user Firefox client to port 8081, but getting "502 Bad Gateway"
Would appreciate for any advice here
Logged
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #9 on:
August 12, 2024, 06:16:31 pm »
So it's probably not the right approach.
HAProxy is a reverse proxy, and I'm having issues with the CONNECT method based on the Wireshark output.
I tried Squid on OPNsense, but it doesn't forward to an interface or IP. I'll try to separate the tasks and install a dedicated proxy with forwarding on Debian.
Could someone confirm?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #10 on:
August 12, 2024, 10:48:12 pm »
to be honest your question is very unclear to me.
I think I understand you have OPN as a router and firewall and also acts as multiple vpn clients to different endpoints of a commercial provider. Then clients are routed from OPN with some sort of policy to go out via these different vpn tunnels. A bit strange but ok.
After that what you want to do and how is very unclear.
Logged
kozistan
Newbie
Posts: 47
Karma: 2
Have you tried turning it off and on again?
Re: Routing VPN Connections Without Multiple VPN Servers
«
Reply #11 on:
August 12, 2024, 11:10:17 pm »
Got it, everyone. After re-reading my message, I realized it needs Enigma to decode
It's simple in the end: I need to forward HTTP/HTTPS traffic to multiple VPN gateways.
There's no specific filter based on redirection to the correct gateway, and that's the challenge. So, I thought of using a proxy to forward traffic to the gateway interfaces. Users could then choose a browser profile with the necessary proxy settings, allowing them to use the Proton connection configured on the OPNsense firewall.
I just installed Squid on a Debian KVM with forward option, and it works as I need it to, so the challenge is resolved. After a few days of experimenting, I'm just curious if this could be done directly on OPNsense.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Routing VPN Connections Without Multiple VPN Servers