fw(skill39.net)
#iptables -t nat -A PREROUTING -s 10.8.0.0/24 -d 10.10.10.1 -p tcp --dport 443 -j DNAT --to 200.220.55.2
#iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -d 200.220.55.2 -p tcp --dport 443 -j SNAT --to 200.220.55.1
#dpkg-reconfigure iptables-persistent
#cd /etc/openvpn/
#openssl req -new -out vpn.req -newkey rsa:2048 -keyout vpn.key -nodes
※ CN = 200.220.55.1
#openssl ca -in vpn.req -out vpn.crt
#cp /etc/ssl/CA/cacert.pem ./
#openssl dhparam -out dh2048.pem 2048
#cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/
#gunzip /etc/openvpn/server.conf.gz
#vi /etc/openvpn/server.conf
#systemctl enable openvpn@server
#systemctl restart openvpn@server
client1
#apt install network-manager-openvpn-gnome -y
※ VPN 어댑터 설정
'OS > Linux' 카테고리의 다른 글
[기능대회] 1 과제 bind9 설치 (0) | 2021.11.09 |
---|---|
[기능대회] 1과제 MySQL Database 구성 (0) | 2021.11.09 |
[기능대회] 1과제 Mail Service 구성 (0) | 2021.11.09 |
[기능대회] 1과 FTP Service 구성 (0) | 2021.11.09 |
[기능대회] 1과제 Reverse Proxy 구성 (0) | 2021.11.09 |