I hate having to change IP addresses if my ISP goes down for too long and I need to switch internet connections. Because of this, I used to run my server behind a (open)VPN(server), I have a VPS hosted by a third party, so I can put anything I want on it.
My question:
What is the most compatible solution with Virtualmin where I can just install, add details, or upload a config file in Virtualmin and be done with it?
Virtualmin has nothing to do with VPNs or lower-level network details. You can run whatever VPN you want and you can configure networking however you like, Virtualmin doesnāt have any opinion on the matter (though if youāre using Virtualmin to manage DNS, it needs to know the public IP for records, and if the IP of the interface on the Virtualmin server will change sometimes, youāll need to use * for VirtualHosts or do something about automatically updating the IP in Apache when the IP changes).
So I have setup my vpn server to portforward every necessary port, also connected the vpn using the right profile so it gets the right local ip towards the vpn server. Howeverā¦ if I go to the vpn ip x.x.x.x.x:1000 or whatever port it still shows as closed, virtual min. sees the correct āoutsideā ip adres.
Virtualmin has a āDynamic IP Updateā feature under āAddresses and Networking,ā but itās not that reliable. PureVPN offers static IPs with port forwarding. But, the easiest option is to ask your ISP for a dedicated IP address, which typically costs around $5 per month.
lol, not in the US. My cable internet provider doesnāt offer a static address on anything less than an enterprise plan that is several hundred dollars a month.
Same situation here. I do have a static IP, but the issue is that thereās downtime with my main connection, so Iām currently relying on my 4G modem. I need the quickest and easiest way to connect my VPN server to any protocol, as long as I can easily forward the ports and get back online. Iāve tried using the swan stuff, but it refuses to port forward via iptables. I hate that stuffāsetting it up is such a pain, but once itās runningā¦ Does anyone have suggestions or a solution I can simply copy and paste? Please send me a small tutorial, Iām running out of hair to pull out of my head.
Thats why the sooner we move to IPV6 the better. No more NATing and no shortages of IPs.
Luckily my local power company is my FTTH ISP and up until the large network expansion for new development buildings recently, it always felt more like a side gig in a good way.
They gave me a free static IPv4 and IPv6 /56, and allowed me to have reverse DNS PTR record for mail.
I was also allowed to be unlocked from the supplied modem and can run any router directly off the wall outlet, DHCP and good to go.
The great thing about virtualmin is also that it detects local IP but automagically sets the correct DNS for the public IP.
But anyway, I think I would just get a data center VPS for reasonable budget and not have to deal with all that mess if I were on dynamic ip or CG NAT.
There are so many good KVM offers these days where you dont get any quota errors in virtualmin or need TUN/TAP for VPN.
You donāt have to open any port for Wireguard on Virtualmin machine if you want.
Have a Wireguard setup on your home router and open 13231 (default)
Have the Wireguard from Virtualmin machine connect to the Wireguard at your home.
Now, if you have a road-warrior like a laptop, connect that to your home router also via Wireguard and from there, you can access the Virtualmin machine also.
What you are referring to is a VPN in the local office. However, what I have here is an external VPS server running VPN software. On that VPN software, I need to open ports to access the 10.x.x.x IP range. I have tried multiple VPN servers and configurations with iptables , but I havenāt had any success so far
If this is a stock virtualmin install firewalld will be handling the firewall so all changes should be made to firewalld, I like you could not get the vpn server to work untill I disabled firewalld and set the rules up directly in the iptables module