Linux Server(2)
-
리눅스 MariaDB 외부접속 가능하게 설정하기
리눅스는 Debian 리눅스를 기준으로 합니다. /etc/mysql/my.cnf 파일수정 bind-address = 0.0.0.0 위 bind-address = 0.0.0.0 을 추가해줍시다. 사용자 작성, 권한 부여 # mysql -u root -p MariaDB [(none)]> create database etssun_db; // 데이터베이스 생성 MariaDB [(none)]> create user 'etssun'@'%' identified by 'root'; // etssun 이라는 계정을 비밀번호를 root로 생성 MariaDB [(none)]> grant all privileges on etssun_db.* to etssun@'%'; //etssun_db 라는 데이터베이스의 권한을 etssu..
2018.07.30 -
NAT (Network Address Translation) 설정
SNAT(Source Network Address Translation, 출발지 주소 변환) # iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 203.230.7.1 -192.168.0.0/24가 출발지 주소이고 eth0으로 나가는 패킷에 대하여 203.230.7.1 로 SNAT 시켜준다. DNAT(Destinaton Network Address Translation, 목적지 주소 변환) # iptables -t nat -A PREROUTING -d 203.230.7.1 -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.0.1 -eth0의 203.20.7.1주소로 들어오는 목적지 포트번호가 80..
2018.07.09