Debian routing wireless to wired
Hey... I'm trying to set up my Debian laptop to wirelessly connect to an AP, receive a DHCP address from it, then act as a router to the onboard NIC and assign it's own DHCP addresses out the NIC to a small LAN.
I have DHCP up and running on eth1, my wired card. I'm associated to the AP with eth0 and have a DHCP address but can't surf and the routing isn't working. Once I unplug the crossover cable from eth1 to my other PC then I can surf again wirelessly on the laptop. Can anyone point me in a direction to look? I'm probably just overlooking something simple. Any help would be appreciated. Thanks. |
It seems the laptop just isn't routing properly.
I've gone to /etc/network/options and changed forwarding to yes, plus ran echo "1" /proc/sys/...../ip_forward Still no go. |
iptables -F; iptables -t nat -F;iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to <eth0 ip address> echo 1 > /proc/sys/net/ipv4/ip_forward try this... |
It worked. Thanks so much for your help.
Again, something simple. |
All times are GMT -5. The time now is 07:44 PM. |