WLan Repeater using USB WLAN Adapter












0














I know there are already many questions and tutorials regarding this topic, but most of them seem to go in a slightly different direction and none of them could really help me so far.



So what I'm trying to achieve is a temporay WLan Repeater-setup. I want my build in WLan card to stay connected to the Router, while my TP-Link Adapter runs as AP. But I only want to use it once in a while. Therefore I'm looking for a lightweight solution which, as far as possible, works without changing any System properties and dont need something as a DHCP server which is permanently running.



I got an AP running using hostapd, but now I dont really know how to move on from here. Do I need a DHCP Server at all, or can I just forward any conecctions and requests to the router? If so how could I set this up? And how do I keep my internal wlan connected, after disabling the network-manager service in order for hostapd to work? Would it even be possible to get the whole thing to work using only my internal Wlan? I mean Windows could do it, so Ubuntu should be able do do it as well, right?



The perfect solution would be transfereable into a bash script, which then starts the process inside a terminal.



Any help would be very much apreciated.










share|improve this question






















  • You don't need a dhcp server if you set your IP addresses and gateway manually on the client machine.
    – spacelander
    Nov 29 at 17:56










  • You need however to enable IP forwarding first echo 1 > /proc/sys/net/ipv4/ip_forward for one-time (i.e. until reboot) forwarding on the AP
    – spacelander
    Nov 29 at 18:00












  • @spacelander ok but how to i tell the computer to forward all the connections from the AP to the router? right now theres only the AP running with hostapd which i can connect to, but the devices obviously dont have internet access.
    – Flo
    Nov 30 at 15:39






  • 1




    You need to enable something called IP Masquerading on your firewall. I haven't done this in a few years, so I didn't respond only comment. I would suggest reading help.ubuntu.com/lts/serverguide/…
    – spacelander
    Dec 1 at 12:05










  • Alternatively try setting up a bridge. This is described here: help.ubuntu.com/community/NetworkConnectionBridge
    – spacelander
    Dec 1 at 12:08
















0














I know there are already many questions and tutorials regarding this topic, but most of them seem to go in a slightly different direction and none of them could really help me so far.



So what I'm trying to achieve is a temporay WLan Repeater-setup. I want my build in WLan card to stay connected to the Router, while my TP-Link Adapter runs as AP. But I only want to use it once in a while. Therefore I'm looking for a lightweight solution which, as far as possible, works without changing any System properties and dont need something as a DHCP server which is permanently running.



I got an AP running using hostapd, but now I dont really know how to move on from here. Do I need a DHCP Server at all, or can I just forward any conecctions and requests to the router? If so how could I set this up? And how do I keep my internal wlan connected, after disabling the network-manager service in order for hostapd to work? Would it even be possible to get the whole thing to work using only my internal Wlan? I mean Windows could do it, so Ubuntu should be able do do it as well, right?



The perfect solution would be transfereable into a bash script, which then starts the process inside a terminal.



Any help would be very much apreciated.










share|improve this question






















  • You don't need a dhcp server if you set your IP addresses and gateway manually on the client machine.
    – spacelander
    Nov 29 at 17:56










  • You need however to enable IP forwarding first echo 1 > /proc/sys/net/ipv4/ip_forward for one-time (i.e. until reboot) forwarding on the AP
    – spacelander
    Nov 29 at 18:00












  • @spacelander ok but how to i tell the computer to forward all the connections from the AP to the router? right now theres only the AP running with hostapd which i can connect to, but the devices obviously dont have internet access.
    – Flo
    Nov 30 at 15:39






  • 1




    You need to enable something called IP Masquerading on your firewall. I haven't done this in a few years, so I didn't respond only comment. I would suggest reading help.ubuntu.com/lts/serverguide/…
    – spacelander
    Dec 1 at 12:05










  • Alternatively try setting up a bridge. This is described here: help.ubuntu.com/community/NetworkConnectionBridge
    – spacelander
    Dec 1 at 12:08














0












0








0







I know there are already many questions and tutorials regarding this topic, but most of them seem to go in a slightly different direction and none of them could really help me so far.



So what I'm trying to achieve is a temporay WLan Repeater-setup. I want my build in WLan card to stay connected to the Router, while my TP-Link Adapter runs as AP. But I only want to use it once in a while. Therefore I'm looking for a lightweight solution which, as far as possible, works without changing any System properties and dont need something as a DHCP server which is permanently running.



I got an AP running using hostapd, but now I dont really know how to move on from here. Do I need a DHCP Server at all, or can I just forward any conecctions and requests to the router? If so how could I set this up? And how do I keep my internal wlan connected, after disabling the network-manager service in order for hostapd to work? Would it even be possible to get the whole thing to work using only my internal Wlan? I mean Windows could do it, so Ubuntu should be able do do it as well, right?



The perfect solution would be transfereable into a bash script, which then starts the process inside a terminal.



Any help would be very much apreciated.










share|improve this question













