iptables

iptables

三张表

  • filter: 负责过滤数据包,包括的规则链有:input,output和forward
  • nat: 用于网络地址转换(IP、端口),包括的规则链有:prerouting,postrouting 和 output
  • mangle: 主要应用在修改数据包、流量整形、给数据包打标识,默认的规则链有:INPUT,OUTPUT、 forward,POSTROUTING,PREROUTING
阅读更多

202308W2 go hiking and Devops

This week, I focused on learning the networking part of Docker, an area I had limited knowledge of before. I also took some time to set up the Jenkins service for our company’s testing environment, because of the convenience of Helm, it took me approximately 2 hours to complete the setup. Additionally, I took a look at Kubernetes’ Watch-List mechanism.

On Sunday, I went hiking up YangTai Mountain with a former colleague. It had been a while since I last went hiking, around April. Unfortunately, the summit was covered in clouds, so I didn’t get to enjoy the scenery as much as I had hoped.

test istio https requests local(macos)

generate certificate

1
2
3
4
5
brew install mkcert
brew install nss

mkdir -p ~/.cert
mkcert -key-file ~/.cert/key.pem -cert-file ~/.cert/cert.pem "api.ginta.com"

Enable the system to trust the generated certificate

阅读更多

202308W1 BRUSH UP LIFE and Kubernetes

This week, I took a day off and used the time to renew my Hong Kong and Macau travel permit. It’s been five years since I first obtained the permit, and due to the COVID situation, I haven’t had the chance to visit Hong Kong. I’m planning to go there for a weekend hike soon.

While on the subway, I watched the TV series “BRUSH UP LIFE” which is really well-made. Sometimes, I find myself thinking that if I had the chance to live again, I might attempt things I didn’t have the courage to do before. I spent several hours delving into the source code of Kubernetes, focusing particularly on the code for the apiserver and kubelet components. Kubernetes is indeed a fantastic open-source project.

202307W4 Concerts and Podcasts

It’s been a while since I went for a run, but this week I’m gradually getting back to my previous level of exercise. I’ve been indulging in hotpot and barbecue lately, and my weight reached nearly 137 pounds. Although it’s still within the normal range, but I want to control it at 135 pounds to avoid excessive weight gain from consuming too many snacks. So, once it goes over 135, I’ll start running.

I’ve been following a star photographer, Ziyi Ye, who has been traveling around the world alone for 18 years to capture solar eclipses. I really admire such a girl. I often watch documentaries about the universe, but in Shenzhen, it’s almost impossible to see the stars. When I saw the solar eclipse video she took, I was amazed.

I attended Zhou Chuanxiong’s concert for the first time, and I really love his songs. Before this, I had never spent money to attend a concert, I’m looking forward to him coming to Shenzhen again!

阅读更多

202306W2 Discord and Trancy

I found 2 platforms to practive English speaking skill, one is Discord,and the other one is Trancy.On Discord you can have conversations with people all over the world, most of them are students from Asia, I can only understand part of what they’re saying. For Trancy offers various dialogue scenarios for practice, such as healthy eating, gaming, and entertainment.

I have gained a lot of weight recently due to consuming too many snacks. I need to control it. Almost half of this year has already passed, and my reading record on Notion has only added one entry. It’s likely that my reading volume this year will be only half of what it was last year. I plan to spend more time reading in the remaining six months. Steve mentioned a few days ago that he will be going to Japan for work in July or August. I can catch up with him and hang out when I visit Japan afterward.

202306W1 Healthy

I got infected with the novel coronavirus at the beginning of this month. Last month, I informed my friends in the northern region that I would be returning there for a week’s vacation at the end of the month, and also planned to visit them. However, due to the virus, this plan had to be postponed until the end of June.

As mentioned before, I have now achieved automated deployment of the project on AWS. The next step is to utilize caching to accelerate the build process. However, progress has been a bit slow recently due to some physical discomfort. I have been focusing on studying Linux system-related topics lately.

202305W3 offline for a week

It has been three weeks since the last time I wrote a weekly report. Recently, I’ve been wanting to go back to the northern region to visit my family. A few days ago, I told my leader that I would be taking a week off. I will be flying to Beijing on the 27th of this month to meet my brother and sister, and then go to my hometown.

Recently, I have been studying AWS platform and GitHub Actions for automation purposes. I plan to gradually accomplish project building, deployment, logging, tracing, and performance monitoring. If there are no other tasks, I intend to work on these during my vacation.

202304W4 playing and playing

I have taken a guitar lesson for 2 weeks, from half a month ago, I started playing guitar as before. There are some interesting friends at the milk tea shop on Saturday, someone sings songs well, and someone plays musical instruments well, I’m glad to enjoy music.

Labour Day is coming soon, and my roommate asked me if there are any places there are not to crowded and fun to go to. Last year we went to a small island, but I haven’t decided where to go this time yet. I was thinking of just relaxing in Beijing, but there isn’t much to do there. There’s a good chance we’ll just stay in Guangdong province this year.

202303W4 go hiking

It has passed a month since I go hiking last time. I took 6 hours across the “dong xi chong” and then back to the beginning place with my frend on Saturday. At several monthes ago, I ran 4 kilometers every day, however, after a 6-kilometer attempt, my body couldn’t adapt. And one day a person told me that i looked fat than before suddenly, although I never deliberately try to lose weight, I want to maintain a normal appearance. So I decided to resume running 5 kilometers every day as before.