I have 2 PCs, each can ping the other over ZT. But i need to load the webserver of a device connected to PC2 from PC1 location.
PC1: using windows
PC2: Using Linux CentOS 7:
i have 2 network cards, the first one is connected to internet, the second one is connected to a device X.
eth0-> Internet IP: 192.168.188.51
eth1-> connected to device: 10.147.20.17/255.255.255.252 broadcast 10.147.20.19
zertotier → 10.147.20.0/24
Inside PC2 from its shell, i can ping device X and load its webserver.
i tried building a bridge using brctl, but then i can not ping PC2 from PC1.
any body figures what i am doing wrong, and can help me to configure it?
i tried forwarding a port but it also did not work.
i used this script for the forward of port 8060 to port 80
iptables -F iptables -t nat -F iptables -X iptables -t nat -A PREROUTING -p tcp --dport 8060 -j DNAT --to-destination 10.147.20.17:80 iptables -t nat -A POSTROUTING -p tcp -d 10.147.20.17 --dport 80 -j SNAT --to-source 10.147.20.14 iptables -t nat -A POSTROUTING -j MASQUERADE
thank you in advance