CentOS6 에서 방화벽(FIrewall Configuration) 이 작동하지 않을때

Posted by 주원이^^
2019. 3. 8. 14:11 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

CentOS6 에서 방화벽(FIrewall Configuration) 이 작동하지 않을때



1. system-config-firewall-tui 을 install/update 하는 방법

    프로그램 이름은 system-config-firewall-tui로, GUI를 설치하지 않고도 사용할 수 있습니다. 

    설치(업데이트) 하려면 다음과 같이 명령합니다.


yum install setuptool system-config-firewall-tui

  
    setuptool이 꼭 필요한 것은 아니나 긴 명령어를 사용할 필요가 없어서 설치하는 것입니다.

   setuptool을 설치하지 않았다면 'system-config-firewall-tui' 이와같이 긴 명령을 입력해야 합니다.

   (또는 setup은 되나 firewall Configuration 이 작동하지 않을때 setuptool을 update 합니다.)



2. setup은 동작 하지만 FIrewall Configuration 이 작동하지 않을때 'fw_tui.py' 을 수정하는 방법 

    fw_tui.py 파일을 수정합니다.

         ( /usr/share/system-config-firewall/fw_tui.py)


    vim +34 /usr/share/system-config-firewall/fw_tui.py

    명령줄(34번)을 '#' 주석 처리 합니다 ( import fw_nw  라인)


CentOS-6.6-firewall-set_065139.jpg


    저장 하고 . 

    ‘system-config-firewall-tui’ 명령으로 작동한다. (CentOS6.6에서)  --- Good luck.






참고 (검색 자료에서):

Run these to turn off the firewall in CentOS:

  service iptables save
  service iptables stop
  chkconfig iptables off

yum update 및 rollback 하기

Posted by 주원이^^
2014. 6. 10. 10:54 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

업데이트하기

-----------------------

 

#yum update openssl


-------------

롤백하기

------------
vi /var/log/yum.log

jul 02 08:54:05 installed: kernel.x86

 

이렇게 나왔을때

 

#rpm -Uhv --rollback "08:54"

 

 

////////////////////////////////////////////

 

yum history list

 

yum history undo 번호

dl320e gen8 smart array B120I centos 5.10 하드디스크 잡기.

Posted by 주원이^^
2014. 5. 7. 18:15 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

레이드 1구성 잡기.

 

centos 5.10

 

http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5249567&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253DMTX_c638250df7e64650b95aa47e38%257CswEnvOID%253D4004%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

 

파일 다운받고 dd.img 를 hpvsa-1.2.8-160.rhel5u10.x86_64.dd 로 명칭 바꾼이후

 

부팅.

 

linux dd blacklist=ahci

 

centos 6.4

 

http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5249567&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253DMTX_9aa84c9100f34106874ecf1457%257CswEnvOID%253D4103%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

 

마찬가지 다운받고  압축풀고

 

부팅.

 

linux dd blacklist-ahci

 

 

 

Dynamic Smart Array B120i |centos raid

Posted by 주원이^^
2014. 4. 30. 11:02 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

Linux CentOS -

Redhat EL Installation on HP Smart Array B120i SATA RAID Controller - HP ML/DL Servers

 

현재 HP Smart Array가 설치되어 있는 서버에 Centos를 설치시 ACHI 커널 패닉을 볼수 있을것이다

구글링한 결과 몇몇분들은 설치가 되었다고 하시는데 저는 안되서 해결하면서 진행한 내용을 요약합니다

우분투는 그냥 설치되는듯 합니다

 

 

- 준비물

1. 설치할 리눅스 커널 버전에 맞는 Driver 파일 [LINK]

2. 드라이버를 USB장치에 저장할 툴 [LINK]

3. OS설치용USB x 1, Driver 설치용 USB x 1

4. 갑자기 오류가 나와도 참을수 있는 멘탈

 

 

- 스탭

1. CMOS 에서 SATA Raid Controller Enable

 

2. HP Smart Array Setting 에서 파티션 구성 및 로직컬 볼륨 생성

 

3. Linux 설치용 USB 생성

 

4. 드라이버 설치용 복사

 

Selecting the Correct Disk Driver

HP offers drivers for the B110i controller for a variety of operating systems, including Redhat and SUSE, both for Intel and AMD based CPU systems. The driver diskette image provides the binary driver modules pre-built for Linux, which enables the HP Smart Array B110i SATA RAID Controller. CentOS users can make use of the Redhat drivers without hesitation.

For this article we are providing as a direct download, drivers for RedHat Enterprise Linux & CentOS v6.0 for Intel and AMD 64bit processors (x86-64bit). These files are available at our Linux download section.

If a diskette driver for earlier or later systems is required, we advise to visit HP’s website and search for the term “Driver Diskette for HP Smart Array B110i” which will produce a good amount of results for all operating systems.

