Community discussions

MikroTik App
 
Funtik
just joined
Topic Author
Posts: 2
Joined: Thu Mar 20, 2014 8:44 pm

How to get access to tap0 interface on OpenWrt from host?

Thu Mar 20, 2014 9:05 pm

How to get access to tap0 (ovpn-client) interface on OpenWrt from host?
for example:
Mikrotik 192.168.1.1
OpenWrt 192.168.1.100
tap0 192.168.2.10
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: How to get access to tap0 interface on OpenWrt from host

Fri Mar 21, 2014 2:01 pm

first you create virtual ethernet or assign ethernet interface to metarouter guest. Then you can create openvpn tunnel (or any tunnel) over the network connection, and then you can either use already existing ethernet or create new one and pass all packets passing TAP0 to ethernet.
 
Funtik
just joined
Topic Author
Posts: 2
Joined: Thu Mar 20, 2014 8:44 pm

Re: How to get access to tap0 interface on OpenWrt from host

Fri Mar 21, 2014 3:13 pm

I can ping remote network 192.168.2.0/24 and local 192.168.1.0/24 from OpenWrt.

Afrer:
/ip route add gateway=192.168.1.100 add dst-address=192.168.2.0/24
i can ping 192.168.2.100 (tap0) from host, but cannot ping the gateway (192.168.2.1) or any other device on the 192.168.2.0/24 network.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: How to get access to tap0 interface on OpenWrt from host

Mon Mar 24, 2014 9:45 am

throw away all the "virtual" stuff and what you get in the end is - 2 networks that have to be routed. Set up routing correctly and you should find that everything "just works"

Just treat all the "virtual stuff as an actual stuff that is connected by wires.

Who is online

Users browsing this forum: No registered users and 17 guests