You are not logged in.
....
Last edited by saw_mj (2017-07-26 07:24:11)
Offline
.......
Last edited by saw_mj (2017-07-25 14:33:20)
Offline
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
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
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
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 .
Offline