Bridging 2 Network Devices in CentOS 7

Hello guys,

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:

In PC2:
i have 2 network cards, the first one is connected to internet, the second one is connected to a device X.
eth0-> Internet IP:
eth1-> connected to device: broadcast
zertotier →

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
iptables -t nat -A POSTROUTING -p tcp -d --dport 80 -j SNAT --to-source
iptables -t nat -A POSTROUTING -j MASQUERADE

thank you in advance

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.