Свой DNS сервер Bind9 для запуска ForkPlayer — различия между версиями

Материал из Браузер Fork - Wiki
Перейти к: навигация, поиск
Строка 3: Строка 3:
  
 
Выполните команды
 
Выполните команды
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times," times="" new="" roman",serif;="" font-style:="" italic;="" padding-bottom:="" 2px;="" padding-left:="" 20px;="" padding-right:="" 8px;="" padding-top:="" 2px;"="">
+
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times,">
 
apt-get install bind9 unzip nano
 
apt-get install bind9 unzip nano
  
 
wget "[http://wiki.forkplayer.tv/w/images/0/01/Etc_bind_configfiles.zip http://wiki.forkplayer.tv/w/images/0/01/Etc_bind_configfiles.zip]"
 
wget "[http://wiki.forkplayer.tv/w/images/0/01/Etc_bind_configfiles.zip http://wiki.forkplayer.tv/w/images/0/01/Etc_bind_configfiles.zip]"
  
unzip -o&nbsp;<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana," trebuchet="" ms";="" font-size:="" 13px;="" font-style:="" normal;="" font-variant:="" font-weight:="" 400;="" letter-spacing:="" line-height:="" 20.8px;="" orphans:="" 2;="" text-align:="" left;="" text-decoration:="" none;="" text-indent:="" 0px;="" text-transform:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" word-wrap:="" break-word;"="">Etc_bind_configfiles.zip /etc/bind/</span>
+
unzip -o&nbsp;<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,">Etc_bind_configfiles.zip /etc/bind/</span>
  
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana," trebuchet="" ms";="" font-size:="" 13px;="" font-style:="" normal;="" font-variant:="" font-weight:="" 400;="" letter-spacing:="" line-height:="" 20.8px;="" orphans:="" 2;="" text-align:="" left;="" text-decoration:="" none;="" text-indent:="" 0px;="" text-transform:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" word-wrap:="" break-word;"="">chmod +x /</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
+
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,">chmod +x /</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
  
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">/</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">/</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">etc/bind/iptables</span>
Строка 16: Строка 16:
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">service bind9 start</span>
 
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;">service bind9 start</span>
 
</blockquote>  
 
</blockquote>  
Далее включаем в автозагрузку выполнение&nbsp; /<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana," trebuchet="" ms";="" font-size:="" 13px;="" font-style:="" normal;="" font-variant:="" font-weight:="" 400;="" letter-spacing:="" line-height:="" 20.8px;="" orphans:="" 2;="" text-align:="" left;="" text-decoration:="" none;="" text-indent:="" 0px;="" text-transform:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" word-wrap:="" break-word;"="">etc/bind/iptables (Защита от&nbsp;</span>DNS Amplification)
+
Далее включаем в автозагрузку выполнение&nbsp; /<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,">etc/bind/iptables (Защита от&nbsp;</span>DNS Amplification)
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times," times="" new="" roman",serif;="" font-style:="" italic;="" padding-bottom:="" 2px;="" padding-left:="" 20px;="" padding-right:="" 8px;="" padding-top:="" 2px;"="">
+
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times,">
 
nano /etc/rc.local
 
nano /etc/rc.local
 
</blockquote>  
 
</blockquote>  
 
и вставляем перед exit 0 текст
 
и вставляем перед exit 0 текст
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times," times="" new="" roman",serif;="" font-style:="" italic;="" padding-bottom:="" 2px;="" padding-left:="" 20px;="" padding-right:="" 8px;="" padding-top:="" 2px;"="">
+
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times,">
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana," trebuchet="" ms";="" font-size:="" 13px;="" font-style:="" normal;="" font-variant:="" font-weight:="" 400;="" letter-spacing:="" line-height:="" 20.8px;="" orphans:="" 2;="" text-align:="" left;="" text-decoration:="" none;="" text-indent:="" 0px;="" text-transform:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" word-wrap:="" break-word;"="">/</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana," trebuchet="" ms";="" font-size:="" 13px;="" font-style:="" normal;="" font-variant:="" font-weight:="" 400;="" letter-spacing:="" line-height:="" 20.8px;="" orphans:="" 2;="" text-align:="" left;="" text-decoration:="" none;="" text-indent:="" 0px;="" text-transform:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" word-wrap:="" break-word;"="">etc/bind/iptables</span>
+
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,">/</span><span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,">etc/bind/iptables</span>
 
</blockquote>  
 
</blockquote>  
 
Можно отредактировать конфиг с зонами и оставить там только необходимые переадресации (например оставить только Tvigle или IVI)
 
Можно отредактировать конфиг с зонами и оставить там только необходимые переадресации (например оставить только Tvigle или IVI)
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times," times="" new="" roman",serif;="" font-style:="" italic;="" padding-bottom:="" 2px;="" padding-left:="" 20px;="" padding-right:="" 8px;="" padding-top:="" 2px;"="">
+
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times,">
 
nano /etc/bind/named.conf.local
 
nano /etc/bind/named.conf.local
 
</blockquote>  
 
</blockquote>  
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana," trebuchet="" ms";="" font-size:="" 13px;="" font-style:="" normal;="" font-variant:="" font-weight:="" 400;="" letter-spacing:="" line-height:="" 20.8px;="" orphans:="" 2;="" text-align:="" left;="" text-decoration:="" none;="" text-indent:="" 0px;="" text-transform:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" word-wrap:="" break-word;"="">Можно отредактировать конфиг с host и прописать другой ip адрес приложения (для ForkPlayer это 85.17.30.89 или 195.88.208.101) или разместить свое приложение/магазин приложений&nbsp;в корне веб сервера и прописать его ip адрес</span>
+
<span style="background-color: transparent; color: rgb(51, 51, 51); cursor: text; display: inline; float: none; font-family: sans-serif,arial,verdana,">Можно отредактировать конфиг с host и прописать другой ip адрес приложения (для ForkPlayer это 85.17.30.89 или 195.88.208.101) или разместить свое приложение/магазин приложений&nbsp;в корне веб сервера и прописать его ip адрес</span>
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times," times="" new="" roman",serif;="" font-style:="" italic;="" padding-bottom:="" 2px;="" padding-left:="" 20px;="" padding-right:="" 8px;="" padding-top:="" 2px;"="">
+
<blockquote style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 0px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 5px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 0px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 0px; font-family: georgia,times,">
 
nano /etc/bind/lg.host
 
nano /etc/bind/lg.host
 
</blockquote>  
 
</blockquote>  

Версия 09:20, 4 января 2019

Установка своего DNS сервера BIND9 на Debian для запуска сторонних приложений

Выполните команды

apt-get install bind9 unzip nano

wget "http://wiki.forkplayer.tv/w/images/0/01/Etc_bind_configfiles.zip"

unzip -o Etc_bind_configfiles.zip /etc/bind/

chmod +x /etc/bind/iptables

/etc/bind/iptables

service bind9 start

Далее включаем в автозагрузку выполнение  /etc/bind/iptables (Защита от DNS Amplification)

nano /etc/rc.local

и вставляем перед exit 0 текст

/etc/bind/iptables

Можно отредактировать конфиг с зонами и оставить там только необходимые переадресации (например оставить только Tvigle или IVI)

nano /etc/bind/named.conf.local

Можно отредактировать конфиг с host и прописать другой ip адрес приложения (для ForkPlayer это 85.17.30.89 или 195.88.208.101) или разместить свое приложение/магазин приложений в корне веб сервера и прописать его ip адрес

nano /etc/bind/lg.host