openvpn & interfaces config

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Salamina
OpenVpn Newbie
Posts: 3
Joined: Fri Jul 31, 2020 7:43 pm

openvpn & interfaces config

Post by Salamina » Fri Jul 31, 2020 8:04 pm

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?
Last edited by Pippin on Sat Aug 01, 2020 11:13 am, edited 2 times in total.
Reason: Formatting

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn & interfaces config

Post by TinCanTech » Sat Aug 01, 2020 10:47 am

Reason: Formatting, is worse than the original.

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: openvpn & interfaces config

Post by Pippin » Sat Aug 01, 2020 11:15 am

Fixed :) .
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn & interfaces config

Post by TinCanTech » Sat Aug 01, 2020 11:31 am

Thank you, much appreciated 8-)

Salamina
OpenVpn Newbie
Posts: 3
Joined: Fri Jul 31, 2020 7:43 pm

Re: openvpn & interfaces config

Post by Salamina » Sun Aug 02, 2020 6:01 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn & interfaces config

Post by TinCanTech » Sun Aug 02, 2020 6:23 pm

OpenVPN is working normally.

Your network has not been configured correctly.

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

Salamina
OpenVpn Newbie
Posts: 3
Joined: Fri Jul 31, 2020 7:43 pm

Re: openvpn & interfaces config

Post by Salamina » Tue Aug 04, 2020 8:44 am

Perhaps I'll continue searching. It will be more cheaper for me.
The dhcp config for eth0 is left over.

Thank you.

Post Reply