라벨이 [Server]인 게시물 표시

Update WireGaurd Package to 14 and set hashed password

Update WireGaurd Package to 14 and Set Hashed password VPN 서버로 wireGaurd를 세팅하였고, 해당 패키지가 오래 되어서 업그레이드를 하게 되었습니다.  i used wireGaurd as my VPN server, and the server is not updated long time so i try to update the package. 기존에는 password를 plain 방식으로 제공해서 추가하면 되었는데, 업데이트 된 버전부터는 password 값을 hashed 데이터로 넣어달라고 에러를 리턴하더라구요. previous the wireGaurd need to plain text password, but after the upgrade version, they need to put the hashed password in the environment. and if you sent not hashed password then they got a return from server 그래서 어떤식으로 제공하는지 에러 메세지에 나온 주소로 가봤는데, 해당 주소가 찾을수 없다는 에러가 리턴되었습니다. https://github.com/wg-easy/wg-easy/blob/master/How_to_generate_an_bcrypt_hash.md so i access the page they mention in the error details, but the page is not exists. this is the page link they mention in the error details https://github.com/wg-easy/wg-easy/blob/master/How_to_generate_an_bcrypt_hash.md    그래서 Chatgpt를 통해 물어보니, 제가 bcrypt 를 통해 hashed 한 데이터를 PASSWORD_HASH environment에 세팅해주면 된다...

Centos Wget 으로 Oracle 11g R2 다운받기

Centos 서버에 오라클을 깔고 싶어 검색을 했는데 ftp로 업로드 후 설치를 하란다... 내 컴퓨터 용량도 없는데;; 그래서 wget을 이용한  oracle 을 다운받을수 있는 곳을 찾아 이렇게 글을 남긴다. * user = oracle_login password=oracle_password 에는 오라클 계정 로그인과 비밀번호를 적으면됨 Linux 32-bit: wget --no-check-certificate -v -c --tries=2 -O linux.x64_11gR2_database_1of2.zip -- user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux_11gR2_database_1of2.zip wget  --no-check-certificate -v -c --tries=2 -O linux.x64_11gR2_database_2of2.zip -- user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux_11gR2_database_2of2.zip Linux 64-Bit: wget --no-check-certificate -v -c --tries=2 -O linux.x64_11gR2_database_1of2.zip -- user=oracle_login_email@whatever.com --password=oracle_password http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zip wget --no-check-certificate...

Centos 명렁어 ..Ing

Centos 버전 확인 : lsb_release -a || cat /etc/issue Centos 패키지 설치 : yum install || yum -y install

Linux ( CentOS ) FTP 설정

프로젝트를 진행하며 문서를 공유하기위해 파일서버를 찾다가 CentOS가 설치되어있는 서버에 FTP서버를 설치하기로 결정 인터넷을 검색해가며 해보니 그리 어렵진 않았지만 나중을 위해 정리해보기로 한다. 1.  vsftpd 설치 : Linux에서 사용하는 FTP서버데몬 설치명령은 아래와 같다. (별도로 관련파일 복사없이 그냥 명령어만 치니까 설치가 되더라.  참고로 홈페이지는  https://security.appspot.com/vsftpd.html  ) #  yum install vsftpd 2. 환경파일 설정 # vi /etc/vsftpd/vsftpd.conf anoymous_enable=NO  //익명으로 접속시 NO pasv_enable=YES   //엑티브모드로 사용할 시 NO 3. FTP용 계정생성 # user add 계정명 # passwd 계정명 4. 방화벽 설정 :  iptables에 20, 21번 포트를 등록해준다. # vi /etc/sysconfig/iptables ////////////////아래의 내용 추가 -A INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT //iptable재기동 # service iptables restart 5. FTP서버기동 # service vsftpd start (종료 : stop, 재기동 : restart) 부팅시 FTP자동실행 설정 chkconfig --level 2345 vsftpd on 7. 프로세스 확인 및 포트확인 # ps -ef | grep vsftpd # netstat -ntlp 참조 :  ht...