Routing instead of NAT/Masquerade in Tether clients, how can I do this?

  • Thread starter Thread starter AC Question
  • Start date Start date
A

AC Question

Routing instead of NAT/Masquerade in Tether clients

When clients connect to Android Tethering they get IPs of the private Tethering networl. There is plenty of info available on how to NAT/Masquerade the tethering clients (for example into a VPN), but I haven't managed to find how should I change or re-write IPTABLES and ROUTES in order to avoid natting/masquerading and just make ordinary routing from the tethered devices IP to the other networks (or a VPN). Example: Local Tether client 1 gets : 192.168.43.1/24 Local Tether client 2 gets : 192.168.43.2/24 ... and at the VPN interface we have the 10.1.0.0/24 Network. Disabling NAT and adding the routes in an ordinary router is easy, but I need help to do it on my Android device. Thank you.
 
Re: Routing instead of NAT/Masquerade in Tether clients

IOW, you want all your tethered devices to use your real external IP address? Sorry, the technology of the internet doesn't work like that. IP tables are to set the outgoing route. The internal IP address HAS TO BE a NAT address. Asking for an ultraviolet screen that you can see with your eyes falls into the same category - it just can't be done.
 
Rubkat, its NOT Internet at the other side of the NAT, there is a private LAN (for example the VPN it mentions) in another network segment. It only has to be routed, but before that, NAT/Masquerade has to be disabled. The questions is valid, how to disable NAT/Masquerade and just make the routes to the other networks on the LAN or VPN ?
 

Trending Posts

Forum statistics

Threads
955,950
Messages
6,966,193
Members
3,163,442
Latest member
glastek12