Page 1 of 1

openvpn & interfaces config

Posted: Fri Jul 31, 2020 8:04 pm
by Salamina
I've a PLC customer physical network with two logical ip family addresses.

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
The server (Win10):
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?

Re: openvpn & interfaces config

Posted: Sat Aug 01, 2020 10:47 am
by TinCanTech
Reason: Formatting, is worse than the original.

Re: openvpn & interfaces config

Posted: Sat Aug 01, 2020 11:15 am
by Pippin
Fixed :) .

Re: openvpn & interfaces config

Posted: Sat Aug 01, 2020 11:31 am
by TinCanTech
Thank you, much appreciated 8-)

Re: openvpn & interfaces config

Posted: Sun Aug 02, 2020 6:01 pm
by Salamina
Ok, I see... thank you. More clear, of course.

The problem is that the bridge is stablished, the tunnel too, but if I check connectivity doing a ping no echo is returned.
The bridge, as I expected, doesn't send the packets trought eth0 and tap0.

Perhaps the solution is another, configuring another bridge and or/and another openvpn config.

Re: openvpn & interfaces config

Posted: Sun Aug 02, 2020 6:23 pm
by TinCanTech
OpenVPN is working normally.

Your network has not been configured correctly.

If you require network support then I am available for hire.

Re: openvpn & interfaces config

Posted: Tue Aug 04, 2020 8:44 am
by Salamina
Perhaps I'll continue searching. It will be more cheaper for me.
The dhcp config for eth0 is left over.

Thank you.