LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-18-2010, 11:59 PM   #1
itsecx@gmail.com
LQ Newbie
 
Registered: Aug 2010
Posts: 19

Rep: Reputation: 0
Question Linksys WRT54G dd-wrt NOT able to route when in Router mode


Hi fellow LQers,

Problem Summary:
- Linksys WRT54G dd-wrt NOT able to route when in Router mode

Env:
- Linksys WRT54G running dd-wrt v24 firmware
- LAN Subnet: 10.0.0.0/8
- WAN Subnet: 172.16.0.0/16
- Linux FC13 configured as a IPv4 router
- LAN 172.16.0.0/16
- WAN ISP/Public IP

Setup:
wired/wireless client -> Linksys WRT54G -> Linux FC13 router -> Internet

Problem Details:
When I have the dd-wrt configured as a 'Gateway' (ie: NAT), all-is-well. That is my client is able to "talk" to other computers on the LAN as well as the Internet. However, when I change the operating mode to 'Router', I run into the following problem:
- client is no longer able to communicate to the Internet
- client is no longer able to communicate to other computers on the LAN
- client is ONLY able to ping the LAN & WAN IPs of the Linksys DDWRT
- However, I am able to ping LAN computers & ping public/internet hosts if I SSH into the ddwrt itself.

Analysis:
- Linksys/dd-wrt box itself has LAN & internet connectivity
- Wired and Wireless clients connecting to the Linksys/dd-wrt do *not* have the LAN or the Internet connectivity

Troubleshooting done so far:
- When changing Operating mode (ie: Gateway<->Router), the routing
table on dd-wrt, as expected, do not change.
Here is the routing table just in case its of any interest:
192.168.66.2 255.255.255.255 0.0.0.0 tun0
192.168.66.0 255.255.255.0 192.168.66.2 tun0
172.16.0.0 255.255.0.0 0.0.0.0 WAN
169.254.0.0 255.255.0.0 0.0.0.0 LAN & WLAN
10.0.0.0 255.0.0.0 0.0.0.0 LAN & WLAN
0.0.0.0 0.0.0.0 172.16.150.254 WAN
------------------------

Since I need inbound connectivity to the hosts connected to the LAN interface of the Linksys/dd-wrt, I need to have the Linksys/dd-wrt
configured as a Router and not as a Gateway. Any help/suggestion would be greatly appreciated.

-itsecx

Last edited by itsecx@gmail.com; 09-19-2010 at 12:04 AM. Reason: Typo in the problem definition statement
 
Old 09-19-2010, 09:08 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Hi, Welcome to LQ. First, I'd suggest not using your email address in your user name.

Second, did you disable DHCP on one of the devices? Have you tried AP mode on the DD-WRT router? Perhaps I'm misunderstanding something?

Good luck. ;-)
 
Old 09-19-2010, 09:59 PM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Originally Posted by Peacedog View Post
Hi, Welcome to LQ. First, I'd suggest not using your email address in your user name.

Second, did you disable DHCP on one of the devices? Have you tried AP mode on the DD-WRT router? Perhaps I'm misunderstanding something?

Good luck. ;-)
I don't understand why you can't have inbound access in gateway mode? I have a vpn via openVPN and I occasionally host a web server with apache from behind my dd-wrt router in gateway mode. According to the configuration page:
Quote:
Operating Mode:
If the router is hosting your Internet connection, select Gateway mode. If another router exists on your network, select Router mode.
So do you have another router? It would seem from that quote that routing is disabled when in router mode. Maybe I'm missing something in your setup?

Last edited by damgar; 09-19-2010 at 10:01 PM.
 
Old 09-20-2010, 11:37 AM   #4
itsecx@gmail.com
LQ Newbie
 
Registered: Aug 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Linksys WRT54G dd-wrt NOT able to route when in Router mode

Thanks for responding, @peacedog.

It doesn't look like I can now change/edit the username to something other than what is currently setup.

I'm guessing you're referring to the Linksys and the Linux box as the two devices. No, I have not disabled DHCP on either devices as I need DHCP services on both (ie: need dhcp for the local clients (lan) that connect to the linksys. The linux box also needs a dhcp server as it distributes IP to the clients on its subnet. Note, both devices are on a separate subnets and there's one/unique DHCP server for each subnet.

Finally, there's no "AP" mode. There's a Gateway mode, a Router (static) mode, and RIP (dynamic routing) mode.

Again, thanks for taking time for responding.

-itsecx

Quote:
Originally Posted by Peacedog View Post
Hi, Welcome to LQ. First, I'd suggest not using your email address in your user name.

Second, did you disable DHCP on one of the devices? Have you tried AP mode on the DD-WRT router? Perhaps I'm misunderstanding something?

Good luck. ;-)
 
Old 09-20-2010, 12:35 PM   #5
itsecx@gmail.com
LQ Newbie
 
Registered: Aug 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Linksys WRT54G dd-wrt NOT able to route when in Router mode

Thanks for responding, @damgar. Here's the response to your note:

Outbound requests are handled by NAT; however, inbound request origination could only be made to the WAN interface/IP; thus, there would be no way for the router to know which internal host is the target. Ofcourse, one could put a particular host in a DMZ or do port forwarding for certain services; however, that not the intent here.

Scenario:
3 Subnets: 192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24
2 Routers:
R1 (LAN) 192.168.1.1, (WAN) 192.168.2.2
R2 (LAN) 192.168.2.1, (WAN) 192.168.3.1
1 Client: (C) 192.168.1.100
1 Server: (S) 192.168.3.100

Client 'C' wants to initiate a SSH session to Server 'S'

*What we want is that 'S' should know that the client connected from 192.168.1.100 and not the masqueraded IP of the router (192.168.1.1) that is doing the NAT.

Hope that makes things a bit clearer.

Regards,
-itsecx

Quote:
Originally Posted by damgar View Post
I don't understand why you can't have inbound access in gateway mode? I have a vpn via openVPN and I occasionally host a web server with apache from behind my dd-wrt router in gateway mode. According to the configuration page:So do you have another router? It would seem from that quote that routing is disabled when in router mode. Maybe I'm missing something in your setup?
 
  


Reply

Tags
ddwrt, gateway, linksys, router, routing


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
Linksys WRT54G v.5 - DD-WRT --- Server in DMZ -- How to forward ports to my desktop? mitchell7man Linux - Networking 1 04-03-2010 02:07 PM
DD-WRT and Linksys WRT54GS2V1 problems Norami Linux - Embedded & Single-board computer 6 11-30-2009 09:01 AM
LXer: Released: DD-WRT v23 Final for Linksys WRT54G (and others) LXer Syndicated Linux News 0 12-26-2005 12:16 PM
valknut and Linksys wrt 54g router problem slask73 Linux - Wireless Networking 1 10-09-2005 05:44 AM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration