{"id":2075,"date":"2019-12-04T10:28:01","date_gmt":"2019-12-04T09:28:01","guid":{"rendered":"https:\/\/rostman.pl\/?p=2075"},"modified":"2019-12-04T10:28:01","modified_gmt":"2019-12-04T09:28:01","slug":"router-debian-cz-1","status":"publish","type":"post","link":"https:\/\/rostman.eu\/index.php\/2019\/12\/04\/router-debian-cz-1\/","title":{"rendered":"Router Debian cz. 1"},"content":{"rendered":"<p>Ustawienie w Biosie \u201ePOWER ON\u201d po dostaniu napi\u0119cia z gniazdka.<br \/>\nZainstalowa\u0107 system DEBIAN<\/p>\n<p>zmiana w pliku z repozytorium sorces.list<br \/>\n<code>nano \/etc\/apt\/sources.list<\/code><br \/>\nzakomentowa\u0107:<br \/>\n<code>#deb cdrom:[Debian GNU\/Linux 9.5.0 _Stretch....<\/code><br \/>\nZmiana portu w ssh edytyjemy w pliku:<br \/>\n<code>nano \/etc\/ssh\/sshd_config<\/code><br \/>\nzmieniamy<br \/>\n<code>Port 557<\/code><br \/>\nZezwolenie na logowanie roota, dopisujemy po:<br \/>\n<code>#PermitRootLogin without-password<\/code><br \/>\nDopisa\u0107 to:<br \/>\n<code>PermitRootLogin yes<\/code><br \/>\nzapisa\u0107 i zrestarowa\u0107 serwis<br \/>\n<code>service ssh restart<\/code><\/p>\n<p><!--more-->&nbsp;<\/p>\n<p>Wy\u0142\u0105czenie ipv6 na wszystkich interfejsach<br \/>\nEdytujemy plik:<br \/>\n<code>nano \/etc\/sysctl.conf<\/code><br \/>\ndopisujemy:<br \/>\n<code>net.ipv6.conf.all.disable_ipv6=1<\/code><\/p>\n<p>Opcja 2:<br \/>\n<code>echo net.ipv6.conf.all.disable_ipv6=1 &gt; \/etc\/sysctl.d\/disableipv6.conf<\/code><\/p>\n<p>Przywr\u00f3cenie nazw eth0 itd.<br \/>\nEdytujemy plik<br \/>\n<code>nano \/etc\/default\/grub<\/code><br \/>\nSzukamy GRUB_CMDLINE_LINUX=&#8221;&#8221;<br \/>\nZmieniamy na:<br \/>\n<code>GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"<\/code><br \/>\ni na koniec wykonujemy:<br \/>\n<code>grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><\/p>\n<p>Nie restartujemy!!!!<\/p>\n<p>Instalacja ifconfig<br \/>\n<code>apt-get install net-tools<\/code><br \/>\nEdytujemy ustawienia sieci:<br \/>\n<code>nano \/etc\/network\/interfaces<\/code><\/p>\n<p><code>#allow-hotplug eth0<br \/>\n#iface eth0 inet dhcp<br \/>\nauto eth0<br \/>\nallow-hotplug eth0<br \/>\niface eth0 inet static<br \/>\naddress 192.27.211.50<br \/>\nnetmask 255.255.255.0<br \/>\ngateway 192.27.211.1<br \/>\ndns-nameservers 8.8.8.8 8.8.4.4<br \/>\nallow-hotplug eth1<br \/>\nauto eth1<br \/>\niface eth1 inet static<br \/>\naddress 192.168.100.1<br \/>\nnetmask 255.255.255.0<\/code><\/p>\n<p>Przypisanie interfejsu po mac adresie dla eth1 (dla ka\u017cdej kolejnej karty musi zgadza\u0107 si\u0119 nazwa pliku <strong>10-eth1.link i <code>Name=eth1<\/code><\/strong>)<\/p>\n<p>tworzymy plik<\/p>\n<p><strong>\/etc\/systemd\/network\/10-eth0.link<\/strong><\/p>\n<p>o zawarto\u015bci:<\/p>\n<p><code>[Match]<br \/>\nMACAddress=a4:52:a9:b4:b5:06<\/code><br \/>\n<code>[Link]<br \/>\nName=eth0<\/code><\/p>\n<p>przed restartem wykonanie<\/p>\n<p><code>update-initramfs -u<\/code><\/p>\n<p>Wykonujemy restart<br \/>\n<code>reboot<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ustawienie w Biosie \u201ePOWER ON\u201d po dostaniu napi\u0119cia z gniazdka. Zainstalowa\u0107 system DEBIAN zmiana w pliku z repozytorium sorces.list nano \/etc\/apt\/sources.list zakomentowa\u0107: #deb cdrom:[Debian GNU\/Linux 9.5.0 _Stretch&#8230;. Zmiana portu w ssh edytyjemy w pliku: nano \/etc\/ssh\/sshd_config zmieniamy Port 557 Zezwolenie na logowanie roota, dopisujemy po: #PermitRootLogin without-password Dopisa\u0107 to: PermitRootLogin yes zapisa\u0107 i zrestarowa\u0107 serwis [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[142],"_links":{"self":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/posts\/2075"}],"collection":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/comments?post=2075"}],"version-history":[{"count":0,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/posts\/2075\/revisions"}],"wp:attachment":[{"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/media?parent=2075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/categories?post=2075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rostman.eu\/index.php\/wp-json\/wp\/v2\/tags?post=2075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}