I know there are already many questions and tutorials regarding this topic, but most of them seem to go in a slightly different direction and none of them could really help me so far.



So what I'm trying to achieve is a temporay WLan Repeater-setup. I want my build in WLan card to stay connected to the Router, while my TP-Link Adapter runs as AP. But I only want to use it once in a while. Therefore I'm looking for a lightweight solution which, as far as possible, works without changing any System properties and dont need something as a DHCP server which is permanently running.



I got an AP running using hostapd, but now I dont really know how to move on from here. Do I need a DHCP Server at all, or can I just forward any conecctions and requests to the router? If so how could I set this up? And how do I keep my internal wlan connected, after disabling the network-manager service in order for hostapd to work? Would it even be possible to get the whole thing to work using only my internal Wlan? I mean Windows could do it, so Ubuntu should be able do do it as well, right?



The perfect solution would be transfereable into a bash script, which then starts the process inside a terminal.



Any help would be very much apreciated.







networking wireless dhcp 18.10 hostapd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 29 at 12:55









Flo

285




285












  • You don't need a dhcp server if you set your IP addresses and gateway manually on the client machine.
    – spacelander
    Nov 29 at 17:56










  • You need however to enable IP forwarding first echo 1 > /proc/sys/net/ipv4/ip_forward for one-time (i.e. until reboot) forwarding on the AP
    – spacelander
    Nov 29 at 18:00












  • @spacelander ok but how to i tell the computer to forward all the connections from the AP to the router? right now theres only the AP running with hostapd which i can connect to, but the devices obviously dont have internet access.
    – Flo
    Nov 30 at 15:39






  • 1




    You need to enable something called IP Masquerading on your firewall. I haven't done this in a few years, so I didn't respond only comment. I would suggest reading help.ubuntu.com/lts/serverguide/…
    – spacelander
    Dec 1 at 12:05










  • Alternatively try setting up a bridge. This is described here: help.ubuntu.com/community/NetworkConnectionBridge
    – spacelander
    Dec 1 at 12:08


















  • You don't need a dhcp server if you set your IP addresses and gateway manually on the client machine.
    – spacelander
    Nov 29 at 17:56










  • You need however to enable IP forwarding first echo 1 > /proc/sys/net/ipv4/ip_forward for one-time (i.e. until reboot) forwarding on the AP
    – spacelander
    Nov 29 at 18:00












  • @spacelander ok but how to i tell the computer to forward all the connections from the AP to the router? right now theres only the AP running with hostapd which i can connect to, but the devices obviously dont have internet access.
    – Flo
    Nov 30 at 15:39






  • 1




    You need to enable something called IP Masquerading on your firewall. I haven't done this in a few years, so I didn't respond only comment. I would suggest reading help.ubuntu.com/lts/serverguide/…
    – spacelander
    Dec 1 at 12:05










  • Alternatively try setting up a bridge. This is described here: help.ubuntu.com/community/NetworkConnectionBridge
    – spacelander
    Dec 1 at 12:08
















You don't need a dhcp server if you set your IP addresses and gateway manually on the client machine.
– spacelander
Nov 29 at 17:56




You don't need a dhcp server if you set your IP addresses and gateway manually on the client machine.
– spacelander
Nov 29 at 17:56












You need however to enable IP forwarding first echo 1 > /proc/sys/net/ipv4/ip_forward for one-time (i.e. until reboot) forwarding on the AP
– spacelander
Nov 29 at 18:00






You need however to enable IP forwarding first echo 1 > /proc/sys/net/ipv4/ip_forward for one-time (i.e. until reboot) forwarding on the AP
– spacelander
Nov 29 at 18:00














@spacelander ok but how to i tell the computer to forward all the connections from the AP to the router? right now theres only the AP running with hostapd which i can connect to, but the devices obviously dont have internet access.
– Flo
Nov 30 at 15:39




@spacelander ok but how to i tell the computer to forward all the connections from the AP to the router? right now theres only the AP running with hostapd which i can connect to, but the devices obviously dont have internet access.
– Flo
Nov 30 at 15:39




1




1




You need to enable something called IP Masquerading on your firewall. I haven't done this in a few years, so I didn't respond only comment. I would suggest reading help.ubuntu.com/lts/serverguide/…
– spacelander
Dec 1 at 12:05




You need to enable something called IP Masquerading on your firewall. I haven't done this in a few years, so I didn't respond only comment. I would suggest reading help.ubuntu.com/lts/serverguide/…
– spacelander
Dec 1 at 12:05












Alternatively try setting up a bridge. This is described here: help.ubuntu.com/community/NetworkConnectionBridge
– spacelander
Dec 1 at 12:08




Alternatively try setting up a bridge. This is described here: help.ubuntu.com/community/NetworkConnectionBridge
– spacelander
Dec 1 at 12:08















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f1097114%2fwlan-repeater-using-usb-wlan-adapter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2faskubuntu.com%2fquestions%2f1097114%2fwlan-repeater-using-usb-wlan-adapter%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

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents