There is no permission to access dubbo, jump to the server through ip, and access through the authorized server proxy

#Start ip jump

echo 1 > /proc/sys/net/ipv4/ip_forward

vi /etc/sysctl.conf

net.ipv4.ip_forward =1

sysctl -p /etc/sysctl.conf

 

#centos 7 install iptables

yum install iptables-services

service iptables start

 

#ip mapping

iptables -t nat -A OUTPUT -p all -d 80.80.80.80 -j DNAT --to-destination 127.0.0.1

iptables -t nat -A POSTROUTING -p all -j MASQUERADE

 

#nginx_tcp_proxy_module installation method: https://github.com/yaoweibin/nginx_tcp_proxy_module

#Requires the same version of nginx to compile and run the patch command

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022994&siteId=291194637