Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. Engedélyeztem a tűzfalban:
  2. $IPTABLES -A OUTPUT -p udp -m multiport --ports 68 -j ACCEPT
  3.  
  4. /etc/bind/named.conf.local -ban:
  5.  
  6.  
  7. include "/etc/bind/rndc.key";
  8.  
  9. controls {
  10. inet 127.0.0.1 allow {localhost;}
  11. keys { "rndc-key"; } ;
  12. };
  13.  
  14.  
  15. zone "peldasuli.local" {
  16. type master ;
  17. file "/var/lib/bind/peldasuli.local";
  18. allow-update { key "rndc-key";};
  19.  
  20. };
  21.  
  22. zone "168.192.in-addr.arpa" {
  23. type master ;
  24. file "/var/lib/bind/168.192";
  25. allow-update {key "rndc-key"; };
  26.  
  27. };
  28.  
  29. cp /etc/bind/rndc.key /etc/dhcp
  30. cd /etc/dhcp
  31. chown root:dhcpd rndc.key
  32. mv rndc.key ddns-keys/
  33.  
  34.  
  35. /etc/dhcp/dhcpd.conf -om:
  36.  
  37. include " /etc/dhcp/ddns-keys/rndc.key";
  38. ddns-update-style interim;
  39.  
  40.  
  41.  
  42. # option definitions common to all supported networks...
  43. option domain-name "peldasuli.local";
  44. option domain-name-servers 192.168.1.254;
  45.  
  46. default-lease-time 600;
  47. max-lease-time 7200;
  48.  
  49.  
  50. # Use this to send dhcp log messages to a different log file (you also
  51. # have to hack syslog.conf to complete the redirection).
  52. log-facility local7;
  53.  
  54. # No service will be given on this subnet, but declaring it helps the
  55. # DHCP server to understand the network topology.
  56.  
  57. subnet 10.0.2.0 netmask 255.255.255.0 {
  58. }
  59.  
  60. # This is a very basic subnet declaration.
  61.  
  62.  
  63.  
  64.  
  65. subnet 192.168.1.0 netmask 255.255.255.0 {
  66. range 192.168.1.111 192.168.1.222;
  67. option routers 192.168.1.254;
  68. zone peldasuli.local. {
  69. primary 127.0.0.1;
  70. key "rndc.key";
  71.  
  72. }
  73.  
  74. zone 168.192.in-addr.arpa. {
  75. primary 127.0.0.1;
  76. key "rndc.key";
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement