Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 11-28-2004, 09:36 AM   #1
Registered: Dec 2003
Posts: 39

Rep: Reputation: 15
router with mixed wired/wireless network


i'm having an issue getting my newly added wireless client accessing the internet using my linux (debian) router.

the setup is as follows:

- linux router (
- multiple linux machines (
- multiple win2k machines (
- 'wired' ethernet switch
- wireless ethernet bridge (

the win2k box ( is my kids machine on the other side of the house. i recently installed a wireless card in this to share the internet for them. i bought the wireless ethernet bridge (netgear wge101) and hooked this into my switch. the card in the box is a netgear wg311. i configured both the bridge and the wireless box ok and all machines can see each other with no probs (file sharing/printing etc works fine).

my router machine ( is configured with a simple firewall using iptables. no wired machine (both win2k and linux) has any issues accessing the internet through this box. the wireless box however doesn't seem to be working with it.

i can ping any ip address from the wireless box, both inside and outside my network. i can ping the dns servers (as provided by my isp and as set for all machines) but i can not ping a fully-qualified domain name - ie. will work but will not.

this obviously suggests an issue with the dns servers - but as i said above, it works for all boxes except this one since i installed the wireless card (it used to have a wired card - wife hated the cable running through the kitchen ). i even went as far as reinstalling windows on that machine as i've had networking issues in the past when changing cards ip addressess etc on windows boxes. needless to say, it didn't solve my problem.

i'm now thinking that the 'bunny hop' its doing via the wireless ethernet bridge onto the wired network and through the linux router could be the issue and perhaps a setting in my iptables setup or something. my rules files are below:

# gateway.rules

/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F #ignore if you get an error here
/sbin/iptables -X #deletes every non-builtin chain in the table

/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
# only if both of the above rules succeed, use
/sbin/iptables -P INPUT DROP

/sbin/iptables -A FORWARD -i ppp0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT

/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

/sbin/iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT
# If no rules, do nothing.
[ -f /etc/gateway.rules ] || exit 0

case "$1" in
       echo -n "Turning on packet filtering:"
    	/sbin/modprobe iptable_nat #only if using iptables
    	/sbin/modprobe ipt_MASQUERADE #only if using iptables
        echo 1 > /proc/sys/net/ipv4/ip_forward
        echo "."

        echo -n "Turning off packet filtering:"
        echo 0 > /proc/sys/net/ipv4/ip_forward
        echo "."
        echo "Usage: /etc/init.d/gateway {start|stop}"
        exit 1
exit 0
the above was from and works great with all but the wireless box.

if anybody has any suggestions as to how i may fix this one i would really appreaciate it. i could very well be barking up the wrong tree and the issue is elsewhere altogether - if so please let me know. perhaps my whole wireless setup is plain wrong???

anything at all would be greatly appreciated.


Old 11-28-2004, 02:52 PM   #2
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
Hi takisd,

I think this one's beyond me but how about changing the two lines:

/sbin/iptables -A FORWARD -i ppp0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT


/sbin/iptables -A FORWARD -i ppp0 -o <your WLAN interface name here> -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -i <your WLAN interface name here> -o ppp0 -j ACCEPT

where <your WLAN interface name here> might be wlan0 or whatever it is on your linux box. However I might be barking at you barking up the wrong tree


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reverse router setup, from wireless to wired network.. jdolluc Linux - Wireless Networking 10 01-11-2006 06:21 AM
join the two wired network with wireless alvi2 Linux - Wireless Networking 2 04-04-2005 01:02 PM
Wireless/ Wired Mixed Networking (2networks) wingcom Linux - Wireless Networking 1 03-05-2005 06:21 AM
wired computer sniffing wireless router drkshadow Linux - Wireless Networking 0 11-24-2004 02:31 AM
mixed wireless/wired network set up question. megaspaz Linux - Wireless Networking 1 07-02-2004 02:52 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

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