Posted on October 30, 2020 at 7:06 pm
Need a static IP for your 3G/4G/LTE SIM mobile? No problems! You can do this by using a VPN service and a special router that supports VPN protocol (OpenVPN). In my case, I am going to use this super tiny and awesome mini router GL.iNet GL-MT300N-V2:
You can find it also on Amazon (it arrived in 3 days here).
Configuration is simple:  connect the router via USB to the PC;  connect a cable from another router (WAN) for Internet or you can tethering with your Phone (works perfectly!);  go on http://192.168.8.1/ to open the router Admin panel (uses OpenWRT);  click on “VPN” -> “OpenVPN Client” on the left menu, then you upload your .ovpn configuration;  finally click on “Connect” button, that’s all.
My working .ovpn config file for an old OpenVPN 2.3 looks like this:
client nobind dev tun redirect-gateway def1 auth-nocache <key> ... </key> <cert> ... </cert> <ca> ... </ca> <dh> ... </dh> remote-cert-tls server tls-version-min 1.2 cipher AES-256-CBC auth SHA256 key-direction 1 <tls-auth> ... </tls-auth> remote XX.XX.XX.XX 12345 udp
* The OpenVPN config must NOT use <connection> groups!
If you have problems configuring OpenVPN just ask on GL.iNet Forum.
Once the OpenVPN client is configured and working, your 3G/4G SIM will connect to the OpenVPN server and thus your IP address will be static. If you use commercial VPNs like NordVPN or CyberGhost VPN you need to buy a dedicated static IP address. Personally I just use a VPS from Scaleway with OpenVPN installed via InstantApps (very simple to install, costs 4.99 EUR /month and you fully own the server with root access).
Any device that will connect to the WiFi of this awesome mini router will automatically use the VPN and thus all devices will have the static IP address of the VPN! This is useful to increase security of your business so only known IP addresses are allowed to login to sensitive control panels. With this router you can have your VPN static IP while traveling and everywhere!
This mini router has low download/upload speeds via OpenVPN (in my tests it arrived at max 10 Mbps/s). If you want to support faster speeds you need to use Brume (GL-MV1000) router, it uses a more performant hardware and OpenVPN client supports up to 97 Mbps/s.
For more routers that support VPN and 3G/4G WWAN card see here:
Updated on November 3, 2020 at 12:06 pm
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens