본문 바로가기

2019/104

AWS NAT Instance 포트포워딩시 Source IP 유지하기 https://gist.github.com/jc-lab/b80aa4183c0f8c3971260ac2ee49443d AWS NAT Instance configure-pat.sh for Keep source ip AWS NAT Instance configure-pat.sh for Keep source ip - configure-pat.sh gist.github.com 기존에는 configure-pat.sh에 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 으로 되어있는데 이러면 내/외부 모든 패킷에 MASQUERADE가 적용되어 DNAT를 이용한 Port Forwarding시 Source IP가 NAT Instance의 IP으로 변하게 됩니다. 따라서 MySQL.. 2019. 10. 26.
AWS Lambda 기본 (삽질기) 요즘 AWS Lambda를 써보는데 기본적인 걸로 삽질을 했다..ㅋㅋ 1. VPC의 Subnet는 기본적으로 서로 통신이 가능하다. 삽질한 내용은 아니지만 기본적인 내용인데 인터넷을 보면 잘못 설명한 글이 몇몇 있었다. 한 VPC내의 모든 Subnet들은 라우터로 연결된 것으로 묘사되는데 서로 통신이 가능하단 뜻이다. 2. API Gateway이랑 연동할 때 Lambda에서 Timeout발생시 502 Bad Gateway가 뜬다. 3. Security Group는 Rule이 없으면 기본적으로 모든 Inbound를 거부한다. 4. Lambda를 VPC로 연결했을 때 기본적으로 AWS Service에 연결할 수 없다. 따라서 VPC에 Endpoint를 만들어서 외부 endpoint가 아닌 VPC 내부의 en.. 2019. 10. 24.
C++에서 Node.JS 사용하기 (node모듈아님) https://github.com/jc-lab/node-app jc-lab/node-app Embed node.js application with VFS(Virtual File System) - jc-lab/node-app github.com 삽질의 결과!ㅠㅠ 결과는 간단한데 과정이 힘들었음.. 2019. 10. 21.
openssl CMake 프로젝트에 포함하기 https://github.com/jc-lab/openssl-fips-cmake jc-lab/openssl-fips-cmake Contribute to jc-lab/openssl-fips-cmake development by creating an account on GitHub. github.com 참고~ 2019. 10. 12.
반응형