Linux emulate multiple Wifi connections
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks
wifi wlan interface
add a comment |Â
up vote
1
down vote
favorite
I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks
wifi wlan interface
Tell us why you want to simulate them.
â Rui F Ribeiro
Mar 15 at 8:19
@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
â user3808318
Mar 15 at 9:31
We are getting somewhere. Testing FreeRadius?
â Rui F Ribeiro
Mar 15 at 11:04
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks
wifi wlan interface
I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks
wifi wlan interface
asked Mar 15 at 6:59
user3808318
82
82
Tell us why you want to simulate them.
â Rui F Ribeiro
Mar 15 at 8:19
@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
â user3808318
Mar 15 at 9:31
We are getting somewhere. Testing FreeRadius?
â Rui F Ribeiro
Mar 15 at 11:04
add a comment |Â
Tell us why you want to simulate them.
â Rui F Ribeiro
Mar 15 at 8:19
@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
â user3808318
Mar 15 at 9:31
We are getting somewhere. Testing FreeRadius?
â Rui F Ribeiro
Mar 15 at 11:04
Tell us why you want to simulate them.
â Rui F Ribeiro
Mar 15 at 8:19
Tell us why you want to simulate them.
â Rui F Ribeiro
Mar 15 at 8:19
@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
â user3808318
Mar 15 at 9:31
@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
â user3808318
Mar 15 at 9:31
We are getting somewhere. Testing FreeRadius?
â Rui F Ribeiro
Mar 15 at 11:04
We are getting somewhere. Testing FreeRadius?
â Rui F Ribeiro
Mar 15 at 11:04
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Have a look at the mac80211_hwsim
kernel module. This module simulates a number of virtual "radios" (wifi cards, or phy
s) that communicate with each other. E.g.,
modprobe mac80211_hwsim radios=3
will give you 3 of those. Use iw dev
to view them and see their MAC address. Then you can use iw
and ip
to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0
interface of ieee802.11/radiotap
type, and you can run wireshark
on it to see the messages that go through the "virtual" air.
If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Have a look at the mac80211_hwsim
kernel module. This module simulates a number of virtual "radios" (wifi cards, or phy
s) that communicate with each other. E.g.,
modprobe mac80211_hwsim radios=3
will give you 3 of those. Use iw dev
to view them and see their MAC address. Then you can use iw
and ip
to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0
interface of ieee802.11/radiotap
type, and you can run wireshark
on it to see the messages that go through the "virtual" air.
If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.
add a comment |Â
up vote
1
down vote
accepted
Have a look at the mac80211_hwsim
kernel module. This module simulates a number of virtual "radios" (wifi cards, or phy
s) that communicate with each other. E.g.,
modprobe mac80211_hwsim radios=3
will give you 3 of those. Use iw dev
to view them and see their MAC address. Then you can use iw
and ip
to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0
interface of ieee802.11/radiotap
type, and you can run wireshark
on it to see the messages that go through the "virtual" air.
If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Have a look at the mac80211_hwsim
kernel module. This module simulates a number of virtual "radios" (wifi cards, or phy
s) that communicate with each other. E.g.,
modprobe mac80211_hwsim radios=3
will give you 3 of those. Use iw dev
to view them and see their MAC address. Then you can use iw
and ip
to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0
interface of ieee802.11/radiotap
type, and you can run wireshark
on it to see the messages that go through the "virtual" air.
If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.
Have a look at the mac80211_hwsim
kernel module. This module simulates a number of virtual "radios" (wifi cards, or phy
s) that communicate with each other. E.g.,
modprobe mac80211_hwsim radios=3
will give you 3 of those. Use iw dev
to view them and see their MAC address. Then you can use iw
and ip
to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0
interface of ieee802.11/radiotap
type, and you can run wireshark
on it to see the messages that go through the "virtual" air.
If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.
answered Mar 17 at 6:31
dirkt
14k2930
14k2930
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430326%2flinux-emulate-multiple-wifi-connections%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Tell us why you want to simulate them.
â Rui F Ribeiro
Mar 15 at 8:19
@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
â user3808318
Mar 15 at 9:31
We are getting somewhere. Testing FreeRadius?
â Rui F Ribeiro
Mar 15 at 11:04