Driver diskette file names have the format “hpahcisr-1.2.6-11.rhel6u0.x86_64.dd.gz” where rhel represents the operating system (RedHat Enterprise Linux), 6u0 stands for update 0 (version 6, update 0 = 6.0) and x86_64 for the system architecture covering x86 platforms (Intel & AMD).

 

Writing Image to Floppy Disk or USB Flash

The driver diskette must be uncompressed using a utility such as 7zip (freely available). Uncompressing the file reveals the file dd.img . This is the driver disk image that needs to be written to a floppy disk drive or USB flash.

Linux users can use the following command to create their driver diskette. Keep in mind to substitute /dev/sdb to reflect your usb or floppy drive:

# dd if=hpahcisr-1.2.6-11.rhel6u0.x86_64.dd.gz of=/dev/sdb

Windows users can use RawWrite if they wish to write it to a floppy disk drive or Win32DiskImager to write it to a USB Flash. Both utilities are provided with our disk driver download. Since we had a USB floppy disk drive in hand, we selected RawWrite:

rawwrite usage and screenshot

 

 

5. 설치용 USB넣고 설치 화면에서 [ESC] 클릭 후

linux dd blacklist=ahci ☜ 입력

 

Loading the Driver Diskette

With the driver diskette ready, it’s time to begin the CentOS installation, by booting from the DVD:

centos 6.0 welcome installation

 

At the installation menu, hit ESC to receive the boot: prompt. At the prompt, enter the following command: linux dd blacklist=ahci and hit enter to being installation as shown below:

centos 6 initrd.img driver installation

 

6. 드라이버 USB 넣고 설치할 커널 버전에 맞는 드라이버 선택

 

The initial screen of the installation GUI will allow you to load the driver diskette created. At the question, select Yes and hit enter:

linux-b110i-installation-6

 

Next screen instructs to insert the driver disk into /dev/sda and press OK. The location /dev/sda refers to our USB Floppy drive, connected to one of our HP server's USB ports during bootup:

linux-b110i-installation-7

 

The system will present a screen with the message Reading driver disk, indicating the driver is loading and once complete, the message detecting hardware … waiting for hardware to initialize… will appear:

linux-b110i-installation-8

Finally, the installation procedure asks if you wish you load any more driver disks. We answered No and the installation procedure continued as expected. We saw both logical disks and were able to successfully install and use them without any problem:

linux centos logical drive setup

 

 

7. 리눅스 설치

We hope this brief article will help thousands of engineers around the world save a bit of their valuable time!

 

 

출처

http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/887-linux-b110i-sata-controller.html

Dynamic Smart Array B120i centos

network unreachable resolving

Posted by 주원이^^
2013. 12. 31. 12:12 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

#vi /etc/sysconfig/network
NETWORKING_IPV6=no <- 이 라인을 no

#/sbin/service ip6tables stop
#/sbin/chkconfig ip6tables off
#/sbin/service network restart

# /etc/init.d/named restart

 

그래도 안된다면.

 

# vi /etc/modprobe.d/disable_ipv6

 

alias net-pf-10 off

 

이후에

 

ifconfig 치면  inet6 addr 이 사라지면 메세지는 사라질것.

'리눅스 > trouble shooting' 카테고리의 다른 글

dl320e gen8 smart array B120I centos 5.10 하드디스크 잡기.  (4818) 2014.05.07
Dynamic Smart Array B120i |centos raid  (1900) 2014.04.30
configure: error: OpenSSL Crypto headers not found.  (2046) 2012.04.14
yum 안될시  (57) 2012.02.02
rsync error: error  (297) 2011.02.22

configure: error: OpenSSL Crypto headers not found.

Posted by 주원이^^
2012. 4. 14. 14:31 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
configure: error: OpenSSL Crypto headers not found.

 

해결법

 

#yum -y install openssl-devel

 

업데이트 및 설치 확인.

'리눅스 > trouble shooting' 카테고리의 다른 글

Dynamic Smart Array B120i |centos raid  (1900) 2014.04.30
network unreachable resolving  (1274) 2013.12.31
yum 안될시  (57) 2012.02.02
rsync error: error  (297) 2011.02.22
configure: error: no acceptable C compiler found in $PATH  (373) 2011.02.18

yum 안될시

Posted by 주원이^^
2012. 2. 2. 11:10 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

yum 먹통일때
/var/lib/rpm/__db.00? 삭제한 후에 rpm --rebuilddb를 해보세요.

$ rm -f /var/lib/rpm/__db.00?
$ rpm --rebuilddb     

또는

vi /etc/resolv.conf 에 nameserver 를 입력해준다.

nameserver 168.126.63.1

nameserver 168.126.63.2

또는

vi /etc/yum.repos.d/CentOS-Base.repo 에


[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

이대로 붙여준다!

'리눅스 > trouble shooting' 카테고리의 다른 글

network unreachable resolving  (1274) 2013.12.31
configure: error: OpenSSL Crypto headers not found.  (2046) 2012.04.14
rsync error: error  (297) 2011.02.22
configure: error: no acceptable C compiler found in $PATH  (373) 2011.02.18
/etc/fstab 복구.  (4640) 2011.02.17

rsync error: error

Posted by 주원이^^
2011. 2. 22. 11:17 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

문제점

그리고 hosts allow 에 의한 error 로 의심이 되신다면 해당 내용을 주석처리해보세요.
hosts allow 설정이 없을 때는 모든 IP 에 대해 허용을 한다는 것이고, hosts allow 설정이 있을 때는 해당 IP 만 허용한다는 것입니다.
rsync 가 정상적으로 실행이 안되신다면
1. netstat -nlp 했을때 873번 포트가 활성화 되어 있는지 확인해보세요.
2. iptables -nL 했을때 873번 포트가 ACCEPT 되어 있는지 확인해보세요.
3. /etc/hosts.allow,/etc/hosts.deny 설정을 하신다면 /etc/hosts.allow 에 해당 IP 에대해 허용되어 있는지 확인해보세요

정안되실땐 #setenforce 0  실행.
---------------------

write failed on BackUpData/carpr2_public_html3/Dealer/image/program/pcanywhere10.zip : Success
rsync error: error in file IO (code 11) at receiver.c(243)                                   
rsync: connection unexpectedly closed (2034656 bytes read so far)                           
rsync error: error in rsync protocol data stream (code 12) at io.c(150)     
------------------> 용량이 다 차서 더이상 백업을 받지 못함.               

[root@CarPR root]# rsync -avz 211.224.128.142::photo /home1/photo/photo/
rsync: server sent "" rather than greeting
rsync error: error starting client-server protocol (code 5) at main.c(924)
------------------> 방화벽 점검... xinit에서 실행하므로 /etc/hosts.allow  /etc/hosts.deny 점검..

[root@CarPR root]# rsync -avz 211.224.128.142::photo /home1/photo/photo/
rsync: failed to connect to 211.224.128.142: Connection refused
rsync error: error in socket IO (code 10) at clientserver.c(97)
------------------> 방화벽에 설정확인

rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(515)
------------------>  데몬이 돌아가는지 또는 방화벽에 설정확인(hosts.allow)

@ERROR: chroot failed
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)
------------------>  해당디렉토리에 접근권한 확인,또는 경로가 잘못된 경우

출처: http://www.superuser.co.kr/blog/cura1016/index.php/5

'리눅스 > trouble shooting' 카테고리의 다른 글

network unreachable resolving  (1274) 2013.12.31
configure: error: OpenSSL Crypto headers not found.  (2046) 2012.04.14
yum 안될시  (57) 2012.02.02
configure: error: no acceptable C compiler found in $PATH  (373) 2011.02.18
/etc/fstab 복구.  (4640) 2011.02.17

configure: error: no acceptable C compiler found in $PATH

Posted by 주원이^^
2011. 2. 18. 17:44 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
이런 메세지가 뜨면 gcc 가 설치가 안된것이다.

해결방법 --

#yum -y install gcc

'리눅스 > trouble shooting' 카테고리의 다른 글

network unreachable resolving  (1274) 2013.12.31
configure: error: OpenSSL Crypto headers not found.  (2046) 2012.04.14
yum 안될시  (57) 2012.02.02
rsync error: error  (297) 2011.02.22
/etc/fstab 복구.  (4640) 2011.02.17

/etc/fstab 복구.

Posted by 주원이^^
2011. 2. 17. 11:54 리눅스/trouble shooting
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

본인은 ㅠㅠ fstab 마운트를 잘못 적용시키다가 부팅이 안되는 증상..
일단 부팅을 한다음 refair 모드로 들어간다. 그이후

mount -o remount,rw /
이렇게하면 루트 파일 시스템이 읽기,쓰기 모드로 다시 마운트 됩니다.
(/etc가 별도의 파티션으로 되어 있다면 그 파티션을)
그리고 vi로 fstab를 편집하시면 됩니다.


이렇게 해서 해결했습니당~

p.s

 /etc/fstab 설정하실때
젤 뒤쪽에 1 0  또는 1 1 이게 먼지 잘 모르시는분들을 위해 설명드립니다.

젤 처음 1번은
0 :백업하지않는다
1 : 백업가능한 파일시스템

두번째 1번은 fsck 이용한 파일시스템 검사옵션 입니다.
0 : 부팅시 파일시스템점검 하지않는다
1 : 루트파일시스템으로서 부팅시 파일시스템 점검을 한다
2 : 루트 파일시스템이외의 파일시스템으로서 부팅시에 파일시스템 점검을 한다.

'리눅스 > trouble shooting' 카테고리의 다른 글

network unreachable resolving  (1274) 2013.12.31
configure: error: OpenSSL Crypto headers not found.  (2046) 2012.04.14
yum 안될시  (57) 2012.02.02
rsync error: error  (297) 2011.02.22
configure: error: no acceptable C compiler found in $PATH  (373) 2011.02.18