{"id":96,"date":"2020-03-01T13:12:50","date_gmt":"2020-03-01T06:12:50","guid":{"rendered":"https:\/\/arnut.com\/home\/?p=96"},"modified":"2022-09-05T13:13:29","modified_gmt":"2022-09-05T06:13:29","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%ab%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-centos-linux-7","status":"publish","type":"post","link":"https:\/\/arnut.com\/home\/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%ab%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-centos-linux-7\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e17\u0e33\u0e2b\u0e25\u0e31\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 CentOS Linux 7"},"content":{"rendered":"<p>\u0e01\u0e32\u0e23\u0e17\u0e33\u0e2b\u0e25\u0e31\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 CentOS Linux 7<\/p>\n<p>1. \u0e1b\u0e34\u0e14 Firewall<br \/>\n# systemctl stop firewalld<br \/>\n# systemctl disable firewalld<br \/>\n# systemctl status firewalld<\/p>\n<p>2. \u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 SELinux \u0e42\u0e14\u0e22\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e08\u0e32\u0e01\u00a0<strong>enforcing \u0e40\u0e1b\u0e47\u0e19\u00a0disabled<\/strong><\/p>\n<p># This file controls the state of SELinux on the system.<br \/>\n# SELINUX= can take one of these three values:<br \/>\n# \u00a0 \u00a0 enforcing &#8211; SELinux security policy is enforced.<br \/>\n# \u00a0 \u00a0 permissive &#8211; SELinux prints warnings instead of enforcing.<br \/>\n# \u00a0 \u00a0 disabled &#8211; No SELinux policy is loaded.<br \/>\nSELINUX=<strong>disabled<\/strong><br \/>\n# SELINUXTYPE= can take one of three values:<br \/>\n# \u00a0 \u00a0 targeted &#8211; Targeted processes are protected,<br \/>\n# \u00a0 \u00a0 minimum &#8211; Modification of targeted policy. Only selected processes are protected.<br \/>\n# \u00a0 \u00a0 mls &#8211; Multi Level Security protection.<br \/>\nSELINUXTYPE=targeted<\/p>\n<p>3. \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15<br \/>\n# ip a<\/p>\n<p>\u0e2b\u0e32\u0e01\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a IP \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e23\u0e35\u0e2a\u0e15\u0e4a\u0e32\u0e17 network\u00a0 \u0e43\u0e2b\u0e21\u0e48<br \/>\n# systemctl restart network<br \/>\n# ip a<\/p>\n<p>\u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e31\u0e48\u0e07\u0e01\u0e32\u0e23\u0e1c\u0e48\u0e32\u0e19\u0e17\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07 Network Manager TUI<br \/>\n# nmtui<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/nmtui.jpg\" alt=\"nmtui\" width=\"304\" height=\"224\" data-entity-type=\"file\" data-entity-uuid=\"9a6c7752-a128-4b24-a1a6-48d4c6d77552\" \/><\/p>\n<p>4. \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2b\u0e21\u0e32\u0e22\u0e40\u0e25\u0e02 Gateway \u0e02\u0e2d\u0e07\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e49\u0e15\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48<br \/>\n# ip r<br \/>\ndefault via <strong>192.168.1.1 <\/strong>dev enp0s3 proto dhcp metric 106<br \/>\n192.168.1.0\/24 dev enp0s3 proto kernel scope link src 192.168.1.40 metric 106<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/ip-r.jpg\" alt=\"ip-r\" width=\"591\" height=\"93\" data-entity-type=\"file\" data-entity-uuid=\"5f2260be-acee-441e-8b18-c9ad10503f62\" \/><\/p>\n<p>5. \u0e17\u0e14\u0e2a\u0e2d\u0e1a ping \u0e44\u0e1b\u0e22\u0e31\u0e07 Gateway \u0e41\u0e25\u0e30\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15<br \/>\n&#8211; \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e44\u0e1b\u0e22\u0e31\u0e07 Gateway (Router)<br \/>\n# ping\u00a0 192.168.1.1<\/p>\n<p>&#8211; \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e2d\u0e34\u0e19\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e40\u0e19\u0e47\u0e15\u0e40\u0e27\u0e47\u0e1a www.google.co.th<br \/>\n# ping www.google.co.th<\/p>\n<hr \/>\n<p><u><strong>Basic Package<\/strong><\/u><br \/>\n5. \u0e17\u0e33\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e1e\u0e47\u0e01\u0e40\u0e01\u0e08\u0e1e\u0e37\u0e49\u0e19\u0e10\u0e32\u0e19<\/p>\n<p>yum install\u00a0 unzip -y<br \/>\nyum install wget -y<br \/>\nyum install lynx -y<\/p>\n<p>&#8211; \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07<br \/>\nyum search unzip<br \/>\n\u0e2b\u0e23\u0e37\u0e2d<br \/>\nrpm -q unzip<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e01\u0e32\u0e23\u0e17\u0e33\u0e2b\u0e25\u0e31\u0e07\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 CentOS Linux 7 1. \u0e1b\u0e34\u0e14 Firewall # systemctl stop firewalld # systemctl disable firewalld # systemctl status firewalld 2. \u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 SELinux \u0e42\u0e14\u0e22\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e08\u0e32\u0e01\u00a0enforcing \u0e40\u0e1b\u0e47\u0e19\u00a0disabled # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # \u00a0 \u00a0 enforcing &#8211; SELinux security policy is enforced. # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":97,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,9],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos-linux","category-sysadmin"],"_links":{"self":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":1,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts\/96\/revisions\/98"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/media\/97"}],"wp:attachment":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}