Advertisement
TBotNik

Untitled

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