Linux as Proxy Server for Wi-Fi (intermediary gateway)
Hi Guys
I need your help with configuration of linux station - 10.10.1.2
I would like to set it up as gateway (traffic analyzer/load balancer) for my wifi subnet.
I get connection to Internet from Linux station but I still don't get connection to it from wifi side when I use linux station as gateway for wifi clients.
For now I enebled packet forwarding on linux machine and I set up default gateway at 10.10.1.1 but as I see it's not enough.
I read some materials about iptables configuration and I know I probably need to use -nat table with POSTROUTING chain.
These materials say I should use SNAT instead of MASQUERADE because I have static ip.
Anyway I tried both of them and I couldn't access Internet from wifi side.
When I change configuration of wifi router and I set 10.10.1.1 as default gateway instead of 10.10.1.2 everything works fine but it's not my point;-).
Please help me with this configiration ang explain what I missed.
PS. I saw few examples on forum but they explained situation using two nic's with traffic forwarding between two different networks. In my situation I would like to use one nic and forward traffic inside one network. Is it even possible?
INTERNET GATEWAY
|10.10.1.1|
|
| SUBNET 10.10.1.0/24
|
|
|10.10.1.2| ----------SWITCH-----------|10.10.1.8|
LINUX PROXY WIFI ROUTER GW-10.10.1.2
GW-10.10.1.1 |
|192.168.0.0/24|
WIFI SUBNET
Last edited by _Rado_; 08-12-2013 at 05:04 AM.
Reason: adding better network schema
|