- source:
192.168.1.0/24
- destination:
172.16.1.0/24
- policy:
SNAT
iptables -A FORWARD -s 192.168.1.0/24 -d 172.16.1.1/24 -j ACCEPT
iptables -A FORWARD[......]
192.168.1.0/24
172.16.1.0/24
SNAT
iptables -A FORWARD -s 192.168.1.0/24 -d 172.16.1.1/24 -j ACCEPT
iptables -A FORWARD[......]
ubuntu@Server:~$ uname -a
Linux thinkpad 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 x86_64 x86_64 x86_64 GN[......]
如果部署在Docker中的Jenkins报上述错误,修改方法:
Nginx的location配置中添加
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP[......]
https://mirror.xmission.com/jenkins/war-stable/