How do I bridge two wi-Fi adapters on Linux












0















I have two problems in my project, I am setting up a Linux system using Ubuntu version 16.4. I intend to use this as a repeater / extender wireless.



I am trying to create a bridge from wi-fi to wi-fi as I have two Wi-Fi adapters and also have three IP’s (one from each external device) use this extender, to send the three IPs up to my database. I do need the three IPs without them changing as they transfer data into different tables in the DB for various reasons.



I need to have one Wi-Fi adapter as an access point and the other is a client to public network.



The Hardware:
2 x AR928X Wireless Network Adapter
OS: ubuntu 16.4



Trying to: create a bridge, I have been unsuccessful, I have NAT, but I do need a bridge. With this I need to have three devices attach and the three IPs with the data is forwarded to the Database.



I need to forward all incoming traffic without changing source IP.



Have tried the following:



company@box-4:~$ sudo ip link set wlp1s0_sta master br0

RTNETLINK answers: Operation not supported



and



Config dir: /tmp/create_ap.wlp5s0.conf.JX9PBiN5
PID: 8154
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual Wi-Fi interface... ap0 created.
Sharing Internet using method: bridge
Create a bridge interface... RTNETLINK answers: Operation not supported



In General I tried successfully to forward all incoming traffic to destination with nat masquerading and it did work, but it is not what I need because it put the 3 IPs into one IP.



IPs (getting three different devices to input and reach the server (the unit wants to put the three ips into one and only send the IP of the unit)



I did create a virtual Wi-Fi interface for real Wi-Fi interface and added this virtual to bridge when I tried to get the bridge working.



I did try to create access point and client to public network on one adapter but it did not work.



I also tried to use iptables SNAT rules to change source IP and this also did not work.



Thank you for reading, hopefully I can find help.










share|improve this question























  • This is a FAQ: You can't bridge WLAN stations ("STA") in 3-address mode (because the default 3-address protocol just can't do it). You can bridge WLAN AP points in 3-address mode, or WLAN stations in 4-address mode, but in the latter case all your WLAN devices need 4-address mode. The probably best solution is figure out another way of achieving what you want, but for that you'd have to describe your complete network setup.

    – dirkt
    Jan 20 at 7:08
















0















I have two problems in my project, I am setting up a Linux system using Ubuntu version 16.4. I intend to use this as a repeater / extender wireless.



I am trying to create a bridge from wi-fi to wi-fi as I have two Wi-Fi adapters and also have three IP’s (one from each external device) use this extender, to send the three IPs up to my database. I do need the three IPs without them changing as they transfer data into different tables in the DB for various reasons.



I need to have one Wi-Fi adapter as an access point and the other is a client to public network.



The Hardware:
2 x AR928X Wireless Network Adapter
OS: ubuntu 16.4



Trying to: create a bridge, I have been unsuccessful, I have NAT, but I do need a bridge. With this I need to have three devices attach and the three IPs with the data is forwarded to the Database.



I need to forward all incoming traffic without changing source IP.



Have tried the following:



company@box-4:~$ sudo ip link set wlp1s0_sta master br0

RTNETLINK answers: Operation not supported



and



Config dir: /tmp/create_ap.wlp5s0.conf.JX9PBiN5
PID: 8154
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual Wi-Fi interface... ap0 created.
Sharing Internet using method: bridge
Create a bridge interface... RTNETLINK answers: Operation not supported



In General I tried successfully to forward all incoming traffic to destination with nat masquerading and it did work, but it is not what I need because it put the 3 IPs into one IP.



IPs (getting three different devices to input and reach the server (the unit wants to put the three ips into one and only send the IP of the unit)



I did create a virtual Wi-Fi interface for real Wi-Fi interface and added this virtual to bridge when I tried to get the bridge working.



I did try to create access point and client to public network on one adapter but it did not work.



I also tried to use iptables SNAT rules to change source IP and this also did not work.



Thank you for reading, hopefully I can find help.










share|improve this question























  • This is a FAQ: You can't bridge WLAN stations ("STA") in 3-address mode (because the default 3-address protocol just can't do it). You can bridge WLAN AP points in 3-address mode, or WLAN stations in 4-address mode, but in the latter case all your WLAN devices need 4-address mode. The probably best solution is figure out another way of achieving what you want, but for that you'd have to describe your complete network setup.

    – dirkt
    Jan 20 at 7:08














0












0








0








I have two problems in my project, I am setting up a Linux system using Ubuntu version 16.4. I intend to use this as a repeater / extender wireless.



I am trying to create a bridge from wi-fi to wi-fi as I have two Wi-Fi adapters and also have three IP’s (one from each external device) use this extender, to send the three IPs up to my database. I do need the three IPs without them changing as they transfer data into different tables in the DB for various reasons.



I need to have one Wi-Fi adapter as an access point and the other is a client to public network.



