DD-WRT, OpenVPN, Policy Based Routing, Excluding IPs/Netflix

These are just notes to use policy based routing when I decide to do so.

hopefully sometime in future setup rules to

  • send all traffic through vpn except for a couple of ips
  • send all traffic through vpn except for certain destinations like maybe netflix

related links to lookup

just random notes from looking at different posts:

  • openvpn adds rules new table ‘table 10’
  • ssh to the router and /tmp/openvpncl – has all the files
    • policy_ips has the ips we list in the ui
    • route_up.sh is the script that sets up the route table 10 and the routes for the ips
  • essentially routes will have to setup and/or firewall rules will have to be setup
  • routing
    • From the Linux networking help pages (http://linux-ip.net/html/routing-tables.html) found that there could be other routing tables other than main and the tables will be under /etc/iproute2/rt_tables. this is not present in the ddwrt. I couldn’t find a command that will list the different routing tables or where they are specified in dd-wrt.
    • “ip route” or “ip route show” lists all the routes from the main routing table
    • finally while looking at the help realized “ip route show table all” – will list the routes from all the tables, this is how i was able to see table 10 added by openvpn
    • ip rule list will show the different rules
    • you can also you “netstat -rn” to look at the rules (this will show the tun1 interface) and iptables to look at the firewall rules, “iptables -L” will list all the firewall rules

Netgear R6250 Advanced Tomato to Stock

After running into 2.4Ghz with Advanced Tomato decided to go back to the stock. Found the following links on the web.

Video of “Back to Netgear Genie” – http://tomato.groov.pl/?p=616

These are the steps I followed.

  1. Went to Tomato by Shibby page http://tomato.groov.pl/?page_id=164; here selected K26ARM;
  2. On the K26ARM page used the files under “Netgear R-Series back to OFW”
  3. Logged into my tomato, reset to default configuration with erasing NVRAM
  4. After that connected to one of the default tomato wifi networks, logged in again and upgraded the firmware using the downloaded file file R6250-back-to-ofw.trx
  5. After the upgrade completes, connected to one of the default netgear wifi networks (NETGEAR99 or NETGEAR99-5G), the wifi password is the one written on your router, sent from the factory. All set now back to configuring the network or should i switch to ddwrt again?

(I prefer doing all this over a wired connection instead of upgrading via wifi but too tired to care now.)

Netgear R6250 Advanced Tomato and 2.4Ghz issue

As of 2017-Jan there is an issue with 2.4Ghz band on the R6250 with the Advanced Tomato firmware. I also found this post https://www.myopenrouter.com/forum/what-hell-happened

I lost some static ip entries while using dd-wrt due to the known issue of how the page UI is very old and not really user friendly (great firmware though) – this drove me nuts so decided to try the Advanced Tomato on the R6250 – great UI. The Advanced Tomato UI worked great, firmware was great except for the 2.4Ghz band; the router page will show that the Wifi is good but none of the devices will be able to connect, tried various settings power etc, will show up then disappear and devices will not be able to connect. Searching the web brought up the page on myopenrouter listed above discussing the same issue. Switching back to stock/genie and maybe ddwrt.

Netgear R6250 reset after Advanced Tomato

Decided to try tomato on the Netgear R6250 since it has a nice UI. Upgraded from kong-dd-wrt to the latest stable download for Advanced Tomato.

There is an instruction on the tomato page that says, BEFORE UPGRADE you need to telnet to the router and issue a command to get the http password, I decided not to do that since I was going to reset after upgrade.  (http://www.polarcloud.com/tomatofaq#why_doesnt_my_password_work)

The factory/hard reset for Netgear R6250 as per the user manual is a simple 7 second press of the reset button on the back, of course i didnt remember this and did not bother to look up. I just pressed the reset button for more than 20seconds but the router did not reset, then I tried the 30-30-30 reset which did NOT work either. Instead a simple press of the reset button for about 7-10 seconds is all it needs!

(A little knowledge is a dangerous thing or in my case was a lot of wasted time 🙂   )

(Btw, the tomato firmware has 2.4Ghz issues)

linux Ctrl^Z paused process where is it?

I am not a full time linux user and I keep forgetting this most of the time. If you press Ctrl-Z in the terminal window – the process is stopped/paused and pushed to the background. how do you bring it back – use fg

$ fg

fg by itself will bring the most recently paused job to the foreground and runs it.
bg runs the job but doesn’t bring it to the foreground.
jobs lists all the running jobs.
search for “linux fg bg jobs” on the web

T-Mobile Band 12 700 Mhz A block VoLTE

Links that talk about T-Mobile asking manufacturers to disable band 12, what band 12 means and what are the supported devices etc.

On phones that dont support band 12, on testing found that during a phone call the speed drastically reduces to 2G. This behaviour is true on ATT too depending on where you are and the quality of coverage of the carrier.

T-Mobile on Lumia 635 when not in call data speed is 60+Mbps down, 14Mbps up; During a call 3Mbps down 0.2Mbps up 🙂

T-Mobile on iPhone 6s nothing changes, when not in call and during call 90+Mbps down and 20+Mbps up!