udptunnel: new package
[feed/packages.git] / net / nft-qos / files / nft-qos.config
1 #
2 # Copyright (C) 2018 rosysong@rosinson.com
3 #
4 # This is the sample for nft-qos configuration file,
5 # which will generate a nftables script in /tmp/qos.nft
6 #
7
8 # Getting Started
9 # Official site :
10 # https://netfilter.org/projects/nftables/index.html
11 # What is nftables :
12 # https://wiki.nftables.org/wiki-nftables/index.php/Main_Page
13 #
14
15 # Basic Operations
16 # Configuring Tables :
17 # https://wiki.nftables.org/wiki-nftables/index.php/Configuring_tables
18 # Configuring Chains :
19 # https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains
20 # Configuring Rules :
21 # https://wiki.nftables.org/wiki-nftables/index.php/Simple_rule_management
22 # Quick Reference (recommended) :
23 # https://wiki.nftables.org/wiki-nftables/index.php/Quick_reference-nftables_in_10_minutes
24 # https://netfilter.org/projects/nftables/manpage.html
25 #
26
27 config default default
28 # Enable Flag for limit rate
29 option limit_enable '1'
30
31 # Options for enable Static QoS (rate limit)
32 option limit_type 'static'
33 # Options for Static QoS (rate limit)
34 option static_unit_dl 'kbytes'
35 option static_unit_ul 'kbytes'
36 option static_rate_dl '50'
37 option static_rate_ul '50'
38
39 # Options for enable Dynamic QoS
40 # This option can not compatible with Static QoS
41 # option limit_type 'dynamic'
42
43 # For Dynamic QoS Samples (unit of bandwidth is Mbps):
44 option dynamic_cidr '192.168.1.0/24'
45 option dynamic_cidr6 'AAAA:BBBB::1/64'
46 option dynamic_bw_up '100'
47 option dynamic_bw_down '100'
48
49 # White list for static/dynamic limit
50 # list limit_whitelist '192.168.1.225'
51 # list limit_whitelist '192.168.1.0/24'
52 # list limit_whitelist 'ABCD:CDEF::1/64'
53
54 # Options for Traffic Priority
55 option priority_enable '0'
56 option priority_netdev 'lan'
57
58
59 #
60 # For Static QoS Rate Limit Samples :
61 #
62 # For Download :
63 #config download
64 # option hostname 'My PC'
65 # option unit 'kbytes'
66 # option ipaddr '192.168.1.224'
67 # option rate '128'
68 #
69 # For Upload :
70 #config upload
71 # option hostname 'office-pc'
72 # option unit 'mbytes'
73 # option ipaddr 'ABCD:FFED::1/64'
74 # option rate '1024'
75 #
76 #
77 # Traffic Priority Samples :
78 #
79 # protocol : tcp, udp, udplite, sctp, dccp, tcp is default
80 # priority : integer between 1-11, 1 is default
81 # service : you can input a integer or service name, e.g. '22', '11-22', 'telnet', 'ssh, http, ftp', etc
82 #
83 #config priority
84 # option protocol 'tcp'
85 # option priority '-400'
86 # option service '23'
87 # option comment '?'
88 #
89 #config priority
90 # option protocol 'udp'
91 # option priority '-400'
92 # option service 'https'
93 # option comment '?'
94 #
95 #config priority
96 # option protocol 'dccp'
97 # option priority '0'
98 # option service '22-35'
99 # option comment '?'
100 #
101 #config priority
102 # option protocol 'dccp'
103 # option priority '300'
104 # option service 'ftp,ssh,http'
105 # option comment '?'
106 #