-
-
Notifications
You must be signed in to change notification settings - Fork 387
Expand file tree
/
Copy pathdialog_manage_routes.ui
More file actions
776 lines (770 loc) · 26.3 KB
/
Copy pathdialog_manage_routes.ui
File metadata and controls
776 lines (770 loc) · 26.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DialogManageRoutes</class>
<widget class="QDialog" name="DialogManageRoutes">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>893</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>Routes</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="styleSheet">
<string notr="true">QTabWidget::pane {
margin-top: 1px;
border: 1px solid #777777;
border-radius: 4px;
}
QTabBar {
background: transparent;
qproperty-drawBase: 0;
}
QTabBar::tab {
border: 1px solid #777777;
border-radius: 4px;
padding: 2px 4px;
margin-right: 1px;
}
QTabBar::tab:selected {
border: 1px solid palette(highlight);
background: palette(highlight);
color: palette(highlighted-text);
}
QTabBar::tab:!selected {
border: 1px solid #777777;
}
QTabBar::tab:hover:!selected {
border: 1px solid #777777;
}</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Common</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QWidget" name="widget" native="true">
<layout class="QGridLayout" name="gridLayout_2">
<item row="3" column="1">
<widget class="QComboBox" name="route_prof"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="toolTip">
<string><html><head/><body><p>Used as default strategy when resolving outbound/dns server Domain addresses</p></body></html></string>
</property>
<property name="text">
<string>Default Domain Strategy</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="domainStrategyCombo">
<property name="editable">
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="default_domain_strategy">
<property name="editable">
<bool>false</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="ruleset_mirror_l">
<property name="text">
<string>Remote Rule-set Mirror</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="toolTip">
<string><html><head/><body><p>If not empty, resolves domains in requests according to the strategy</p></body></html></string>
</property>
<property name="text">
<string>Resolve Domain Strategy</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="route_prof_l">
<property name="text">
<string>Routing Profile</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="ruleset_mirror">
<item>
<property name="text">
<string>GitHub</string>
</property>
</item>
<item>
<property name="text">
<string>jsDelivr(Cloudflare)</string>
</property>
</item>
<item>
<property name="text">
<string>jsDelivr(Gcore)</string>
</property>
</item>
<item>
<property name="text">
<string>jsDelivr(Quantil)</string>
</property>
</item>
<item>
<property name="text">
<string>jsDelivr(Fastly)</string>
</property>
</item>
<item>
<property name="text">
<string>jsDelivr(CDN)</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Hijack</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QGroupBox" name="hijack_box">
<property name="title">
<string>DNS Server</string>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QCheckBox" name="dnshijack_enable">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="dnshijack_what">
<property name="text">
<string>How does it work?</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="dnshijack_listenport_l">
<property name="text">
<string>Listen Port</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="dnshijack_listenport"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="dnshijack_v4resp_l">
<property name="text">
<string>IPv4 Response</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="dnshijack_v4resp"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="dnshijack_v6resp_l">
<property name="text">
<string>IPv6 Response</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="dnshijack_v6resp"/>
</item>
<item row="6" column="0">
<widget class="QLabel" name="dnshijack_rules_l">
<property name="toolTip">
<string><html><head/><body><p>Following format should be used:<br/>domain:a.com</p><p>suffix:a.com</p><p>regex:someregex</p><p>rule_set:nameOfRuleSet</p></body></html></string>
</property>
<property name="text">
<string>Rules</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QTextEdit" name="dnshijack_rules"/>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="dnshijack_allow_lan">
<property name="toolTip">
<string><html><head/><body><p>Whether to listen on 0.0.0.0 so that other devices on LAN can use this server</p></body></html></string>
</property>
<property name="text">
<string>Allow Lan to Connect</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Redirect Settings</string>
</property>
<layout class="QFormLayout" name="formLayout_2">
<item row="2" column="1">
<widget class="QLineEdit" name="redirect_listenport"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="redirect_listenport_l">
<property name="text">
<string>Listen Port</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="redirect_enable">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="redirect_listenaddr"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="redirect_listenaddr_l">
<property name="text">
<string>Listen Address</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>Warp</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QWidget" name="widget_3" native="true">
<layout class="QFormLayout" name="formLayout_3">
<item row="0" column="0">
<widget class="QCheckBox" name="enable_warp">
<property name="toolTip">
<string><html><head/><body><p>Enables the following config to be used as egress, useful for bypassing services restrciting non-warp VPNs</p></body></html></string>
</property>
<property name="text">
<string>Enable Warp</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Endpoint</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="warp_ep"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Private Key</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="warp_private_key"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Public Key</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="warp_public_key"/>
</item>
<item row="7" column="1">
<widget class="QPushButton" name="warp_autogen">
<property name="toolTip">
<string><html><head/><body><p>Gets a new config from cloudflare API</p></body></html></string>
</property>
<property name="text">
<string>Generate Warp Config</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="warp_reserved"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Reserved</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Interface Addresses</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="warp_ifc_addrs"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>DNS</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QGroupBox" name="simple_dns_box">
<property name="title">
<string>Simple DNS Settings</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="label_8">
<property name="toolTip">
<string>This is especially important and it is recommended to use the default value of "localhost".
If the default value does not work, try changing it to "223.5.5.5".
For more information, see the document "Configuration/DNS".</string>
</property>
<property name="text">
<string>Direct DNS</string>
</property>
</widget>
</item>
<item row="1" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QComboBox" name="remote_dns">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string notr="true">tls://8.8.8.8</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">tls://1.1.1.1</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">8.8.8.8</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">1.1.1.1</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="text">
<string>Query Strategy</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="remote_dns_strategy"/>
</item>
</layout>
</item>
<item row="2" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QComboBox" name="direct_dns">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string notr="true">localhost</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">223.5.5.5</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">119.29.29.29</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">178.22.122.100</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">77.88.8.8</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="text">
<string>Query Strategy</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="direct_dns_strategy"/>
</item>
</layout>
</item>
<item row="4" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLineEdit" name="local_override"/>
</item>
</layout>
</item>
<item row="6" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QComboBox" name="dns_final_out">
<item>
<property name="text">
<string notr="true">remote</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">direct</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="enable_fakeip">
<property name="text">
<string>Enable FakeIP</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="enable_dns_routing">
<property name="toolTip">
<string><html><head/><body><p>When enabled, domains destined for direct outbound will also be resolved using direct dns</p></body></html></string>
</property>
<property name="text">
<string>Enable DNS Routing</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="respect_hosts">
<property name="toolTip">
<string><html><head/><body><p>Answer A/AAAA queries from the system hosts file before consulting any DNS server. Only domains actually listed in the file are affected.</p></body></html></string>
</property>
<property name="text">
<string>Respect Hosts File</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="predefined_dns">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Predefined Answers</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_9">
<property name="toolTip">
<string><html><head/><body><p>examples:<br/>tls://8.8.8.8<br/>https://domain/path</p><p>tcp://8.8.8.8:1234</p><p>dhcp://auto</p><p>h3://domain/path</p><p>quic://domain:4632</p><p>etc</p></body></html></string>
</property>
<property name="text">
<string>Remote DNS</string>
</property>
<property name="buddy">
<cstring>widget</cstring>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_2">
<property name="toolTip">
<string><html><head/><body><p>Local DNS can not be used in some configurations, you will have to set an ip here to be used as local dns in such situations</p></body></html></string>
</property>
<property name="text">
<string>Local Override</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="dns_final_out_l">
<property name="text">
<string>Default DNS server</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Advanced</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QPushButton" name="dns_advanced">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string><html><head/><body><p>Cache behaviour, optimistic cache and query timeout.</p></body></html></string>
</property>
<property name="text">
<string>Advanced Settings</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QCheckBox" name="use_dns_object">
<property name="text">
<string>Use Custom DNS Object</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="dns_object_edit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Edit DNS Object</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Route</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QGroupBox" name="route_profiles_box">
<property name="title">
<string>Routing Profiles</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QListWidget" name="route_profiles"/>
</item>
<item>
<widget class="QWidget" name="widget_2" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="new_route">
<property name="text">
<string>New</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="clone_route">
<property name="text">
<string>Clone</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="export_route">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="import_route">
<property name="text">
<string>Import</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="edit_route">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="delete_route">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="update_route">
<property name="toolTip">
<string>Update the selected remote routing profile, or all of them</string>
</property>
<property name="text">
<string>Update</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>domainStrategyCombo</tabstop>
<tabstop>default_domain_strategy</tabstop>
<tabstop>remote_dns</tabstop>
<tabstop>remote_dns_strategy</tabstop>
<tabstop>direct_dns</tabstop>
<tabstop>direct_dns_strategy</tabstop>
<tabstop>dns_final_out</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>DialogManageRoutes</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>399</x>
<y>574</y>
</hint>
<hint type="destinationlabel">
<x>399</x>
<y>299</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>DialogManageRoutes</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>399</x>
<y>574</y>
</hint>
<hint type="destinationlabel">
<x>399</x>
<y>299</y>
</hint>
</hints>
</connection>
</connections>
</ui>