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
Advertisements

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.)