tag:blogger.com,1999:blog-4019157125113428354.post3895994970769485975..comments2024-01-16T06:35:48.923-08:00Comments on Learn and share: Very bad network simulation for testing of mobile applications [PART 2]Juraj Húskahttp://www.blogger.com/profile/18017495234660451529noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-4019157125113428354.post-45239069860558916552015-08-24T14:27:03.941-07:002015-08-24T14:27:03.941-07:00Hi, I think everyone works well until I try to run...Hi, I think everyone works well until I try to run qos.sh script.<br />For example after giving permission to all the files, I simply ran ./qos.sh start 200kbit 260kbit 120ms 40ms 120ms 40ms 5%<br />and I keep receiving "Command line is not complete. Try option "help"" message.<br /><br />I believe I gave right IP_IN and IP_OUT (ran ip route get 8.8.8.8 | awk '{print $NF; exit}')<br />Why am I keep receiving that message?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-86753820037677645852015-08-20T01:26:41.049-07:002015-08-20T01:26:41.049-07:00If everything is configured correctly, then it sho...If everything is configured correctly, then it should not disable Internet from your workstation.<br /><br />IHMO you are quite close to the solution if you are able to obtain an IP address. Now you should continue with setting up MASQUERADE.<br /><br />Another source to follow, a script which automates all settings for AP:<br />https://gist.github.com/dashohoxha/5767262Juraj Húskahttps://www.blogger.com/profile/18017495234660451529noreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-44523323721508131182015-08-19T15:47:06.777-07:002015-08-19T15:47:06.777-07:00So it's not normal that 'sudo service host...So it's not normal that 'sudo service hostapd start' disables my internet from linux work station, correct?<br />I see the AP name on my devices and able to receive IP address (although can't connect to internet).<br />I've been working on this project for a long time now, but I still haven't found a real solution.. :(<br />I wonder if it's due to using my old netbook..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-67788635709513874472015-08-19T10:28:25.177-07:002015-08-19T10:28:25.177-07:00Yes, I am using TL-WN722N (but I guess it should n...Yes, I am using TL-WN722N (but I guess it should not matter that much if the chipset is the same). I am using Ubuntu 14.10, kernel 3.16.0-29.<br /><br />I remember now one problem with hostapd. I had to install lover version because of some bug in it. I locked the version for hostapd, so Ubuntu will not update it. I am using 1:1.0-3ubuntu1 version. If your problems persist try to study /var/log/syslog file, and see the error message if any, once you start the wifi service.<br /><br />My second suggestions is:<br />* check interface names in the configuration files<br />* check whether you have not set any iptables rules which would block Internet for connected devicesJuraj Húskahttps://www.blogger.com/profile/18017495234660451529noreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-90700498643588142082015-08-19T09:58:18.635-07:002015-08-19T09:58:18.635-07:00maybe I ask you which Ubuntu you are using as well...maybe I ask you which Ubuntu you are using as well?<br />Are you using TP-LINK TL-WN722N Wireless adaptor?<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-86656892173016360332015-08-18T15:43:36.021-07:002015-08-18T15:43:36.021-07:00hi I purchased a this USB adapter https://www.thin...hi I purchased a this USB adapter https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter-gnu-linux-tpe-n150usb<br />However, I am having really difficult time setting up AP.<br />Whenever I run 'sudo service hostapd start' command, my linux machine internet gets disconnected.<br />My android devices are able to connect to the AP with no internet service, but is getting IP address.<br />However, my linux machines' internet is completely gone whenever I run service hostapd start command..<br /><br />Any ideas why?<br />thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-57161820667228062312015-08-13T09:54:18.585-07:002015-08-13T09:54:18.585-07:00Thanks again!
I just ordered couple wifi adapters...Thanks again! <br />I just ordered couple wifi adapters<br />Hopefully I can get it work flawlessly!<br />I will update you with my progress.<br />Really appreciate your post here, thanksAnonymoushttps://www.blogger.com/profile/16727687628535723294noreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-5696396826389648022015-08-12T14:26:24.414-07:002015-08-12T14:26:24.414-07:00Hello, thank you for your feedback.
Yes, a WIFI d...Hello, thank you for your feedback.<br /><br />Yes, a WIFI dongle would be enough.<br /><br />Regarding to OSX. IMHO it should work there as well. It would require some tuning, but it should be doable.<br /><br />The key parts are: hostapd, DHCP server, firewall (iptables). If there are such components, or there are equivalents you should be OK.<br /><br />Recently I have encountered a small problem with this solution. When packet loss is set, then it is sometimes unstable.<br /><br />Give it a try and let me know whether you are successful :)Juraj Húskahttps://www.blogger.com/profile/18017495234660451529noreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-47508403035677090182015-08-12T11:03:50.391-07:002015-08-12T11:03:50.391-07:00Thank you for this great post!
I've been looki...Thank you for this great post!<br />I've been looking for a solution to create a bad network environment at work for our engineers to test applications under different network types.<br />Couple questions as I was originally planning on using 'Cellular-Data-Network-Simulator'. <br />I was going to buy a new router with rich features of QoS and OpenWRT capabilities. <br />However, with your strategy, it seems that I would only need WIFI dongle to create a separate AP for testing purposes only?<br />Also can I accomplish this using OSX instead of Linux based machines?<br />Thank you again!Anonymoushttps://www.blogger.com/profile/16727687628535723294noreply@blogger.comtag:blogger.com,1999:blog-4019157125113428354.post-44118113426220377322015-08-12T11:03:31.770-07:002015-08-12T11:03:31.770-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/16727687628535723294noreply@blogger.com