Tomato VPN Setup


FlashRouters offers plug and play DD-WRT Routers preconfigured Private Internet Access Routers for this setup.


Note: If you are using TomatoUSB, or the steps below do not match your installation of the Tomato firmware, please refer to the following
alternate setup for Tomato.
  1. In the Tomato router Administrative Interface, Click Administration and then Scripts and enter the following in the init section:

    echo username > /tmp/password.txt
    echo password >> /tmp/password.txt
    chmod 600 /tmp/password.txt

    Note: Replace *username* and *password* with your actual PIA username and password.
    For example, if your PIA username was p1234567 and password was 12345678, the first couple of lines would look like this:
    echo p1234567 > /tmp/password.txt
    echo 12345678 >> /tmp/password.txt
    The chmod command may not be necessary, but can help with permissions on certain firmware versions.
  2. Click Save
    TomatoVPN3
  3. On the Left side menu, Click VPN Tunneling and then Client.
  4. Choose Client 1 and then choose Basic
  5. Check Start with WAN
  6. Set Interface Type to Tun
  7. Set Protocol to UDP
  8. For the Server Address/Port type us-east.privateinternetaccess.com [*] and port 1198
    Or if you prefer to use a specific location, You can find the full list of locations here: https://www.privateinternetaccess.com/pages/network
  9. Set Firewall to Automatic
  10. Set Authorization Mode to TLS
  11. Set Extra HMAC authorization to Disabled
  12. Check Create NAT on tunnel
  13. Click Save
    TomatoVPN4
  14. Click on the Advanced tab
  15. Set Poll Interval to 0
  16. Uncheck Redirect Internet Traffic
  17. Set Accept DNS configuration to Enabled
  18. Set Encryption cipher to AES­-128­-CBC
  19. Set Compression to (Adaptive)
  20. For TLS Renegotiation Time, Type:
    -1
  21. For Connection Retry, Type:
    30
  22. In the Custom Configuration, input the following:
    persist-key
    persist-tun
    tls-client
    auth-user-pass /tmp/password.txt
    comp-lzo
    verb 1
    reneg-sec 0
  23. Click Save
    TomatoVPN2
  24. Click on the Keys tab and copy and paste the contents of ca.rsa.2048.crt into the Certificate Authority.
    The ca.rsa.2048.crt file can be found here: https://www.privateinternetaccess.com/openvpn/ca.rsa.2048.crt
  25. Click Save
    TomatoVPN1
  26. To connect Click on VPN Tunneling > Client > Status, and click on the Start Now button to connect.
    TomatoVPN6

EASY Setup Guides for Alternate Configurations (Advanced):

PPTP/L2TP/SOCKS Security

The PPTP/L2TP/SOCKS5 protocols are provided for devices lacking compatibility with the Private Internet Access application or OpenVPN protocol. PPTP/L2TP/SOCKS5 should be used for masking one's IP address, censorship circumvention, and geolocation.

If you need encryption, please use the Private Internet Application or OpenVPN protocol with our service.

    Although quite different from a VPN, we provide a SOCKS5 Proxy with all accounts in the event users require this feature.

    SOCKS5 Proxy Usage Guides
    proxy-nl.privateinternetaccess.com port 1080
    Enable port forwarding in the application by entering the Advanced area, enabling port forwarding and selecting one of the following gateways:

    CA Toronto
    CA Montreal
    Netherlands
    Sweden
    Switzerland
    France
    Germany
    Romania
    Israel

    After enabling port forwarding and re-connecting to one of the above gateways, please hover your mouse over the System Tray or Menu Bar icon to reveal the tooltip which will display the port number. You can then enter this port into your software.

    Port Forwarding reduces privacy. For maximum privacy, please keep port forwarding disabled.
IPv6 leak protection disables IPv6 traffic while on the VPN. This ensures that no IPv6 traffic leaks out over your normal internet connection when you are connected to the VPN. This includes 6to4 and Teredo tunneled IPv6 traffic.
    The dns leak protection feature activates VPN dns leak protection. This ensures that DNS requests are routed through the VPN. This enables the greatest level of privacy and security but may cause connectivity issues in non-standard network configurations.

    This can be enabled and disabled in the Windows application, while it is enabled by default on our macOS application.

    We use our own private DNS servers for your DNS queries while on the VPN. After connecting we set your operating system's DNS servers to 209.222.18.222 and 209.222.18.218. When using a DNS Leak testing site you should expect to see your DNS requests originate from the IP of the VPN gateway you are connected to.

    If you change your DNS servers manually or if for some other reason they are changed this does not necessarily mean your DNS is leaking. Even if you use different DNS servers the queries will still be routed through the VPN connection and will be anonymous.
    The internet kill switch activates VPN disconnect protection. If you disconnect from the VPN, your internet access will stop working. It will reactivate normal internet access when you deactivate the kill switch mode or exit the application.

    Users who may be connected to two connections simultaneously (ex.: wired and wireless) should not use this feature, as it will only stop 1 active connection type.


  • United States (US VPN)
    us-california.privateinternetaccess.com
    us-east.privateinternetaccess.com
    us-midwest.privateinternetaccess.com
    us-chicago.privateinternetaccess.com
    us-texas.privateinternetaccess.com
    us-florida.privateinternetaccess.com
    us-seattle.privateinternetaccess.com
    us-west.privateinternetaccess.com
    us-siliconvalley.privateinternetaccess.com
    us-newyorkcity.privateinternetaccess.com

  • United Kingdom (GB VPN)
    uk-london.privateinternetaccess.com
    uk-southampton.privateinternetaccess.com

  • Canada (CA VPN)
    ca-toronto.privateinternetaccess.com
    ca.privateinternetaccess.com

  • Australia (AU VPN)
    aus.privateinternetaccess.com
    aus-melbourne.privateinternetaccess.com

  • New Zealand (NZ VPN)
    nz.privateinternetaccess.com

  • Netherlands (NL VPN)
    nl.privateinternetaccess.com

  • Sweden (SE VPN)
    sweden.privateinternetaccess.com

  • Norway (NO VPN)
    no.privateinternetaccess.com

  • Denmark (DK VPN)
    denmark.privateinternetaccess.com

  • Finland (FI VPN)
    fi.privateinternetaccess.com

  • Switzerland (CH VPN)
    swiss.privateinternetaccess.com

  • France (FR VPN)
    france.privateinternetaccess.com

  • Germany (DE VPN)
    germany.privateinternetaccess.com

  • Ireland (IE VPN)
    ireland.privateinternetaccess.com

  • Italy (IT VPN)
    italy.privateinternetaccess.com

  • Romania (RO VPN)
    ro.privateinternetaccess.com

  • Turkey (TR VPN)
    turkey.privateinternetaccess.com

  • South Korea (KR VPN)
    kr.privateinternetaccess.com

  • Hong Kong (HK VPN)
    hk.privateinternetaccess.com

  • Singapore (SG VPN)
    sg.privateinternetaccess.com

  • Japan (JP VPN)
    japan.privateinternetaccess.com

  • Israel (IL VPN)
    israel.privateinternetaccess.com

  • Mexico (MX VPN)
    mexico.privateinternetaccess.com

  • Brazil (BR VPN)
    brazil.privateinternetaccess.com

  • India (IN VPN)
    in.privateinternetaccess.com