Advertisement
TBotNik

Configs2

Jul 28th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.56 KB | None | 0 0
  1. Gen'd by Script
  2.  
  3. Contents of the NetWork config file /etc/network/interfaces
  4.  
  5. # This file describes the network interfaces available on your system
  6. # and how to activate them. For more information, see interfaces(5).
  7.  
  8. # The loopback network interface
  9. auto lo
  10. iface lo inet loopback
  11.  
  12. # The primary network interface
  13. auto wlan0
  14. iface wlan0 inet dhcp
  15. # dns-nameservers 192.168.1.1
  16.  
  17. # The secondary network interface - default
  18. #auto eth0
  19. #iface eth0 inet static
  20. # address 192.168.3.2
  21. # netmask 255.255.255.0
  22. # network 192.168.3.0
  23. # broadcast 192.168.3.255
  24. # gateway 192.168.3.1
  25. # dns-* options are implemented by the resolvconf package, if installed
  26. # dns-nameservers 192.168.3.1
  27. # dns-search tc-noc-server.org
  28.  
  29. # The secondary network interface - Dell
  30. auto eth2
  31. iface eth2 inet static
  32. address 192.168.3.2
  33. netmask 255.255.255.0
  34. network 192.168.3.0
  35. broadcast 192.168.3.255
  36. gateway 192.168.3.1
  37. # dns-* options are implemented by the resolvconf package, if installed
  38. # dns-nameservers 192.168.3.1
  39. # dns-search tc-noc-server.org
  40.  
  41.  
  42.  
  43. Contents of the DHCP config file /etc/dhcp3/dhcpd.conf
  44.  
  45. # /etc/dhcp3/dhpcd.conf
  46.  
  47. default-lease-time 600;
  48. max-lease-time 7200;
  49. option subnet-mask 255.255.255.0;
  50. option broadcast-address 192.168.3.255;
  51. option routers 192.168.3.2;
  52. option domain-name-servers 192.168.1.1, 192.168.3.1, 204.232.137.207;
  53. option domain-name "tc-server";
  54. log-facility local7;
  55. subnet 192.168.3.0 netmask 255.255.255.0 { range 192.168.3.10 192.168.3.200;}
  56.  
  57.  
  58. Contents of the sysctl.conf file /etc/sysctls.conf
  59.  
  60. #
  61. # /etc/sysctl.conf - Configuration file for setting system variables
  62. # See /etc/sysctl.d/ for additional system variables.
  63. # See sysctl.conf (5) for information.
  64. #
  65.  
  66. #kernel.domainname = example.com
  67.  
  68. # Uncomment the following to stop low-level messages on console
  69. #kernel.printk = 4 4 1 7
  70.  
  71. ##############################################################3
  72. # Functions previously found in netbase
  73. #
  74.  
  75. # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
  76. # Turn on Source Address Verification in all interfaces to
  77. # prevent some spoofing attacks
  78. #net.ipv4.conf.default.rp_filter=1
  79. #net.ipv4.conf.all.rp_filter=1
  80.  
  81. # Uncomment the next line to enable TCP/IP SYN cookies
  82. #net.ipv4.tcp_syncookies=1
  83.  
  84. # Uncomment the next line to enable packet forwarding for IPv4
  85. #net.ipv4.ip_forward=1
  86.  
  87. # Uncomment the next line to enable packet forwarding for IPv6
  88. #net.ipv6.conf.all.forwarding=1
  89.  
  90.  
  91. ###################################################################
  92. # Additional settings - these settings can improve the network
  93. # security of the host and prevent against some network attacks
  94. # including spoofing attacks and man in the middle attacks through
  95. # redirection. Some network environments, however, require that these
  96. # settings are disabled so review and enable them as needed.
  97. #
  98. # Ignore ICMP broadcasts
  99. #net.ipv4.icmp_echo_ignore_broadcasts = 1
  100. #
  101. # Ignore bogus ICMP errors
  102. #net.ipv4.icmp_ignore_bogus_error_responses = 1
  103. #
  104. # Do not accept ICMP redirects (prevent MITM attacks)
  105. #net.ipv4.conf.all.accept_redirects = 0
  106. #net.ipv6.conf.all.accept_redirects = 0
  107. # _or_
  108. # Accept ICMP redirects only for gateways listed in our default
  109. # gateway list (enabled by default)
  110. # net.ipv4.conf.all.secure_redirects = 1
  111. #
  112. # Do not send ICMP redirects (we are not a router)
  113. #net.ipv4.conf.all.send_redirects = 0
  114. #
  115. # Do not accept IP source route packets (we are not a router)
  116. #net.ipv4.conf.all.accept_source_route = 0
  117. #net.ipv6.conf.all.accept_source_route = 0
  118. #
  119. # Log Martian Packets
  120. #net.ipv4.conf.all.log_martians = 1
  121. #disable ipv6
  122. net.ipv6.conf.all.disable_ipv6 = 1
  123. net.ipv6.conf.default.disable_ipv6 = 1
  124. net.ipv6.conf.lo.disable_ipv6 = 1
  125.  
  126. # enable forwarding
  127. net.ipv4.conf.default.forwarding=1
  128. net.ipv4.conf.all.forwarding=1
  129.  
  130. Contents of the hostname file /etc/hostname
  131.  
  132. tc-server
  133.  
  134. Snap shot of the network settings from ifconfig
  135.  
  136. eth2 Link encap:Ethernet HWaddr 00:0c:f1:ac:5a:7b
  137. inet6 addr: fe80::20c:f1ff:feac:5a7b/64 Scope:Link
  138. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  139. RX packets:1216 errors:0 dropped:0 overruns:0 frame:0
  140. TX packets:519 errors:0 dropped:0 overruns:0 carrier:0
  141. collisions:0 txqueuelen:1000
  142. RX bytes:137329 (137.3 KB) TX bytes:48336 (48.3 KB)
  143.  
  144. lo Link encap:Local Loopback
  145. inet addr:127.0.0.1 Mask:255.0.0.0
  146. inet6 addr: ::1/128 Scope:Host
  147. UP LOOPBACK RUNNING MTU:16436 Metric:1
  148. RX packets:2015 errors:0 dropped:0 overruns:0 frame:0
  149. TX packets:2015 errors:0 dropped:0 overruns:0 carrier:0
  150. collisions:0 txqueuelen:0
  151. RX bytes:464394 (464.3 KB) TX bytes:464394 (464.3 KB)
  152.  
  153. wlan0 Link encap:Ethernet HWaddr 00:0f:3d:ad:c3:c8
  154. inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
  155. inet6 addr: fe80::20f:3dff:fead:c3c8/64 Scope:Link
  156. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  157. RX packets:180145 errors:0 dropped:0 overruns:0 frame:0
  158. TX packets:104028 errors:0 dropped:0 overruns:0 carrier:0
  159. collisions:0 txqueuelen:1000
  160. RX bytes:262914344 (262.9 MB) TX bytes:10879899 (10.8 MB)
  161.  
  162. wmaster0 Link encap:UNSPEC HWaddr 00-0F-3D-AD-C3-C8-61-64-00-00-00-00-00-00-00-00
  163. UP RUNNING MTU:0 Metric:1
  164. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  165. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  166. collisions:0 txqueuelen:1000
  167. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement