LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian routing wireless to wired (https://www.linuxquestions.org/questions/debian-26/debian-routing-wireless-to-wired-413916/)

Child of Wonder 02-10-2006 02:30 PM

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.

Child of Wonder 02-10-2006 03:04 PM

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.

geden 02-10-2006 03:47 PM

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...

Child of Wonder 02-10-2006 04:37 PM

It worked. Thanks so much for your help.

Again, something simple.


All times are GMT -5. The time now is 07:44 PM.