Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
OpenVPN + Alias problem
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN + Alias problem (Read 412 times)
JBK89
Newbie
Posts: 1
Karma: 0
OpenVPN + Alias problem
«
on:
March 06, 2024, 10:02:32 pm »
Hi! I am pretty new to OPNsense, i have a setup where i have a OpenVPN and i made it so it work with Alias so i can put in the IP adresses for the systems i want to go though the VPN and it works just fine.
But what i want to do is if i put myip.com into the alias list instead of my computers, so that every pc on the network goes out on the VPN when myip.com is opened, and every other websites will just go out though the normal WAN as always. I hope what i say make sense.
But i cant get it too work
«
Last Edit: March 06, 2024, 10:04:18 pm by JBK89
»
Logged
yourfriendarmando
Full Member
Posts: 103
Karma: 8
Re: OpenVPN + Alias problem
«
Reply #1 on:
March 07, 2024, 07:02:02 am »
Is this for an allow rule to only allow a limited set of sources to connect to your network via vpn?
If that's the case, you need a Hosts alias. For each computer, you want a dynamic dns client running on them to update the IP address of each host.
Your alias hosts list should have [a.myip.com] [b.myip.com] [c.myip.com] ...
Each host should be a valid account through noip.
Then the firewall will routinely resolve the IP Addresses of each host, and store it in your allow rule.
You can even now alter the frequency of those updates on the firewall, with: Firewall > Settings > Advanced : Aliases Resolve Interval
I use these functions to allow myself to connect to my home lab from each of my clients, as well as allow myself to connect when on the road
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
OpenVPN + Alias problem