What's new

Setting up an ASUS RT-N66U running Merlin on an existing network

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Looking at the source code comments:
Code:
/* Several ISPs restrict Internet sharing by checking TTL value,
* i.e allow Phones/Tablets only. Fix WAN outgoing packets with
* router's TTL, default is 64  */

https://github.com/RMerl/asuswrt-me...5b2286/release/src/router/rc/firewall.c#L4432
Yeah, I saw that. But the code that followed didn't seem to match the description. It also effects outgoing packets where we're more interested in incoming packets. I think the code just above with ttl_inc_enable is more relevant but it looks like it's hidden unless you're using a specific ISP.
 
Last edited:
I never implemented the Spoof TTL setting (supply and demand :) )

If it's determined that's needed as well, I can take a look at adding it.
 
Yeah, I saw that. But the code that followed didn't seem to match the description. It also effects outgoing packets where we're more interested in incoming packets. I think the code just above with ttl_inc_enable is more relevant but it looks like it's hidden unless you're using a specific ISP.
Ok, I see now what you mean. The packets are coming back through the transparent proxy with TTL set to 1 so that the residents can’t use a NAT router on the network. Switching to John’s fork would let him fix the incoming packets at his router so they can make the final hop to the client.

It’s a smart move to switch to John’s fork anyway for an N66U since Merlin 380.70 is the end of the line. I ran the fork on my N66U before upgrading to an AC68U this summer.
 
What if he just tested the iptables command from Johns fork on his existing firmware?

Code:
iptables -t mangle -A PREROUTING -i <wan_if> -m ttl --ttl-eq 1 -j TTL --ttl-set 64
 
What if he just tested the iptables command from Johns fork on his existing firmware?
I thought about that (and I'd expect it to work) but figured that by the time he read the message he would have already installed John's firmware. :D

@LighthammerX BTW The option you're looking for is located on the Firewall > General page in John's firmware, not the WAN page.
 
What if he just tested the iptables command from Johns fork on his existing firmware?

It's been a while.....but IIRC at least part of the problem that was breaking that option was that the correct module wasn't being modprobe'd or maybe the module wasn't being built by the firmware.
 
It's been a while.....but IIRC at least part of the problem that was breaking that option was that the correct module wasn't being modprobe'd or maybe the module wasn't being built by the firmware.
Gotcha. Looks like xt_hl was also related to this option. So upgrading fw is the best course of action.
 
So, I'm running into a problem here getting this firmware installed.

Since its an older version then Merlins (he's at 380.7), it's claiming it can't install it because of a security risk being that's older.

I was going to revert to an earlier version of the OEM Firmware and try that, but I realize it might brick the router going to a custom one after that (manufacturers love forcing their own system on people and all).

At this point I reinstalled Merlin 380.7 hoping there was just some errors in the install. No go on that end.

Any thoughts before I plow ahead?
 
So, I'm running into a problem here getting this firmware installed.

Since its an older version then Merlins (he's at 380.7), it's claiming it can't install it because of a security risk being that's older.

I was going to revert to an earlier version of the OEM Firmware and try that, but I realize it might brick the router going to a custom one after that (manufacturers love forcing their own system on people and all).

At this point I reinstalled Merlin 380.7 hoping there was just some errors in the install. No go on that end.

Any thoughts before I plow ahead?
Read through the first post in the thread where you downloaded the firmware. You need to use the Recovery tool or CFE mini server to downgrade from the current Merlin builds.
 
Read through the first post in the thread where you downloaded the firmware. You need to use the Recovery tool or CFE mini server to downgrade from the current Merlin builds.

Gah, never done that before.

Oh well, time to learn.

I'll figure that out today and see where I stand.
 
I've been exploring other options I might have --- I think before I play with router firmware, I'm going to see if I can setup a Linux Server in between my connection and the router and see if that will give me the results I need. Frankly, I'd prefer a Windows Server just because of my familiarity with Windows Server, but have found in the past that setting up these sorts of things, especially on a small ATOM computer have less then desirable results. I'll use the opportunity to get more familiar with Linux.

With a little luck, I'll have feedback on that result and bared that working, the suggestions for moving to John's firmware.

I'll report back when I have time to work through these two resolutions. It will be before the end of the weekend.

Thanks a lot for the help so far guys and thanks for sticking with me. It's much appreciated.
 
I figured I'd stop by and give an aftermath of the happenings.

Things work now --- but I am very confused why and how --- I suspect I will never actually get the answer.

As I had mentioned, I ended up setting up an Ubuntu Workstation and configured it mostly as a server installing several different network services from a guide I had found that focused on setting Ubuntu up like a router.

That didn't ultimately work, so I tried creating a bridge between the two connections instead of setting up a connection sharing.

That didn't work and that's about where I stopped for a while. I decided to hammer down legal options for a while because, truthfully, I was dragging my feat on the prospects of reinstalling the original firmware to use the fork.

Thats where everything sat for about 2 weeks or so.

With the legal options being long and complicated, I decided to give a few more things a try. Low and behold, things MAGICALLY started working.

I don't know if Ubuntu grabbed a patch that resolved things, if my apartment complex changed something or updated something on their side or what, but through no additional troubleshooting on my side things were now resolved. I'd be inclined to think it was more of the later then the former, but the former could be possible too.

As it stands right now, I have my connection running from the jack into the Ubuntu Server then into the RT-N66U with the latest version of Merlin for many of the connections with it in Router Mode and the connection plugged into the WAN port.

I'm mystified what actually fixed it, but I'm glad its done.

Thanks very much for help in resolving the issue.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top