You are not logged in.

#1 2017-07-22 11:35:26

saw_mj
Member
Registered: 2017-06-12
Posts: 49

[SOLVED] How to bridge a Wireless interface with a virtual interface?

....

Last edited by saw_mj (2017-07-26 07:24:11)

Offline

#2 2017-07-23 03:41:06

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: [SOLVED] How to bridge a Wireless interface with a virtual interface?

.......

Last edited by saw_mj (2017-07-25 14:33:20)

Offline

#3 2017-07-25 07:09:45

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: [SOLVED] How to bridge a Wireless interface with a virtual interface?

I'm trying to bridge my wireless interface with another interface

and my exact setup is to use my wireless interface to provide Internet Access to my virtual network "at0" created by aircrack-ng tool " Airbase-ng"

but i seem i can't get it work

https://wiki.archlinux.org/index.php/Ne … n_a_bridge

according the wiki when i try to
# ip link set eth0 master bridge_name
it gives me that error

RTNETLINK answers: Operation not supported

when i try brctl
it gives me the same error.


---
what i came up with that i need to change any incoming packet layers' macaddresses to be the same as the wireless interface itself (the source mac address) and the only tutorial on how doing that is on debian.wiki

https://wiki.debian.org/BridgeNetworkCo … reless_NIC

and i issued the command that set the source MAC address to the MAC address of the bridge for all frames sent to the AP.

which is

# ebtables -t nat -A POSTROUTING -o wlan0 -j snat --to-src $MAC_OF_BRIDGE --snat-arp --snat-target ACCEPT

and after that when i try to make a bridge and add the wireless interface to the bridge with IPROUTE2

it gives me the same error.

and i don't know if the second command is required or no but it says it requires to know the MAC and IP of every device connected to the virtual interface which would be a pain in the A**


Is there a clearer way to be able to do so ?

Offline

#4 2017-07-25 14:30:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED] How to bridge a Wireless interface with a virtual interface?

Please do not cross post. https://wiki.archlinux.org/index.php/Co … ss-posting

You had an existing thread on this topic in the "Newbie Section".  I have merged both threads and have left the combined post here in Networking, Sever and Protection.  In the future, if you wish a topic moved, I ask that you use the report link for the tread and leave the moderators a request to move it for you.  Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-07-25 19:07:46

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] How to bridge a Wireless interface with a virtual interface?

saw_mj wrote:

use my wireless interface to provide Internet Access to my virtual network "at0"

That is *not* a bridge - it is the usual routing, forwarding and masquerading.

Offline

#6 2017-07-26 07:23:46

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: [SOLVED] How to bridge a Wireless interface with a virtual interface?

brebs wrote:
saw_mj wrote:

use my wireless interface to provide Internet Access to my virtual network "at0"

That is *not* a bridge - it is the usual routing, forwarding and masquerading.


I used the Bridge approach before but it was on ethernet interface,

But anyway, I solved it with the routing approach. and actually the routing "iproute" method was easier than i thought and fits my needs perfectly

and here's the wiki for ip forwarding for anyone was looking for it.

https://wiki.archlinux.org/index.php/Internet_sharing .

Thank you smile .

Offline

Board footer

Powered by FluxBB