I am unable to understand the problem in routing traffic from wireless network to ethernet network.
Here are some details of the scenario
I am using the private network of 192.168.0.0/24 on wireless Network and a private network of 10.0.0.0/8 on ethernet network.
Configuration of Wireless Interface are
IP = 192.168.0.1
SSID = test
default-farwordng = on
frequency = 2142
band=2.4GHz-B
Ethernet Interface Configuration
Ip = 10.1.1.1
GW = 10.1.1.254
Ip routes are
DST-ADDRESS G GATEWAY DISTANCE INTERFACE
0 S 0.0.0.0/0 r 10.1.1.254 1 ether2
1 DC 192.168.0.0/24 r 0.0.0.0 0 wlan2
2 DC 10.0.0.0/8 r 0.0.0.0 0 ether2
The problem is that the packets of the wireless clients are not being forwarded to default Gateway. when i try to connect from wireless clients I can ping to ethernet interface of the router but cannot ping to default gateway, more ping to gateway from the router is successful but not from the wireless clients.
Yes, packets with a source address of 192.x.x.x(in your case) would have a path to your gateway, based on your default route, but your gateway doesn’t know what to do with packets it receives from the outside that need to be sent to the 192.x.x.x subnet. You will need a route in the gateway router that sends packets intended for 192.168.0.0/24 to 10.1.1.1… Conversely, you could just set up masquerading between the 192.168.0.1 interface and the 10.1.1.1 interface…
Well, if you followed /setup you’re IP ADDRESS should look like this:
10.1.1.1/24 (24 is for not to broadcast whole subnet) network 10.1.1.0 broadcast 10.1.1.255 ether2
192.168.0.1/24 network 192.168.0.0 broadcast 192.168.0.255 wlan2
Then route should look like this:
Destination 0.0.0.0/0 Gateway 10.1.1.254 ether2
192.168.0.0/24 Pref. Source 192.168.0.1 wlan2
10.1.1.0/24 Pref. Source 10.1.1.1 ether2
Please, check you configuration one more time and consult the manual…