The Hardware:
2 x AR928X Wireless Network Adapter
OS: ubuntu 16.4



Trying to: create a bridge, I have been unsuccessful, I have NAT, but I do need a bridge. With this I need to have three devices attach and the three IPs with the data is forwarded to the Database.



I need to forward all incoming traffic without changing source IP.



Have tried the following:



company@box-4:~$ sudo ip link set wlp1s0_sta master br0

RTNETLINK answers: Operation not supported



and



Config dir: /tmp/create_ap.wlp5s0.conf.JX9PBiN5
PID: 8154
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual Wi-Fi interface... ap0 created.
Sharing Internet using method: bridge
Create a bridge interface... RTNETLINK answers: Operation not supported



In General I tried successfully to forward all incoming traffic to destination with nat masquerading and it did work, but it is not what I need because it put the 3 IPs into one IP.



IPs (getting three different devices to input and reach the server (the unit wants to put the three ips into one and only send the IP of the unit)



I did create a virtual Wi-Fi interface for real Wi-Fi interface and added this virtual to bridge when I tried to get the bridge working.



I did try to create access point and client to public network on one adapter but it did not work.



I also tried to use iptables SNAT rules to change source IP and this also did not work.



Thank you for reading, hopefully I can find help.










share|improve this question














I have two problems in my project, I am setting up a Linux system using Ubuntu version 16.4. I intend to use this as a repeater / extender wireless.



I am trying to create a bridge from wi-fi to wi-fi as I have two Wi-Fi adapters and also have three IP’s (one from each external device) use this extender, to send the three IPs up to my database. I do need the three IPs without them changing as they transfer data into different tables in the DB for various reasons.



I need to have one Wi-Fi adapter as an access point and the other is a client to public network.



The Hardware:
2 x AR928X Wireless Network Adapter
OS: ubuntu 16.4



Trying to: create a bridge, I have been unsuccessful, I have NAT, but I do need a bridge. With this I need to have three devices attach and the three IPs with the data is forwarded to the Database.



I need to forward all incoming traffic without changing source IP.



Have tried the following:



company@box-4:~$ sudo ip link set wlp1s0_sta master br0

RTNETLINK answers: Operation not supported



and



Config dir: /tmp/create_ap.wlp5s0.conf.JX9PBiN5
PID: 8154
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual Wi-Fi interface... ap0 created.
Sharing Internet using method: bridge
Create a bridge interface... RTNETLINK answers: Operation not supported



In General I tried successfully to forward all incoming traffic to destination with nat masquerading and it did work, but it is not what I need because it put the 3 IPs into one IP.



IPs (getting three different devices to input and reach the server (the unit wants to put the three ips into one and only send the IP of the unit)



I did create a virtual Wi-Fi interface for real Wi-Fi interface and added this virtual to bridge when I tried to get the bridge working.



I did try to create access point and client to public network on one adapter but it did not work.



I also tried to use iptables SNAT rules to change source IP and this also did not work.



Thank you for reading, hopefully I can find help.







linux networking wireless-networking nat wireless-bridge






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 20 at 3:53









Ronan2505Ronan2505

1




1













  • This is a FAQ: You can't bridge WLAN stations ("STA") in 3-address mode (because the default 3-address protocol just can't do it). You can bridge WLAN AP points in 3-address mode, or WLAN stations in 4-address mode, but in the latter case all your WLAN devices need 4-address mode. The probably best solution is figure out another way of achieving what you want, but for that you'd have to describe your complete network setup.

    – dirkt
    Jan 20 at 7:08



















  • This is a FAQ: You can't bridge WLAN stations ("STA") in 3-address mode (because the default 3-address protocol just can't do it). You can bridge WLAN AP points in 3-address mode, or WLAN stations in 4-address mode, but in the latter case all your WLAN devices need 4-address mode. The probably best solution is figure out another way of achieving what you want, but for that you'd have to describe your complete network setup.

    – dirkt
    Jan 20 at 7:08

















This is a FAQ: You can't bridge WLAN stations ("STA") in 3-address mode (because the default 3-address protocol just can't do it). You can bridge WLAN AP points in 3-address mode, or WLAN stations in 4-address mode, but in the latter case all your WLAN devices need 4-address mode. The probably best solution is figure out another way of achieving what you want, but for that you'd have to describe your complete network setup.

– dirkt
Jan 20 at 7:08





This is a FAQ: You can't bridge WLAN stations ("STA") in 3-address mode (because the default 3-address protocol just can't do it). You can bridge WLAN AP points in 3-address mode, or WLAN stations in 4-address mode, but in the latter case all your WLAN devices need 4-address mode. The probably best solution is figure out another way of achieving what you want, but for that you'd have to describe your complete network setup.

– dirkt
Jan 20 at 7:08










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396224%2fhow-do-i-bridge-two-wi-fi-adapters-on-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396224%2fhow-do-i-bridge-two-wi-fi-adapters-on-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар