Secure by Default in MySQL 5.7
Secure by Default in MySQL 5.7 Secure by Default in MySQL 5.7
Secure by Default in MySQL 5.7 Secure by Default in MySQL 5.7
iptables 를 이용한 포트 리다이렉션 원하는 내용 OS : linux 기본 smtp 포트는 25번을 사용하되, 587에서의 접근을 허용하고자 함 다만, 메일엔진에서 설정하지 않고 리눅스의 iptables만을 가지고 처리 하고 싶다면… 설정 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A PREROUTING -p tcp –dport 587 -j REDIRECT –to-port 25 기존에 작동하는 25번 포트는 변동 사항이 없으며 추가로 587 포트에 대해서 접근을 요청시 25포트로 리다이렉션 해줌 테스트 사용툴 : terminal & telnet # telnet 192.168.0.111 587 Trying 192.168.0.111… Connected to 192.168.0.111. Escape character is ‘^]’. 220 office.ilaya.com ESMTP Sendmail 8.14.7/8.14.7; Tue, 29 Dec 2015 11:39:37 +0900
jsp 에서 사용자가 생성한 java class 호출 하기 사전 주의사항 java에서 기본적으로 지원하는 class 가 아닌 사용자가 직접 생성한 class 를 호출하기 위해서는 반드시 package 화 되어 있어야 한다고… 한다. 이 글에서는 apache + tomcat 연동 가상호스트(도메인 이라고도 표시할 수 있고)의 설정이 완료되었음을 전제로 한다. 서버 환경 OS : linux WEB : httpd-2.4 WAS : tomcat-7.0 / java-1.7 뭐.. 중요 하진 않다. class 선언 환경 document_root : apache,tomcat 에 지정한 대로 사용 class package name : jsptest class name : HelloTest jsp file name : hellotest.jsp document_root 에 WEB-INF/classes 디렉토리 생성 WEB-INF/classes 하단에 ”class package name” 으로 사용될 디렉토리 생성 (즉, document_root/WEB-INF/classes/jsptest 가 되겠다) class 생성 위치 : document_root/WEB-INF/classes/jsptest 파일이름 : HelloTest.java package jsptest; public class HelloTest { private String name=”HelloTest : 한글.. hello!!!”; public void setName(String name) { this.name=name; } public String getName() { return name; [ more… ]
Recompiling VirtualBox kernel modules [FAILED] on centos7.2 or rhel7.2 환경 OS : CentOS7 (7.2.1511) VirtualBox : 5.0.10_104061_el7-1 yum-repository 등록후 yum install VirtualBox-5.0 명령을 통한 설치 작업진행 사실 CentOS-7.2업데이트후 정상적인 구동이 되지 않았기 때문에 재설치 까지 진행해 본 것임 설치시 오류 No precompiled module for this kernel found — trying to build one. Messages emitted during module compilation will be logged to /var/log/vbox-install.log. Stopping VirtualBox kernel modules [ OK ] Recompiling VirtualBox kernel modules [FAILED] (Look at /var/log/vbox-install.log to find out what went wrong) Verifying : VirtualBox-5.0-5.0.10_104061_el7-1.x86_64 1/1 Installed: VirtualBox-5.0.x86_64 0:5.0.10_104061_el7-1 로그 내용 로그 내용은 상당히 많지만 대략 이정도가 주목 할 만 한듯 /tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxPacketHandler’: /tmp/vbox.0/linux/VBoxNetFlt-linux.c:928:9: error: implicit declaration of function ‘vlan_tx_tag_present’ [-Werror=implicit-function-declaration] if (vlan_tx_tag_present(pBuf) && skb_headroom(pBuf) >= VLAN_ETH_HLEN) ^ /tmp/vbox.0/linux/VBoxNetFlt-linux.c:938:13: error: implicit declaration of function ‘vlan_tx_tag_get’ [-Werror=implicit-function-declaration] pVHdr->h_vlan_TCI = RT_H2N_U16(vlan_tx_tag_get(pBuf)); ^ cc1: some warnings being treated [ more… ]
아파치에 SSL모듈 및 가상호스트 설정후 아래 로그와 함께 아파치가 시작이 되지 않음 환경 OS : linux apache : 2.4 로그 [ssl:emerg] [pid 11900] AH02572: Failed to configure at least one certificate and key for notssldomain.com:443 [ssl:emerg] [pid 11900] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned [ssl:emerg] [pid 11900] AH02312: Fatal error initialising mod_ssl, exiting. AH00016: Configuration Failed 일단 SSL관련 오류가 발생 특이한 것은 SSL적용 대상이 아닌 도메인에 대해 (notssldomain.com:443) 으로 에러 로그가 기록됨 의문 인증서 파일에 문제가 있어도 발생할 수 있는 에러이지만… 아무리 확인을 해봐도 인증서에는 문제가 없고(동일한 환경에서 잘 사용중인 인증서) 환경도 별다른 문제가 없어 보였는데… 문제점 SSLEngine On 설정이 전역으로 들어간 것이 문제;;;;;;; 정상 <VirtualHost *:443> ServerName ssldomain.com . . SSLEngine on SSLCertificateFile …. SSLCertificateKeyFile …. </VirtualHost> 문제 SSLEngine on . <VirtualHost *:443> ServerName ssldomain.com . . SSLCertificateFile …. SSLCertificateKeyFile [ more… ]
Copyright © 2025 | WordPress Theme by MH Themes