linux 40

Centos -samba

아래와 같은 에러가 나온다면 CIFS 관련 유틸이 설치되지 않은 것 에러) mount: wrong fs type, bad option, bad superblock on //192.168.1.2/test, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program) ============================================================ 윈도우 폴더 가져다 리눅스에 share해서 쓰기 윈도우에서 계정생성 cmd 관리자 권한으로 실행 > net user root 1234 /add 폴더 세..

linux 2020.12.27

centos linux -vsftpd 설정

test anonymous 로 접속시 참고 : 기본적으로 다운로드만 되어 업로드 필요시 추가수정 필요 [root@server1 ~]# dnf -y install vsftpd [root@server1 ~]# vi /etc/vsftpd/vsftpd.conf anonymous_enable=YES local_enable=YES write_enable=YES //추가수정 기본 업로드 허용 local_umask=022 anon_upload_enable=YES // 추가수정 anonymous 사용자 업로드 허용 anon_mkdir_write_enable=YES // 추가수정 anonymous 사용자 디렉토리 생성 허용 dirmessage_enable=YES xferlog_enable=YES connect_from_p..

linux 2020.12.26

centos 8 ntp (=chrony) 설정

서버설정 #rpm -qa | grep chrony 확인 # dnf -y install chrnoy* # vi/etc/chrony.conf server 0.kr.pool.ntp.org server 1.asia.pool.ntp.org allow 192.168.0.0/16 //ip 대역에 맞게 수정 #systemctl restart chronyd #firewall-cmd --zone=public --add-port=53 //dns 포트 #firewall-cmd --zone=public --add-port=123 //ntp 동기화 포트 #firewall-cmd --reload 서버 시간 확인 #chronyc sources //시간을 받아오는 서버 리스트 (chrony.conf에 등록한 서버 리스트) #chron..

linux 2020.12.20

centos6 이하 nat 설정

iptables 초기화 #iptables -F FORWARD #iptables -P FORWARD DROP //기본정책 DROP ip_forward 를 enable #vi/etc/sysctl/conf net.ipv4.ip_forward = 1 또는 #echo "1" > /proc/sys/net/ipv4/ip_forward 모든패킷 통과 설정 #iptables -A FORWARD -o -j ACCEPT #iptables -A FORWARD -o ens1 -j ACCEPT #iptables -A FORWARD -o -j ACCEPT #iptables -A FORWARD -o ens2 -j ACCEPT 외부장치에 메스커레이드 허가 #iptables -t nat -A POSTROUTING -o -J MASQUE..

linux 2020.12.13