LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-14-2018, 03:32 PM   #46
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,262

Original Poster
Blog Entries: 43

Rep: Reputation: 30

Hopefully this will help too:

https://www.linuxquestions.org/quest...-design-37719/
 
Old 04-14-2018, 05:48 PM   #47
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,262

Original Poster
Blog Entries: 43

Rep: Reputation: 30
I just read my original question again. Looks like where I restated it, was better. I just didn't know the terminology to explain what I was trying to do, until more troubleshooting.

I'll try to do better next time.

Last edited by des_a; 04-14-2018 at 05:49 PM. Reason: Forgot something...
 
Old 04-14-2018, 10:20 PM   #48
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,262

Original Poster
Blog Entries: 43

Rep: Reputation: 30
Now, I get to go home, and try things. I will restore my router, if need be, and then try the routing table again.
 
Old 04-15-2018, 12:19 AM   #49
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,262

Original Poster
Blog Entries: 43

Rep: Reputation: 30
OK. I'm home. Internet restored, and basic network functions restored. Unfortunately, because of the lack of the routing table entry, nothing will work yet.

I don't have permission to connect to the router from the LAN side, so what I'm doing is using my mobile hotspot on my phone to connect to Internet. Then, I can get to it from the WAN side.

Now, I read the information about routing tables closely, and try to put in the "right" entry. Then, I plug things back into their proper spots, and I try it from the LAN side.
 
Old 04-15-2018, 02:40 AM   #50
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,262

Original Poster
Blog Entries: 43

Rep: Reputation: 30
Done playing around now, with my new knowledge. OK. Here's what I found:

It's still impossible for me for now to get what I was trying to do in router mode done, in router mode. The reason for trying so hard, was that the DD-WRT docs (and sometimes other docs), says that if you have more than one router on the network, you should try for router mode, instead of gateway mode for your router. As I thought, enabling router mode, disables NAT. However, that seems to lead to issues in itself.

I'd added the static route and everything, and got everything working, except for Internet. It seems, that what I'd have had to do, to get Internet working, is to put everything from every routing table on the Internet, in my little router, or something like that. That's the impression I got.

HOWEVER, I did, get to figure out what I was trying to do with router mode in gateway mode, which unless someone has more input, I will settle for this answer about things.

First, I have to set the route in the first router, like I did with router mode. Then, I add a firewall rule as follows:

Code:
iptables -I FORWARD -j ACCEPT
Important! I do this on the second router, NOT the first router!!! Not that I tried, but I can see why this would be dangerous on the first router.

Doing all of this, gives the desired effect, it would seem.

However, for the larger problem, I checked it. I tried airprint from this setup on clientrouter, and it fails to work. So I will NOT be using this setup for clientrouter. It DOES work, the other way that I had it last night, however. So I restored the setup from last night, and everything there is good to go.

That answers the second small question I had, about design. If it works one way, but not the other, then the way it works is the better design.

I DID want the NAT type setup on guestrouter, as I decided that I don't want airprint to work, for safety reasons, on my guest network. If they really need to print, they will have to download the app, which works just fine. But then, I can control who will figure it out and who won't, a little bit better. Unless they are of my level, they probably won't figure it out, without some hints.

Windows printing works just fine, but you still have to make sure you add the printer properly for it to work. This adds some protection against misuse of the printer. I want them to be able to use most of my servers, and it seems to work okay, as is.

I think I have a good enough answer to what I was looking for, and I was right, I solved the larger problem, from solving the smaller problem(s). I will go post there next. If anybody has any more to add, post before it won't let you anymore. Check out the thread about the iPad printing, for the larger picture. A link is in the first post.

Check out my LQ blog, as I will be posting my findings there too. Thanks! Even though you have given me minor hints, it helped with the troubleshooting so that I could solve this the rest of the way. I like when things simply get me "unstuck".
 
  


Reply


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 dd-wrt NOT able to route when in Router mode itsecx@gmail.com Linux - Networking 25 04-30-2018 12:54 AM
[SOLVED] SSH to a computer behind a DD-WRT router upnort Linux - Networking 11 11-27-2016 12:56 PM
one linksys DD-wrt router with both AP and Bridge? MrUmunhum Linux - Networking 1 05-28-2015 08:17 AM
Ubuntu server router as gateway mode to router mode? rjdbarsal Linux - Networking 1 08-13-2013 06:31 PM
Ser2net error msg (DD-WRT router) NRV85 Linux - Networking 1 12-18-2011 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 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