LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-10-2006, 02:30 PM   #1
Child of Wonder
Member
 
Registered: Jul 2004
Location: Sioux Falls, SD
Distribution: Debian, Ubuntu, Fedora, Red Hat
Posts: 69

Rep: Reputation: 16
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.
 
Old 02-10-2006, 03:04 PM   #2
Child of Wonder
Member
 
Registered: Jul 2004
Location: Sioux Falls, SD
Distribution: Debian, Ubuntu, Fedora, Red Hat
Posts: 69

Original Poster
Rep: Reputation: 16
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.
 
Old 02-10-2006, 03:47 PM   #3
geden
Member
 
Registered: Nov 2004
Distribution: Mandriva ONE/ Kubuntu 8.04
Posts: 61

Rep: Reputation: 15
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...
 
Old 02-10-2006, 04:37 PM   #4
Child of Wonder
Member
 
Registered: Jul 2004
Location: Sioux Falls, SD
Distribution: Debian, Ubuntu, Fedora, Red Hat
Posts: 69

Original Poster
Rep: Reputation: 16
It worked. Thanks so much for your help.

Again, something simple.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wired interface priority over wireless in Debian Debian_Poland Linux - Wireless Networking 5 02-03-2006 11:51 AM
Wireless-2-wired routing question dolvmin Linux - Wireless Networking 1 11-06-2005 11:31 AM
Debian Sarge Wired & Wireless Network configuration yoonsangkyun Linux - Wireless Networking 2 03-28-2005 07:59 PM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
Routing between a wired ethernet (internet connection) and a wireless card (home net) ner0 Linux - Wireless Networking 8 11-29-2004 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration