LPR Printing Setup on Windows
- DrayOS 4, imported, windows_setup, router_usb_port, printer_driver, lpr_printing, usb_printer
This article shows how to set up a Windows computer as an LPR print client to connect to the LPR printer on the router's USB port.
1. Connect the printer to one of the router's USB port. Go to USB Application >> USB Device Status >> Printer to check if the router detects the printer.
2. On the Windows computer, go to Control Panel >> Printers, click Add a Printer.
3. Click Add a local printer.
4. Select Create a new port, then select "Standard TCP/IP Port" for Type of port. And click Next.
5. Input the LAN IP address of the router at Hostname or IP address, and click Next.
6. 5. Select "Custom" for Device Type and click Settings... button.
7. Select "LPR" for protocol, input p1 (lowercase p and number 1) in the Queue Name field, and click OK.
8. Install the driver for your printer.
9. Type a printer name, and click Next.
10. Then you've successfully added the printer.
11. Finally, initialize the router and printer with the following steps:
- power OFF the router,
- power Off the printer,
- power ON the printer,
- power ON the router.
- Details
Introduction to Hardware Acceleration
- DrayOS 4, imported, multi_wan, hardware_acceleration, exception_list, cli_diagnostics, vpn_acceleration, traffic_management
The multi-WAN models support Hardware Acceleration on their Ethernet WAN interface for selected models; however, if you turn on Hardware Acceleration, the accelerated traffic will by-pass the following features: Traffic Graph, WAN Budget. On the other hand, when Data Flow Monitor, QoS or Bandwidth Limit is enabled, the function of Hardware Acceleration will not take effect, if it is enabled, to prevent from session conflicts.
Modes of Hardware Acceleration
DrayOS provides two options for Hardware Acceleration, Auto and Manual. In Auto mode, Hardware Acceleration will automatically apply to the heaviest TCP sessions. In Manual mode, the network administrator can choose to accelerate the sessions of a certain protocol, source IP, or QoS class.
Hardware Acceleration in Vigor2927/2865/2765/2135
New models such as Vigor2927 and Vigor2865 support more features in hardware acceleration. Features such as Bandwidth Limit, Quality of Service and Traffic Graph can coexist with Hardware Acceleration when it is enabled. It allows you to choose NAT to accelerate sessions from LAN to WAN and also IPsec to accelerate sessions from VPN to WAN with IPsec VPN Protocols.
In addition, Exception List allows you to disable hardware acceleration from certain hosts.
- Choose the host from ARP table.
- Select the Exception Type.
- Write something in Description(optional).
- Click Add to add profile in the list.
- Click OK to apply.
How do I know if Hardware Acceleration is working?
To check whether Hardware Acceleration is working or not, you can type ppa -v in router's CLI. The numbers of PPA LAN and WAN are the accelerated traffic.
And both way acceleration can be enabled if the performance doesn't exceed the expected value, use the command "ppa -b 1" to enable it.
Furthermore, type "ppa -d 3" to see if Hardware Acceleration is working on a session from LAN, and "ppa -d 4" to see if it is working on a session from WAN.
- Details
Use Dynamic DNS (DDNS) for Router's Access
- nat, DrayOS 4, imported, ddns, internet_access, dynamic_dns, wan_ip, router_access, api_configuration
Dynamic DNS (DDNS) service is the solution when you want to access the router from the Internet, but it has a dynamic IP address. You can sign up for a Dynamic DNS service and register a hostname for the router. With Dynamic DNS setup, the router will update the server its current WAN IP address to the Dynamic DNS server periodically, or the router is on a private network, it can update the IP address of its Internet gateway to the server.
The router triggers an update when:
- Powered on or rebooted
- The IP address of WAN interface changes
- The online status of WAN interface changes
- The DDNS function is enabled
- An enabled DDNS setup is modified
- The Auto-Update Interval elapse
This article shows how to set up Dynamic DNS with pre-defined service providers and with user-defined API.
DDNS Setup with Pre-Defined Service Provider
1. After signed up for an account and registered a hostname, go to Applications >> Dynamic DNS, enable Dynamic DNS Setup and click on an available index number

2. Set up the Dynamic DNS Account as follows:
- Enable this Dynamic DNS Account
- Select WAN Interface as the interface to which the domain name should be mapped
- Select the Dynamic DNS Service Provider that you're using
- Enter the Domain Name that you've registered
- Enter the Login Name and Password of your Dynamic DNS Service
- Use "WAN IP" for Determine Real WAN IP if the router's WAN is connecting directly to the Internet. Or, if Vigor Router is behind NAT, use "Internet IP" instead.
- Click OK to save.

3. After clicking OK, the router will try to update its WAN IP to the Dynamic DNS Server, you may click View Log to check if it the update is successful.

4. Now, the Internet clients will be able to find the router's WAN IP when they query for the domain name.

DDNS Setup with User-Defined API
If your service provider is not listed, you may use the API by selecting "User-Defined." for Service Provider.

