eth0 -> wlan0 IPtables entry not working
Sorry to post such a "beatin to death" topic but I just cannot get this to work. All I want to do is forward traffic from eth0 to wlan0. They are both interfaces on my laptop. My PS3 is whats connected to the eth0 with crossover cable. Wlan0 is my connection to my wireless linksys router which is connected to my cable modem. Yes /proc/sys/net/ipv4/ip_forward = 1, its set at boot time.
192.168.0.2(ps3)<-->192.168.0.1(eth0)<laptop>(wlan0)192.168.1.3 >>>>> <192.168.1.1(router)>
# Basic firewall and forward/masquerade setup
# Delete/Flush old iptables rules
iptables -t nat -F
iptables -t nat -A POSTROUTING -o wlan0 -s 192.168.0.0/24 -j MASQUERADE
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
I know the gateway route for eth0 is missing. Its because I've been trying different ones with no luck. What am I missing here? Do have to run a DNS on my gateway? Set some more routes? After all the trial and error, posting for help is my last resort.
Last edited by SekurityKlown; 07-29-2007 at 09:30 PM.