본문 바로가기

IaC Application/proxy

(4)
haproxy.service 원복 --director [root@localhost ~]# ipvsadm -C [root@localhost ~]# ipvsadm -L IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn [root@localhost ~]# dnf -y remove ipvsadm [root@localhost ~]# sysctl -p net.ipv4.ip_forward = 1 [root@localhost ~]# dnf -y install haproxy [root@localhost ~]# ifconfig ens160:1 172...
ipvsadm.service dnat --director 설정 --adepter vmnet1 추가 --vmnet1 주소 설정 [root@localhost ~]# ifconfig ens160: flags=4163 mtu 1500 inet 172.16.0.120 netmask 255.255.255.0 broadcast 172.16.0.255 inet6 fe80::20c:29ff:fe78:c387 prefixlen 64 scopeid 0x20 ether 00:0c:29:78:c3:87 txqueuelen 1000 (Ethernet) RX packets 132 bytes 14519 (14.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 190 bytes 20503 (20.0 KiB) TX e..
ipvsadm.service : reverse proxy --server [root@localhost ~]# dnf -y install ipvsadm web 1 , web 2 --CLI [root@localhost ~]# systemctl set-default multi-user.target Removed "/etc/systemd/system/default.target". Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/multi-user.target. [root@localhost ~]# reboot 원격에서 내부 웹 서버로 접속 --web1 hostnamectl set-hostname realserver-01 [root@realserver-01 ~]# cat /etc/h..
Proxy Server 정의 프록시(Proxy)란 단어가 뜻하듯 '대리인'의 역할을 하는 서버 웹 환경에서 프록시 서버는 웹 클라이언트와 웹 서버 사이에서 요청한 데이터를 전달하는 역할 한번 전송한 데이터를 캐시에 저장한 후, 같은 데이터를 또 요청할 경우에 캐시에 저장된 것을 보내줌 Forward Proxy 실습 [root@localhost ~]# ping 8.8.8.8 [root@localhost ~]# dnf -y install epel-release [root@localhost ~]# dnf -y install squid [root@localhost ~]# squid --version Squid Cache: Version 5.5 Service Name: squid ~~ [root@localhost ~]# systemct..