I have the following network diagram:
Internet <—> (eth0) Linux box (eth1) <—> HUB0 <—> (ether0) MT (ether1) <—> HUB1 <—> Client0,1,2,…,n
On Linux box:
eth0= 1.2.3.4/29
eth1= 192.168.0.1/24
Linux box acts as NAT (Masquerade), Bandwidth monitor, Firewall, Intrusion detection, … etc.
I would like MT to act as a Hotspot gateway for clients, providing them authentication through its HTTP servlet BUT never do Masquerade or Src-nat! That is:
Client0=192.168.0.10
Client1=192.168.0.11
Clientn=192.168.0.n
The GW IP to be set at client’s PC is 192.168.0.1; DNS IPs to set at client’s PC is those provided by my ISP.
Any ideas on How To do that?
With Hotspot disabled, I had merged MT’s ether0 and ether1 in a bridge, gave both of them 192.168.0.250 and .251 respectively. The define default gateway to MT on ether0 to forward all destinations of 0.0.0.0/0 to 192.168.0.1. This was successful way and I was able to see each client on the Linux box identified by his/her IP and to see what this client do on Internet resources.
When I enable Hotspot on Bridge interface or on ether1 interface, Clients won’t reach Linux gateway IP and they can’t access Internet resources.
Thank so much in advance for any anticipation …