Then, type the domain name of the update server in Provider Host, and type the rest of the URL in Service API.Usually, the updates are sent over an HTTP or HTTP request contains the following information: username, password, hostname, and IP address. An update URL will be similar to
http://updateddns.example.com/ddns/update?username=[user name]&password=[password]&hostname=[hostname]&myip=[IP]
where [username], [password], and [hostname] should be replaced with the username, password, and hostname that registered at the service provider, and [IP] should be replaced with the WAN IP of your router. For [IP], you may input ###IP### instead, then the router will replace ###IP### with its current interface IP when it sends out the HTTP request.

The syntax of update URL varies between providers, please refer to the API guide for the right syntax to use. Below are some examples.
Service Provider: ChangeIP.org
Service Provider: 3322.net
- Details
Use Client Key for DynDNS Service
- DrayOS 4, imported, ddns, firmware_update, dyndns, client_key, router_password_limit
DynDNS service now uses client key as the password for hardware Dynamic DNS (DDNS) clients (e.g., the router). If you get badauth return code during updating DDNS, try to put client key instead of the sign-in password in the password field of DDNS setting.
To get a client key, sign in DYN.com then go to Account Settings, press Generate Key then a random client key will be generated.
NOTE: Vigor Router extended the maximum password size in DDNS setting to 64 characters in the recent firmware versions. If the password field on your router does not show "max. 64 characters", please upgrade the firmware to the latest version first. Some older models may only support 23 characters for the password; therefore, they cannot use DynDNS service with a client key.
- Details
Introduction to Route Policy
- failover, DrayOS 4, imported, firewall_rules, static_route, route_policy, load_balance, multi_wan, vpn_routing, policy_routing
This document introduces the Route Policy (a.k.a., routing policy, or policy-based routing).
This feature allows the network administrator to manage the outbound route base on the IP address, port number, country or domain name in the packet.
The Route Policy always has higher priority than Default Route and Auto Load Balance set in WAN >> General Setup, and always has lower priority than Firewall Rules.
The administrator may also define a priority to the rules.
Note: Route Policy function is used to route traffic originating from LAN clients and remote dial-in (VPN) clients. To set up routing for traffic originating from the router itself (such as LAN-to-LAN VPN and TR-069 connections), and non-directly connected networks (such as networks behind other routers, and remote VPN networks), you will need to use the Static Route function instead.
To configure Route Policy, go to Routing >> Load Balance/Route Policy. The following image is a screen-shot of Route policy list.
It shows whether the policy is enabled, the criteria to match, and through which the interface should the traffic go if the criteria matched, and also its priority.
To set up a Route Policy, click on an Index number. At the bottom of the page, there are two configuration modes: Wizard Mode provides a simple and basic configuration, while Advance Mode allows more options.
- First, set the criteria of the packets to apply this policy.
- Select a Protocol.
- Enter the Source IP address.
- Enter the Destination IP address.
- Select the Destination Port.
- ▲The configuration above is an example that if a packet is sent from192.168.1.10~192.168.1.100 to 8.8.8.8,
no matter what the protocol or destination port is, it will follow this route policy.
| Note: | The Source IP supports 4 options to define IP properties. |
| IP subnet can define a custom subnet. | |
| IP range can input single or plural IP address. | |
| IP object can apply to object profile defined in Objects Setting >> IP Object in advance. | |
| IP group can apply to group object profile defined in Objects Setting >> IP Group in advance. |
| Note: | The Destination IP also supports 4 options mentioned above and 2 additional options. |
| Domain Name can input a certain domain of the website. | |
|
Country Object can apply to group object profile defined in Objects Setting >> Country Object in advance. (DrayTek Routers includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.) |
- Select an Interface. Different from Static Route, in Route Policy, we can also choose a VPN as the interface.
- If you want to use multi-WAN:
- Choose WAN as Interface Type
- Click “Add” to add a new WAN Interface
- Select a WAN Interface from combobox
- Click “Delete” to delete the wan interface
- Select an Interface mode: IP-Based Load Balance / Session-Based Load Balance.
- For more details in two Load Balance mode, please refer to FAQ article: Aggregate WAN's Bandwidth
- Force NAT or Force Routing: If the packets are forwarded to WAN, Administrator could choose to do NAT to replace the source IP, or Routing to keep the source IP.
- Failover to: Allows packet to be sent through other interface or follow another Policy when detects a path failure in the original interface. The above configuration indicates that the packets will be sent through WAN2 when the original route is disconnected.
- Failback: This option is available when "Failover to" is enabled. While failover happens, then the primary interface resumes its service, enable "Failback" will clear the existing session on Failover interface and return to the original interface immediately. It might disrupt the active connection. When Failback is not enabled, the router will only stop sending packets via the Failover interface when the existing sessions are cleared. It might take a while if the application keeps sending packet once a while.
- In summary, choose Failback if you want to use the primary interface as much as possible and don't choose it to keep the connection stable.
it will be sent to the default gateway then the destination through VPN1.
- Details
