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
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
|
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2010-10-21 23:56+0600\n"
"PO-Revision-Date: 2009-10-12 06:12+0400\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(guide:link):5
msgid "/doc/en/home-router-howto.xml"
msgstr "/doc/ru/home-router-howto.xml"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(guide:lang):5
msgid "en"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):6
msgid "Home Router Guide"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(author:title):8
msgid "Author"
msgstr "автор"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(mail:link):9
#, fuzzy
msgid "vapier@gentoo.org"
msgstr "vapier@gentoo.org"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(mail):9
#, fuzzy
msgid "Mike Frysinger"
msgstr "Mike Frysinger"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(abstract):12
msgid ""
"This document details how to turn an old Gentoo machine into a router for "
"connecting your home network to the internet."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(version):20
msgid "1.40"
msgstr "1.40"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(date):21
msgid "2009-09-18"
msgstr "2009-09-18"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):24
#, fuzzy
msgid "Introduction"
msgstr "Введение"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):28
msgid ""
"Building your own router out of old spare parts has many advantages over "
"buying a pre-made canned router by say Linksys. The biggest one by far is "
"control over the connection. The other advantages are left up to your "
"imagination; just about anything can be done in this scenario, it's just a "
"matter of needing it."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):36
msgid ""
"This guide will show you how to setup Network Address Translation (NAT) on "
"the router (kernel and iptables), add and configure common services (Domain "
"Name System (DNS) via dnsmasq, dhcp via dhcpcd, ADSL via ppp), and conclude "
"with more elaborate and fun things that can be done (port forwarding, "
"traffic shaping, proxies/caching, etc...)."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):44
msgid ""
"Before getting started, there's a few basic requirements you must meet. "
"First, you'll need a computer that has at least 2 Network Interface Cards "
"(NICs) in it. Next, you'll need the configuration settings for your internet "
"connection (may include things like IP/DNS/Gateway/username/password). "
"Finally, you'll need a bit of spare time and some Gentoo loving."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):52
msgid "The conventions used in this guide are:"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(li):57
msgid "eth0 - NIC connected to the Local Area Network (LAN)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(li):58
msgid "eth1 - NIC connected to the Wide Area Network (WAN)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(li):59
msgid "LAN utilizes the private 192.168.0.xxx network"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(li):60
msgid "router is hardcoded to the standard 192.168.0.1 IP"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(li):61
msgid "router is running Linux 2.4 or 2.6; you're on your own with 2.0/2.2"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(impo):64
msgid ""
"Due to security precautions, I would highly suggest you shut down any "
"unneeded services on the router until we have a chance to get the firewall "
"up and rolling. To view the currently running services, just run <c>rc-"
"status</c>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):75
msgid "Kernel setup (know thyself first)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):79
msgid ""
"Your kernel needs to have the drivers running for both your NICs. To see if "
"your cards are already setup, just run <c>ifconfig</c>. Your output may "
"differ slightly from the following, that's fine. What matters is that the "
"interface shows up at all."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):86
msgid "Checking NICs"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):86
#, no-wrap
msgid ""
"\n"
"# <i>ifconfig -a</i>\n"
"eth0 Link encap:Ethernet HWaddr 00:60:F5:07:07:B8\n"
" BROADCAST MULTICAST MTU:1500 Metric:1\n"
" RX packets:0 errors:0 dropped:0 overruns:0 frame:0\n"
" TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\n"
" collisions:0 txqueuelen:1000\n"
" RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)\n"
" Interrupt:11 Base address:0x9800\n"
"\n"
"eth1 Link encap:Ethernet HWaddr 00:60:F5:07:07:B9\n"
" BROADCAST MULTICAST MTU:1500 Metric:1\n"
" RX packets:0 errors:0 dropped:0 overruns:0 frame:0\n"
" TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\n"
" collisions:0 txqueuelen:1000\n"
" RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)\n"
" Interrupt:10 Base address:0x9400\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):105
msgid ""
"If you do not see your two cards showing up and you're not sure what kind of "
"cards you have, try running <c>lspci | grep Ethernet</c>. You can get that "
"from <c>emerge pciutils</c>. Once you have this information, go into your "
"kernel and add support for the correct drivers."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):112
msgid ""
"The next thing you'll need is support for iptables and NAT (and packet "
"shaping if you want). The following list is split up into always required "
"(*), required only for adsl via PPPoE (a), suggested for everyone (x), and "
"only for shaper (s) features. It does not matter whether you build the "
"features into the kernel or as a module so long as when the feature is "
"needed, the correct module(s) are loaded (module loading is left to the "
"reader as a fun exercise however)."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):122
msgid "Network Options"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):122
#, no-wrap
msgid ""
"\n"
"Networking options --->\n"
" [*] TCP/IP networking\n"
" [*] IP: advanced router\n"
" [*] Network packet filtering (replaces ipchains)\n"
"<comment>If you use 2.4.x, you have to enable the following for DHCP:</comment>\n"
" [*] Socket Filtering\n"
"\n"
" IP: Netfilter Configuration --->\n"
" [*] Connection tracking (required for masq/NAT)\n"
" [x] FTP protocol support\n"
" [x] IRC protocol support\n"
" [*] IP tables support (required for filtering/masq/NAT)\n"
" [*] IP range match support\n"
" [x] MAC address match support\n"
" [*] Multiple port match support\n"
" [*] Packet filtering\n"
" [*] REJECT target support\n"
" [x] REDIRECT target support\n"
" [*] Full NAT\n"
" [*] MASQUERADE target support\n"
" [s] Packet mangling\n"
" [s] MARK target support\n"
" [x] LOG target support\n"
"\n"
" QoS and/or fair queueing --->\n"
" [s] QoS and/or fair queueing\n"
" [s] HTB packet scheduler\n"
" [s] Ingress Qdisc\n"
"\n"
" [a] PPP (point-to-point protocol) support\n"
" [a] PPP filtering\n"
" [a] PPP support for async serial ports\n"
" [a] PPP support for sync tty ports\n"
" [a] PPP Deflate compression\n"
" [a] PPP BSD-Compress compression\n"
" [a] PPP over Ethernet\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(note):161
msgid ""
"Some things may be slightly different in a 2.4 vs 2.6 kernel, but you should "
"be able to figure it out :). Even among 2.6 kernels, these options have a "
"tendency to move around. Good luck!"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):172
msgid "Hug the WAN (a.k.a. The Internet)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):175
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):494
msgid "Intro"
msgstr "Введение"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):178
msgid ""
"There are many ways to connect to the internet so I'll just cover the ones "
"I'm familiar with. That leaves us with ADSL (PPPoE) and cable modems (static/"
"dynamic). If there are other methods out there, feel free to write up a "
"little blurb and e-mail me. Feel free to skip any of the following sections "
"in this chapter that don't apply to you. This chapter is just about getting "
"the router connected to the internet via eth1."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):190
msgid "ADSL and PPPoE"
msgstr "ADSL и PPPoE"
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):193
msgid ""
"All the fancy PPPoE software that used to be provided by rp-pppoe (<uri link="
"\"http://www.roaringpenguin.com/\">Roaring Penguin</uri>) has been "
"integrated into the <uri link=\"http://samba.org/ppp/\">standard PPP "
"package</uri>. Simply <c>emerge ppp</c> and you'll be on your way. Remember "
"how I said you'll need username/password information? Well I wasn't lying so "
"I hope you have it now! Load up <path>/etc/conf.d/net</path> in your "
"favorite editor and set it up."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(note):203
msgid ""
"In order for the following net settings to work, you must have "
"baselayout-1.12.9 or later installed on your system."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):208
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):259
msgid "Setting up eth1"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):208
#, no-wrap
msgid ""
"\n"
"<comment>(Replace 'vla9h924' with your username and 'boogie' with your password)</comment>\n"
"\n"
"# <i>nano /etc/conf.d/net</i>\n"
"<comment>Tell baselayout to use adsl over eth1 for ppp0:</comment>\n"
"config_ppp0=( \"ppp\" )\n"
"link_ppp0=\"eth1\"\n"
"plugins_ppp0=( \"pppoe\" )\n"
"pppd_ppp0=(\n"
" \"defaultroute\"\n"
" \"usepeerdns\"\n"
" <comment>There may be other settings you want, see /etc/conf.d/net.example</comment>\n"
")\n"
"username_ppp0=\"vla9h924\"\n"
"password_ppp0=\"boogie\"\n"
"\n"
"# <i>ln -s net.lo /etc/init.d/net.ppp0</i>\n"
"# <i>rc-update add net.ppp0 default</i>\n"
"# <i>/etc/init.d/net.ppp0 start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(warn):229
msgid ""
"When the DSL interface comes up, it will create ppp0. Although your NIC is "
"called eth1, the IP is actually bound to ppp0. From now on, when you see "
"examples that utilize 'eth1', substitute with 'ppp0'."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(warn):235
msgid ""
"Make sure you change the permissions of the /etc/conf.d/net file so that "
"only root can read/write it since you're sticking your username/password in "
"it."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(warn):240
msgid ""
"For people transitioning from the <c>rp-pppoe</c> package, or for people who "
"hit weird connection resets, see the MTU section in the Troubleshooting "
"chapter."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):250
msgid "Cable and/or dynamic/static IP"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):253
msgid ""
"If you have a static IP then you will need a few more details than if you "
"have a dynamic IP. For static users, you will need your IP, gateway, and DNS "
"servers."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):259
#, no-wrap
msgid ""
"\n"
"<comment>Dynamic IP Users:</comment>\n"
"# <i>emerge dhcpcd</i>\n"
"# <i>nano /etc/conf.d/net</i>\n"
"<comment>You'll need an entry like so:</comment>\n"
"config_eth1=( \"dhcp\" )\n"
"\n"
"<comment>Static IP Users:</comment>\n"
"# <i>nano /etc/conf.d/net</i>\n"
"<comment>You'll need entries like so:</comment>\n"
"config_eth1=( \"66.92.78.102 broadcast 66.92.78.255 netmask 255.255.255.0\" )\n"
"routes_eth1=( \"default gw 66.92.78.1\" )\n"
"# <i>nano /etc/resolv.conf</i>\n"
"<comment>Add one line per DNS server:</comment>\n"
"nameserver 123.123.123.123\n"
"\n"
"<comment>Dynamic and Static Setup:</comment>\n"
"# <i>ln -s net.lo /etc/init.d/net.eth1</i>\n"
"# <i>rc-update add net.eth1 default</i>\n"
"# <i>/etc/init.d/net.eth1 start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):281
msgid "You should be all set to go now."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):290
msgid "Hug the LAN (bring along some friends)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):294
msgid "This step is a breeze compared to the previous one."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):298
msgid "Setting up eth0"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):298
#, no-wrap
msgid ""
"\n"
"# <i>nano /etc/conf.d/net</i>\n"
"<comment>Add a line like the following:</comment>\n"
"config_eth0=( \"192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0\" )\n"
"# <i>rc-update add net.eth0 default</i>\n"
"# <i>/etc/init.d/net.eth0 start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):311
msgid "LAN Services (because we're nice people)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):314
msgid "DHCP Server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):317
msgid ""
"I bet it'd be nice if everyone else in your house could just plug their "
"computers into the network and things would just work. No need to remember "
"mind-numbing details or make them stare at confusing configuration screens! "
"Life would be grand eh? Introducing the Dynamic Host Configuration Protocol "
"(DHCP) and why you should care."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):325
msgid ""
"DHCP is exactly what its name implies. It's a protocol that allows you to "
"dynamically configure other hosts automatically. You run a DHCP server on "
"the router, give it all the information about your network (valid IPs, DNS "
"servers, gateways, etc...), and then when the other hosts start up, they run "
"a DHCP client to automatically configure themselves. No fuss, no muss! For "
"more information about DHCP, you can always visit <uri link=\"http://en."
"wikipedia.org/wiki/DHCP\">Wikipedia</uri>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):335
msgid ""
"We'll use a package called dnsmasq which provides both DHCP and DNS "
"services. For now lets just focus on the DHCP aspect. Note that if you want "
"to run a different DHCP server, you can find another example in the Fun "
"Things chapter. Also, if you wish to tinker with the DHCP server settings, "
"just read the comments in <path>/etc/dnsmasq.conf</path>. All the defaults "
"should work fine though."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):344
msgid "Setting up a DHCP server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):344
#, no-wrap
msgid ""
"\n"
"# <i>emerge dnsmasq</i>\n"
"# <i>nano /etc/dnsmasq.conf</i>\n"
"<comment>Add this line to enable dhcp:</comment>\n"
"dhcp-range=192.168.0.100,192.168.0.250,72h\n"
"<comment>Restrict dnsmasq to just the LAN interface</comment>\n"
"interface=eth0\n"
"\n"
"# <i>rc-update add dnsmasq default</i>\n"
"# <i>/etc/init.d/dnsmasq start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):356
msgid ""
"Now your little router is a bona-fide DHCP server! Plugin those computers "
"and watch them work! With Windows systems you should go into the TCP/IP "
"Properties and select the 'Obtain an IP address automatically' and 'Obtain "
"DNS server address automatically' options. Sometimes the changes aren't "
"instantaneous, so you may have to open a command prompt and run <c>ipconfig /"
"release</c> and <c>ipconfig /renew</c>. But enough about Windows, let's get "
"back to our favorite penguin."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):370
msgid "DNS Server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):373
msgid ""
"When people want to visit a place on the internet, they remember names, not "
"a string of funky numbers. After all, what's easier to remember, ebay.com or "
"66.135.192.87? This is where the DNS steps in. DNS servers run all over the "
"internet, and whenever someone wants to visit 'ebay.com', these servers turn "
"'ebay.com' (what we understand) into '66.135.192.87' (what our computers "
"understand). For more information about DNS, you can always visit <uri link="
"\"http://en.wikipedia.org/wiki/DNS\">Wikipedia</uri>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):383
msgid ""
"Since we're using dnsmasq for our DHCP server, and it includes a DNS server, "
"you've got nothing left to do here! Your little router is already providing "
"DNS to its DHCP clients. Bet you wish everything was this easy ;)."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):389
msgid ""
"You're welcome to choose other DNS servers if you're more comfortable with "
"them, but the reason dnsmasq is great is because it was designed to do "
"exactly what we want and nothing more. It's a little DNS caching/forwarding "
"server for local networks. We're not looking to provide DNS for our own "
"domain here, just offer simple DNS services to everyone else on our LAN."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):401
msgid "NAT (a.k.a. IP-masquerading)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):404
msgid ""
"At this point, people on your network can talk to each other and they can "
"look up hostnames via DNS, but they still can't actually connect to the "
"internet. While you may think that's great (more bandwidth for you!), I bet "
"they're not too happy just yet."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):411
msgid ""
"This is where Network Address Translation (NAT) steps in. NAT is a way of "
"connecting multiple computers in a private LAN to the internet when you have "
"a smaller number of public IP addresses available to you. Typically you are "
"given 1 IP by your ISP, but you want to let your whole house connect to the "
"internet. NAT is the magic that makes this possible. For more information "
"about NAT, you can always visit <uri link=\"http://en.wikipedia.org/wiki/NAT"
"\">Wikipedia</uri>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(note):420
msgid ""
"Before we get started, make sure you have iptables on your system. Although "
"it is automatically installed on most systems, you may not have it. If you "
"don't, just run <c>emerge iptables</c>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):426
msgid "Setting up iptables"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):426
#, no-wrap
msgid ""
"\n"
"<comment>First we flush our current rules</comment>\n"
"# <i>iptables -F</i>\n"
"# <i>iptables -t nat -F</i>\n"
"\n"
"<comment>Setup default policies to handle unmatched traffic</comment>\n"
"# <i>iptables -P INPUT ACCEPT</i>\n"
"# <i>iptables -P OUTPUT ACCEPT</i>\n"
"# <i>iptables -P FORWARD DROP</i>\n"
"\n"
"<comment>Copy and paste these examples ...</comment>\n"
"# <i>export LAN=eth0</i>\n"
"# <i>export WAN=eth1</i>\n"
"\n"
"<comment>Then we lock our services so they only work from the LAN</comment>\n"
"# <i>iptables -I INPUT 1 -i ${LAN} -j ACCEPT</i>\n"
"# <i>iptables -I INPUT 1 -i lo -j ACCEPT</i>\n"
"# <i>iptables -A INPUT -p UDP --dport bootps ! -i ${LAN} -j REJECT</i>\n"
"# <i>iptables -A INPUT -p UDP --dport domain ! -i ${LAN} -j REJECT</i>\n"
"\n"
"<comment>(Optional) Allow access to our ssh server from the WAN</comment>\n"
"# <i>iptables -A INPUT -p TCP --dport ssh -i ${WAN} -j ACCEPT</i>\n"
"\n"
"<comment>Drop TCP / UDP packets to privileged ports</comment>\n"
"# <i>iptables -A INPUT -p TCP ! -i ${LAN} -d 0/0 --dport 0:1023 -j DROP</i>\n"
"# <i>iptables -A INPUT -p UDP ! -i ${LAN} -d 0/0 --dport 0:1023 -j DROP</i>\n"
"\n"
"<comment>Finally we add the rules for NAT</comment>\n"
"# <i>iptables -I FORWARD -i ${LAN} -d 192.168.0.0/255.255.0.0 -j DROP</i>\n"
"# <i>iptables -A FORWARD -i ${LAN} -s 192.168.0.0/255.255.0.0 -j ACCEPT</i>\n"
"# <i>iptables -A FORWARD -i ${WAN} -d 192.168.0.0/255.255.0.0 -j ACCEPT</i>\n"
"# <i>iptables -t nat -A POSTROUTING -o ${WAN} -j MASQUERADE</i>\n"
"<comment>Tell the kernel that ip forwarding is OK</comment>\n"
"# <i>echo 1 > /proc/sys/net/ipv4/ip_forward</i>\n"
"# <i>for f in /proc/sys/net/ipv4/conf/*/rp_filter ; do echo 1 > $f ; done</i>\n"
"\n"
"<comment>This is so when we boot we don't have to run the rules by hand</comment>\n"
"# <i>/etc/init.d/iptables save</i>\n"
"# <i>rc-update add iptables default</i>\n"
"# <i>nano /etc/sysctl.conf</i>\n"
"<comment>Add/Uncomment the following lines:</comment>\n"
"net.ipv4.ip_forward = 1\n"
"net.ipv4.conf.default.rp_filter = 1\n"
"\n"
"<comment>If you have a dynamic internet address you probably want to enable this:</comment>\n"
"net.ipv4.ip_dynaddr = 1\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):474
msgid ""
"Once you've typed out all of that, the rest of your network should now be "
"able to use the internet as if they were directly connected themselves."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):479
msgid ""
"The ip_dynaddr option is useful for dial on demand systems or when your ISP "
"gives out dynamic addresses. This works around the problem where a "
"connection is attempted before the internet interface is fully setup. Really "
"this just provides for a smoother network experience for users behind your "
"router."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):491
msgid "Fun Things (for a rainy day)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):497
msgid ""
"Believe it or not, you're done :). From here on out, I'll cover a bunch of "
"common topics that may interest you. Everything in this chapter is "
"completely optional."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):507
msgid "Port Forwarding"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):510
msgid ""
"Sometimes you would like to be able to host services on a computer behind "
"the router, or just to make your life easier when connecting remotely. "
"Perhaps you want to run a FTP, HTTP, SSH, or VNC server on one or more "
"machines behind your router and be able to connect to them all. The only "
"caveat is that you can only have one service/machine combo per port. For "
"example, there is no practical way to setup three FTP servers behind your "
"router and then try to connect to them all through port 21; only one can be "
"on port 21 while the others would have to be on say port 123 and port 567."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):521
msgid ""
"All the port forwarding rules are of the form <c>iptables -t nat -A "
"PREROUTING [-p protocol] --dport [external port on router] -i ${WAN} -j DNAT "
"--to [ip/port to forward to]</c>. Unfortunately, iptables does not accept "
"hostnames when port forwarding. If you are forwarding an external port to "
"the same port on the internal machine, you can omit the destination port. "
"See the iptables(8) man page for more information."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):530
msgid "Running the iptables commands"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):530
#, no-wrap
msgid ""
"\n"
"<comment>Copy and paste these examples ...</comment>\n"
"# <i>export LAN=eth0</i>\n"
"# <i>export WAN=eth1</i>\n"
"\n"
"<comment>Forward port 2 to ssh on an internal host</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 2 -i ${WAN} -j DNAT --to 192.168.0.2:22</i>\n"
"\n"
"<comment>FTP forwarding to an internal host</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 21 -i ${WAN} -j DNAT --to 192.168.0.56</i>\n"
"\n"
"<comment>HTTP forwarding to an internal host</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 80 -i ${WAN} -j DNAT --to 192.168.0.56</i>\n"
"\n"
"<comment>VNC forwarding for internal hosts</comment>\n"
"# <i>iptables -t nat -I PREROUTING -p tcp --dport 5900 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"# <i>iptables -t nat -I PREROUTING -p tcp --dport 5901 -i ${WAN} -j DNAT --to 192.168.0.3:5900</i>\n"
"<comment>If you want to VNC in to 192.168.0.3, then just add ':1' to the router's hostname</comment>\n"
"\n"
"<comment>SAMBA forwarding to an internal host (excess ports to cover Windows)</comment>\n"
"# <i>iptables -t nat -I PREROUTING -p tcp --dport 135 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"# <i>iptables -t nat -I PREROUTING -p tcp --dport 139 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"# <i>iptables -t nat -I PREROUTING -p tcp --dport 445 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"# <i>iptables -t nat -I PREROUTING -p udp --dport 137:138 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"# <i>iptables -t nat -I PREROUTING -p udp --dport 445 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"\n"
"<comment>Bittorrent forwarding</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 6881:6889 -i ${WAN} -j DNAT --to 192.168.0.2</i>\n"
"\n"
"<comment>eDonkey/eMule forwarding</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 4662 -i ${WAN} -j DNAT --to 192.168.0.55</i>\n"
"\n"
"<comment>Game Cube Warp Pipe support</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p udp --dport 4000 -i ${WAN} -j DNAT --to 192.168.0.56</i>\n"
"\n"
"<comment>Playstation 2 Online support</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 10070:10080 -i ${WAN} -j DNAT --to 192.168.0.11</i>\n"
"# <i>iptables -t nat -A PREROUTING -p udp --dport 10070:10080 -i ${WAN} -j DNAT --to 192.168.0.11</i>\n"
"\n"
"<comment>Xbox Live</comment>\n"
"# <i>iptables -t nat -A PREROUTING -p tcp --dport 3074 -i ${WAN} -j DNAT --to 192.168.0.69</i>\n"
"# <i>iptables -t nat -A PREROUTING -p udp --dport 3074 -i ${WAN} -j DNAT --to 192.168.0.69</i>\n"
"# <i>iptables -t nat -A PREROUTING -p udp --dport 88 -i ${WAN} -j DNAT --to 192.168.0.69</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(note):575
msgid ""
"If you have other common / cool examples, please <mail link=\"vapier@gentoo."
"org\">e-mail me</mail>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):584
msgid "Identd (for IRC)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):587
msgid ""
"Internet Relay Chat utilizes the ident service pretty heavily. Now that the "
"IRC clients are behind the router, we need a way to host ident for both the "
"router and the clients. One such server has been created called <c>midentd</"
"c>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):594
msgid "Setting up ident"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):594
#, no-wrap
msgid ""
"\n"
"# <i>emerge midentd</i>\n"
"# <i>rc-update add midentd default</i>\n"
"# <i>/etc/init.d/midentd start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):600
msgid ""
"There are a few other ident servers in portage. Depending on your needs, I "
"would recommend checking out <c>oidentd</c> and <c>fakeidentd</c>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):682
msgid "Time Server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):685
msgid ""
"Keeping your system time correct is essential in maintaining a healthy "
"system. One of the most common ways of accomplishing this is with the "
"Network Time Protocol (NTP) and the ntp package (which provides "
"implementations for both server and client)."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):692
msgid ""
"Many people run ntp clients on their computers. Obviously, the more clients "
"in the world, the larger the load the ntp servers need to shoulder. In "
"environments like home networks though, we can help keep the load down on "
"public servers while still providing the proper time to all our computers. "
"As an added bonus, our private updates will be a lot faster for the clients "
"too! All we have to do is run a ntp server on our router that synchronizes "
"itself with the public internet servers while providing the time to the rest "
"of the computers in the network. To get started, simply <c>emerge ntp</c> on "
"the router."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):704
msgid "Setting up the NTP server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):704
#, no-wrap
msgid ""
"\n"
"# <i>nano /etc/conf.d/ntp-client</i>\n"
"<comment>Customize if you wish but the defaults should be fine</comment>\n"
"# <i>rc-update add ntp-client default</i>\n"
"\n"
"# <i>nano /etc/ntp.conf</i>\n"
"<comment>Add the follwing lines:</comment>\n"
"restrict default ignore\n"
"restrict 192.168.0.0 mask 255.255.255.0 notrust nomodify notrap\n"
"<comment>These will allow only ntp clients with an IP\n"
"address in the 192.168.0.xxx range to use your ntp server</comment>\n"
"# <i>nano /etc/conf.d/ntpd</i>\n"
"<comment>Customize if you wish but the defaults should be fine</comment>\n"
"# <i>rc-update add ntpd default</i>\n"
"\n"
"# <i>/etc/init.d/ntp-client start</i>\n"
"# <i>/etc/init.d/ntpd start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(note):723
msgid ""
"You should make sure that you allow inbound and outbound communication on "
"the ntp port (123/udp) when setting up the server. The client just needs "
"outbound access on port 123 over udp."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):729
msgid ""
"Now, on your clients, have them <c>emerge ntp</c> also. However, we will "
"just run the ntp client so setup is a lot simpler."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):734
msgid "Setting up a NTP client"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):734
#, no-wrap
msgid ""
"\n"
"# <i>nano /etc/conf.d/ntp-client</i>\n"
"<comment>Change the 'pool.ntp.org' server in the NTPCLIENT_OPTS variable to '192.168.0.1'</comment>\n"
"# <i>rc-update add ntp-client default</i>\n"
"# <i>/etc/init.d/ntp-client start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):745
msgid "Rsync Server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):748
msgid ""
"For those who run multiple Gentoo boxes on the same lan, you often want to "
"keep from having every machine running <c>emerge sync</c> with remote "
"servers. By setting up a local rsync, you save on both your bandwidth and "
"the Gentoo rsync servers' bandwidth. It's pretty simple to do."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(note):755
msgid ""
"For a much more in-depth rsync guide, please see the official <uri link=\"/"
"doc/en/rsync.xml#local\">rsync guide</uri>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):760
msgid ""
"Since every Gentoo machine requires rsync, theres no need to emerge it. Edit "
"the default <path>/etc/rsyncd.conf</path> config file, uncomment the <c>"
"[gentoo-portage]</c> section, and make sure you add an <c>address</c> "
"option. All the other defaults should be fine."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):767
msgid "Rsync server config"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):767
#, no-wrap
msgid ""
"\n"
"pid file = /var/run/rsyncd.pid\n"
"use chroot = yes\n"
"read only = yes\n"
"address = 192.168.0.1\n"
"\n"
"[gentoo-portage]\n"
" path = /mnt/space/portage\n"
" comment = Gentoo Linux Portage tree\n"
" exclude = /distfiles /packages\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):779
msgid "Then you need to start the service (again, the defaults are OK)."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):783
msgid "Starting the rsync server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):783
#, no-wrap
msgid ""
"\n"
"# <i>/etc/init.d/rsyncd start</i>\n"
"# <i>rc-update add rsyncd default</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):788
msgid "Only thing left is to set tell your clients to sync against the router."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):792
msgid "Client SYNC settings in make.conf"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):792
#, no-wrap
msgid ""
"\n"
"SYNC=\"rsync://192.168.0.1/gentoo-portage\"\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):800
msgid "Mail Server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):803
msgid ""
"Sometimes it's nice to run your own Simple Mail Transfer Protocol (SMTP) "
"server on the router. You may have your own reason for wanting to do so, but "
"I run it so that the users see mail as being sent instantly and the work of "
"retrying/routing is left up to the mail server. Some ISPs also don't allow "
"for mail relaying for accounts that aren't part of their network (like "
"Verizon). Also, you can easily throttle the delivery of mail so that large "
"attachments won't seriously lag your connection for half an hour."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):813
msgid "Setting up SMTP"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):813
#, no-wrap
msgid ""
"\n"
"# <i>emerge netqmail</i>\n"
"<comment>make sure the output of `hostname` is correct</comment>\n"
"# <i>emerge --config netqmail</i>\n"
"# <i>iptables -I INPUT -p tcp --dport smtp ! -i ${LAN} -j REJECT</i>\n"
"# <i>ln -s /var/qmail/supervise/qmail-send /service/qmail-send</i>\n"
"# <i>ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd</i>\n"
"# <i>cd /etc/tcprules.d</i>\n"
"# <i>nano tcp.qmail-smtp</i>\n"
"\n"
"<comment>Add an entry like so to the allow section:</comment>\n"
"192.168.0.:allow,RELAYCLIENT=\"\"\n"
"\n"
"# <i>make</i>\n"
"# <i>rc-update add svscan default</i>\n"
"# <i>/etc/init.d/svscan start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):837
msgid ""
"I'm a huge fan of qmail, but you're free to use a different mta :). When you "
"setup e-mail on the hosts in your network, tell them that their SMTP server "
"is 192.168.0.1 and everything should be peachy. You might want to visit the "
"<uri link=\"http://netqmail.org/\">netqmail homepage</uri> for more "
"documentation."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):867
msgid "Full DHCP Server"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):870
msgid ""
"Earlier we used dnsmasq to provide DHCP service to all our clients. For most "
"people with a simple small LAN, this is perfect. But you may need something "
"with more features. Thus we turn to a full-featured DHCP server as provided "
"by the <uri link=\"http://www.isc.org/products/DHCP\">ISC</uri> folks."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):877
msgid "Setting up dhcpd"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):877
#, no-wrap
msgid ""
"\n"
"# <i>emerge dhcp</i>\n"
"# <i>nano /etc/dhcp/dhcpd.conf</i>\n"
"<comment>(Here is a sample configuration file:)</comment>\n"
"authoritative;\n"
"ddns-update-style interim;\n"
"subnet 192.168.0.0 netmask 255.255.255.0 {\n"
" range 192.168.0.100 192.168.0.250;\n"
" default-lease-time 259200;\n"
" max-lease-time 518400;\n"
" option subnet-mask 255.255.255.0;\n"
" option broadcast-address 192.168.0.255;\n"
" option routers 192.168.0.1;\n"
" option domain-name-servers 192.168.0.1;\n"
"}\n"
"# <i>nano /etc/conf.d/dhcpd</i>\n"
"<comment>(Set IFACE=\"eth0\")</comment>\n"
"# <i>rc-update add dhcpd default</i>\n"
"# <i>/etc/init.d/dhcpd start</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):898
msgid ""
"This is the minimal setup required to replace the dnsmasq DHCP functionality "
"that we used earlier. Speaking of which, you did remember to disable the "
"DHCP features in dnsmasq didn't you? If not, you should do so now (just "
"comment out the <c>dhcp-range</c> setting in <path>/etc/dnsmasq.conf</path> "
"and restart the service)."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):910
msgid "Connect Another LAN (or two or three or ...)"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):913
msgid ""
"Sometimes you have need of connecting the router to another LAN. Maybe you "
"want to hook up a group of friends temporarily, or you're a neat freak and "
"want to section off different groups of computers, or you're just really "
"really bored. Whatever the reasons, extending the router to other LAN "
"networks should be pretty straightforward. In the following examples, I will "
"assume that this new network is connected via a third ethernet card, namely "
"<c>eth2</c>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):923
msgid ""
"First you need to configure the interface. Just take the instructions in the "
"<uri link=\"#doc_chap4_pre1\">4.1 code listing</uri> and replace <c>eth0</c> "
"with <c>eth2</c> and <c>192.168.0</c> with <c>192.168.1</c>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):929
msgid ""
"Then you need to tweak dnsmasq to service the new interface. Just edit the "
"<path>/etc/conf.d/dnsmasq</path> file again and append <c>-i eth2</c> to "
"DNSMASQ_OPTS; using -i multiple times is OK. Then edit <path>/etc/dnsmasq."
"conf</path> and add another line like the dhcp-range line in the <uri link="
"\"#doc_chap5_pre1\">5.1 code listing</uri>, replacing <c>192.168.0</c> with "
"<c>192.168.1</c>. Having multiple dhcp-range lines is OK too."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):939
msgid ""
"Finally, see the rules in the <uri link=\"#doc_chap5_pre2\">5.2 code "
"listing</uri> and duplicate the rules that have <c>-i ${LAN}</c> in them. "
"You may want to create another variable, say <c>LAN2</c>, to make things "
"easier."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):951
msgid "Troubleshooting"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):954
msgid "Useful Tools"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):957
msgid ""
"If you're having trouble getting your computers to communicate, you may way "
"to try out the following tools (they can all be found in the <c>net-"
"analyzer</c> portage category):"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(th):965
msgid "Utility"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(th):966
msgid "Description"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):969
msgid "wireshark"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):970
msgid "GUI tool to view all raw network data according to filters"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):973
msgid "tcpdump"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):974
msgid "Console tool to dump all raw network data according to filters"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):977
msgid "iptraf"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):978
msgid "ncurses based IP LAN monitor"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):981
msgid "ettercap"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(ti):982
msgid "ncurses based network monitor/control"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):990
msgid "DHCP Fails To Start"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):993
msgid ""
"When starting the dhcp init.d script for the first time, it may fail to load "
"but neglect to give you any useful info."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):998
msgid "DHCP Failing Example"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):998
#, no-wrap
msgid ""
"\n"
"# <i>/etc/init.d/dhcp start</i>\n"
" * Setting ownership on dhcp.leases ... [ ok ]\n"
" * Starting dhcpd ... [ !! ]\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):1004
msgid ""
"The trick is to know where dhcpd is sending its output. Simply browse to "
"<path>/var/log</path> and read the log files. Since the exact log file "
"depends on the package you are using as a syslog, try running <c>grep -Rl "
"dhcpd /var/log</c> to narrow down the possibilities. Chances are you made a "
"typo in your config file. You could also try running <c>dhcpd -d -f</c> "
"(short for debug / foreground) and debug the error based upon the output."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):1017
msgid "Incorrect MTU Value"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):1020
msgid ""
"If you experience odd errors (such as not being able to access some webpages "
"while others load fine), you may be having Path MTU Discovery trouble. The "
"quick way to test is to run this iptables command:"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre:caption):1026
msgid "Circumvent MTU issues"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(pre):1026
#, no-wrap
msgid ""
"\n"
"# <i>iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu</i>\n"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):1030
msgid ""
"This will affect all new connections, so just refresh the website you're "
"having problems with in order to test. In case it helps, the standard MTU "
"value for 100mbit ethernet connections is <c>1500</c>; this value also "
"applies to PPPoA. For PPPoE connections it is <c>1492</c>. For more info, "
"you should read Chapter 15 of the <uri link=\"http://lartc.org/howto/"
"\">Linux Advanced Routing & Traffic Control HOWTO</uri>."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):1039
msgid ""
"If that command does not work for you, you may want to try putting the rule "
"into the mangle table. Simply add <c>-t mangle</c> to the command."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):1048
msgid "Unable to connect two machines directly"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):1051
msgid ""
"If (for whatever reason) you want to connect two machines directly together "
"without a hub or switch, a regular ethernet cable will likely not work, "
"unless you have an Auto MDI/MDI-X (also known as \"autosensing\") capable "
"network adapter. You will need a different cable called a crossover cable. "
"This <uri link=\"http://en.wikipedia.org/wiki/Ethernet_crossover_cable"
"\">Wikipedia</uri> page explains the low level details."
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(title):1066
msgid "Final Notes"
msgstr ""
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(p):1070
msgid ""
"I have no final notes other than if you experience any troubles with the "
"guide, please contact <mail link=\"vapier@gentoo.org\">me</mail> or file a "
"bug with <uri link=\"http://bugs.gentoo.org/\">Gentoo's Bugtracking Website</"
"uri>. If you have some interesting bits you think would enhance this guide, "
"by all means send it my way for inclusion."
msgstr ""
#. Place here names of translator, one per line. Format should be NAME; ROLE; E-MAIL
#: ../../gentoo/xml/htdocs/doc/en//home-router-howto.xml(None):0
msgid "translator-credits"
msgstr ""
|