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
- How to List All Iptables NAT Rules
- Parse or Split FTP URL in Delphi XE using TIdURI
- How to Download a File via FTP in Delphi XE
- Public FTP Server to Test Upload and Download
- How to Parse Command-Line Arguments in Bash
- How to Make Iptables Rules Persistent
- Bash Install Iptables-Persistent Automatically
- Route OpenVPN Connections Through Floating IP
- How to fix "Clickable elements too close together"
- How to fix "Text too small to read"
- Create Custom Rest Endpoints for WP Rest API
- Timestamp URLs for SHA1 SHA256 Code Sign 2021
- PHP Multi-cURL to Run Parallel cURL Requests (Example)
- The following signatures were invalid: EXPKEYSIG B188E2B695BD4743
- Best Clean Monospace Web Fonts 2021
- Add New Path to Delphi 10.4 Sydney on Library Path