Jump to content

Best way to create a VPN Server


Recommended Posts

Hello to all,

as I wrote, I need to create a VPN server service to connect clients to my unraid server only to use my internet connection but not my internal lan.

I tried to find in "Apps" section, a sort of OpenVPN Server to install in a dedicated docker but what I understood this app was removed. Everybody are using Wireguard that is included in the Unraid OS. Can I use Wireguard also for my purpose?

In detail I need to leave my clients to connect to my server only to use my internet connection just to give them possibility to navigate in internet using my public IP address and nothing else (not possible to browse in my internal network).

Hope my description is quite clear, in any case any your suggestions are more than welcome!

Many thanks in advance!

Jacobbe73

 

Edited by Jacobbe73
mistake
Link to comment

It is quite easy to make sure they can only get to your server, or specific IP addresses inside your LAN.

 

what you do not mention is what control you want to have over what on your server can be accessed.   For example the simplest solution might allow access to the Unraid GUI - would you be happy with that?

Link to comment
3 hours ago, Mainfrezzer said:

Thats the total opposite^^

Whats sought is Internet only - No Lan access.

I do not understand - are you saying that you want users on your local LAN to access the internet ?   As I said it is easy to restrict incoming connections FROM the internet to what you want them to access.

Link to comment
6 minutes ago, itimpi said:

I do not understand - are you saying that you want users on your local LAN to access the internet ?   As I said it is easy to restrict incoming connections FROM the internet to what you want them to access.

Na not me, the OP.

OP wants to provide a VPN connection for someone outside their lan to use their server as exitnode but does not want the clients to be able to access the lan network the wireguard server is running on.

Edited by Mainfrezzer
Link to comment
1 minute ago, Mainfrezzer said:

Na not me, the OP.

OP wants to provide a VPN connections for someone outside their lan to use their server as exitnode but does not want the clients to access their lan network.

 

As I said it is easy to restrict incoming connections to whatever you want.    There was no mention of what services those users should be able to access as restricting those may have implications.

Link to comment
7 minutes ago, itimpi said:

 

As I said it is easy to restrict incoming connections to whatever you want.    There was no mention of what services those users should be able to access as restricting those may have implications.


Still not on it.

The client that connects to the unraid wireguard server shall have access to the whole of the internet, wherever they are in the world. Everything, except for the network the wireguard server is running on, i.e bogus networks.


Pratically be a tor exit node without the ability to reach the local network of the node.


theres a guide for that but im not sure how well that translate to the unraid wireguard variant

https://gist.github.com/qdm12/4e0e4f9d1a34db9cf63ebb0997827d0d

Link to comment

First of all many thanks to everybody for your quickly reply!

I know my request could be a little strange.... 
I installed Unraid server in my home and I am very happy for this. I have some internal devices that are connected to my Unraid server through internal lan (192.168...) and all works well. The Unraid server and all my internal devices are using internet trought my domestic router and in internet network they use public (and dinamic) Ip address.

What I need to di is connect one external device (coming from internet) to my Unraid server (using VPN connection and port forwarding rules) to exit again in internet using my public IP adress. To do this, I also need to avoid that this external device can browse in my internal network and see my share and device connected.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...