garywill / linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️
GNU Lesser General Public License v2.1
1.75k stars 155 forks source link

How to give connected devices unique IPs? #35

Open georgetian3 opened 2 years ago

georgetian3 commented 2 years ago

I currently am using a Linux server as a WiFi hotspot using the following command:

lnxrouter --ap myaccesspoint -p mypassword --no-virt

However, the public IP address on any device that is connected to the internet through the server has the same IP as the server, whereas I was hoping that all my devices would have their own public IP.

How can I achieve this?

garywill commented 2 years ago

You need bridge method I think. Sadly currently this script can't, it can only do NAT. Try create_ap https://github.com/oblique/create_ap