Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


tanivula

992 posts

Ultimate Geek

Lifetime subscriber

#198766 21-Jul-2016 16:02
Send private message

Hey, hopefully someone kind can help me or point me in a right direction.

 

Putting together a proof of concept to access a mobile bit of kit when it's out on the road for diagnostic purposes. Have a 3g router, unfortunately due to CGNAT, accessing the router (and anything on it's LAN) via WAN wasn't going to work without a VPN (correct me if I'm wrong?).

 

Anyway.. this is roughly how the gear is setup.

 

Primary Router (running OpenVPN server) on 192.168.1.x (yes, I know this isn't ideal!) with DynDNS service to get WAN IP

 

3G router, connecting to Primary router via VPN Client config - lan is 192.168.0.x - receives 192.168.1.200 from VPN server

 

other laptops connecting to the Primary router via VPN - 192.168.45.x - receives 192.168.1.201 from VPN server

 

 

 

I am having trouble accessing the 192.168.0.x network as another VPN Client (192.168.45.x).  Accessing the 192.168.0.x network is fine from the 192.168.1.x - so provided you're not connecting via VPN, you can access the VPN clients.  192.168.1.201 can access 192.168.1.200 (brings up the 3g router login pages, same as accessing 192.168.0.1, however accessing 192.168.0.1 does not work)

 

 

 

I have enabled client - client in the OpenVPN settings. so scratching my head, I believe I need to put some static routes inplace - but not sure if this needs to be in the Primary router or the 3g router, or both?  Any help would be appreciated!

 

I have already done this on the main router:

 

Destination        Gateway / Next Hop            SubnetMask          Metric         Interface

 

192.168.0.1             192.168.1.200              255.255.255.0            0          br0 (LAN)


Create new topic
Dynamic
3869 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #1596384 21-Jul-2016 16:08
Send private message

Have you got the APN for the cellular network set to direct ?  Currently it is likely set to internet which will in most cases geta  CGNAT address - fine for browsing and email but not fine for VPNs and incoming port forwarding.

 

This should get you a real public IP address.  We frequently have to do this for client VPNs from devices using the cellular network.





“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams

 

Referral links to services I use, really like, and may be rewarded if you sign up:
PocketSmith for budgeting and personal finance management.  A great Kiwi company.




tanivula

992 posts

Ultimate Geek

Lifetime subscriber

  #1596513 21-Jul-2016 21:16
Send private message

Thanks, yeah, might have to bite the bullet and get a spark sim and change the APN to get a public IP on the 3g router.

Seems Vodafone don't do it anymore?

Doing it this was is going to be a more elegant end product too. Hmm

chevrolux
4962 posts

Uber Geek
Inactive user


  #1596521 21-Jul-2016 21:35
Send private message

If I'm understanding correctly you aren't having any trouble getting the remote (3g) router to connect to your core router? If it was an APN issue then the VPN shouldn't even establish (like on 2degrees for example).

Also, you say you have no problem accessing the remote subnet from your core? But only have an issue when connecting to the core via vpn and then trying to go on to the remote subnet.

I think your issue will come down to your route table not having the correct routes in place.



insane
3242 posts

Uber Geek

ID Verified
Trusted

  #1596526 21-Jul-2016 21:40
Send private message

Just setup a reverse SSH tunnel, then the remote end always phones home so to speak, and it doesn't matter where it's sitting behind, CGNAT or not. 


tanivula

992 posts

Ultimate Geek

Lifetime subscriber

  #1596699 22-Jul-2016 10:06
Send private message

chevrolux: If I'm understanding correctly you aren't having any trouble getting the remote (3g) router to connect to your core router? If it was an APN issue then the VPN shouldn't even establish (like on 2degrees for example).

Also, you say you have no problem accessing the remote subnet from your core? But only have an issue when connecting to the core via vpn and then trying to go on to the remote subnet.

I think your issue will come down to your route table not having the correct routes in place.

 

 

 

Yep exactly, just not sure what else needs to be there on the route table. 

 

 

 

 

 

insane:

 

Just setup a reverse SSH tunnel, then the remote end always phones home so to speak, and it doesn't matter where it's sitting behind, CGNAT or not. 

 

 

VPN tunnel is working fine, its getting another VPN client talking to the clients behind the remote 3G client (if that makes sense).


Spyware
3764 posts

Uber Geek

Lifetime subscriber

  #1596701 22-Jul-2016 10:16
Send private message




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


tanivula

992 posts

Ultimate Geek

Lifetime subscriber

  #1602100 1-Aug-2016 11:16
Send private message

Thanks for your help and advice. Ended up getting the Spark Sim and using direct.telecom.co.nz + VPN server on the remote device.  It's the far better way to do it!


Create new topic





News and reviews »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.