On logical net is 192.168.22.0/24 (internet gateway is 192.168.22.1 and one Win10 computer 192.168.22.2) and the other is the PLC net with 192.168.4.0/24 address style.
I put orange pi zero with a:
- ethernet port
- openvpn tap0 for layer 2 packet bridging. Client.
- bridge with two ips 192.168.22.3 & 192.168.4.127.
- My computer, at my office, with 192.168.4.126 tap address. Server.
With the computer I want to connect Siemens PLC at 192.168.4.0/24 range.
The interfaces:
Code: Select all
auto lo
iface lo inet loopback
allow-hotplug tap0
tunctl_user uml-net
auto eth0
iface eth0 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0
auto br0:1
iface br0:1 inet static
address 192.168.4.127
netmask 255.255.255.0
broadcast 192.168.4.255
Server config
dev tap
dev-node tap
port 1196
comp-lzo
secret static.key
and the client:
Client config
dev tap
auth-nocache
port 1196
remote XXX.ddnsfree.com
comp-lzo
keepalive 10 20
secret static.key
The connection its done but if I ping from Win10 the orange pi no echo is returned.
Any idea?