How to bridge a TUN and a TAP VPNs

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
chameleon
OpenVpn Newbie
Posts: 13
Joined: Wed Sep 11, 2019 4:54 am

How to bridge a TUN and a TAP VPNs

Post by chameleon » Thu Sep 30, 2021 9:23 pm

I have a TAP VPN (for gaming).
- TAP VPN Server (10.0.0.2) is the NAS of my LAN.
- There are some TAP VPN Clients outside of my LAN.
- All of my LAN (10.0.0.0/255.255.255.0) (windows) computers belong to TAP VPN by default (they do not run a VPN client)
- In server config, I push route 10.8.0.0 (but LAN computers do not get it because they are not VPN clients).

Now, I have also a TUN VPN (to connect android mobile phones).
- TUN VPN Server (10.8.0.1) is the NAS of my LAN.
- There are some TUN VPN Clients outside of my LAN like my android phone (10.8.0.2).
- All of my LAN (windows) computers do NOT belong to TUN VPN.
- In server config, I push route 10.0.0.0.

NOW
- All of my LAN (windows) computers can access TUN VPN Server with 10.8.0.1.
- My phone (10.8.0.2) CANNOT access my PC (10.0.0.8).
- My PC CANNOT access my phone.

I run in my PC the command (windows):

Code: Select all

route /p add 10.8.0.0 mask 255.255.255.0 10.8.0.1
but "ping" does not reach my mobile. Also mobile cannot ping my PC.
But mobile ping 10.0.0.2 and my PC ping 10.8.0.1.

Is there a way to fix this without run a TUN VPN Client in my PC?

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

Re: How to bridge a TUN and a TAP VPNs

Post by TinCanTech » Thu Sep 30, 2021 11:14 pm

Quoth The Eight-ball says:
  • Your route is off-course.

chameleon
OpenVpn Newbie
Posts: 13
Joined: Wed Sep 11, 2019 4:54 am

Re: How to bridge a TUN and a TAP VPNs

Post by chameleon » Tue Oct 05, 2021 9:42 pm

TinCanTech wrote:
Thu Sep 30, 2021 11:14 pm
  • Your route is off-course.
Which means?

chameleon
OpenVpn Newbie
Posts: 13
Joined: Wed Sep 11, 2019 4:54 am

Re: How to bridge a TUN and a TAP VPNs

Post by chameleon » Thu Oct 07, 2021 11:12 pm

IP forwarding in my server was off.
I just enable it and all work great.

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

Re: How to bridge a TUN and a TAP VPNs

Post by TinCanTech » Thu Oct 07, 2021 11:32 pm

chameleon wrote:
Thu Oct 07, 2021 11:12 pm
IP forwarding in my server was off
It was ..
chameleon wrote:
Thu Oct 07, 2021 11:12 pm
I just enable it and all work great
Nope.

You figured out this riddle:
TinCanTech wrote:
Thu Sep 30, 2021 11:14 pm
Quoth The Eight-ball says:
  • Your route is off-course.
8-)

Post Reply