ronnyvdbr / ronnyvdbr.github.io Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi - Wifi Router Project
Raspberry Pi - Wifi Router Project
I have tried the default username/password combo of admin/raspberry to login to the web ui but it doesn't work.
Any thoughts?
Hi,
I would like to know if there is any support for rtl871xdrv driver instead of generic nl80211.
in the advanced wireless options its not possible to change anything, because there is no form
How does one configure the IMAGE once they install, i boot it up, login and i cant even ping google.com
My other computers see the wirless network but have no internet. Internet works so i assume i need to configure this somehow ? seems documentation is lacking...
this would be AWSOME - taking a raspi device to any place (especially hotels) and allow it to function as secured-private_nat_provider repeater
This way, you will have good wifi connection at any place in the room AND you will be secured behind firewall and iptables etc.
NAT option will allow several devices to connect securely via netwrok w/o evil forces eavesdropping on you
Along w/ your roadmap, it seems that this feature request has a very little effort as shown in the embedded (arch linux) wiki
https://wiki.archlinux.org/index.php/Software_access_point#Wireless_client_and_software_AP_with_a_single_Wi-Fi_device
this is a bit weird, I can connect to "RaspberryWAP" but can't establish connection to 192.168.1.1,
this is my network diagram,
[OpenWRT router]---[raspberry router]---[client/my laptop via RaspberryWAP AP]
this is my laptop IP
โฏ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 5c:26:0a:74:48:aa brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 38:59:f9:05:0a:a7 brd ff:ff:ff:ff:ff:ff
inet 192.168.8.137/24 brd 192.168.8.255 scope global dynamic wlp2s0
valid_lft 42923sec preferred_lft 42923sec
inet6 fd66:67b7:4126::9a2/128 scope global
valid_lft forever preferred_lft forever
inet6 fd66:67b7:4126:0:6e2a:8f61:bb0d:14d0/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::816c:217:3bc3:73b4/64 scope link
valid_lft forever preferred_lft forever
seems it point the gateway directly to my WRTrouter not Raspi(?)
raspi IP :
$ ifconfig
br0 Link encap:Ethernet HWaddr 20:11:22:33:44:55
inet addr:192.168.8.243 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::2211:22ff:fe33:4456/64 Scope:Link
inet6 addr: fd66:67b7:4126::d1e/128 Scope:Global
inet6 addr: fd66:67b7:4126:0:e12c:b62c:c095:8aad/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:908 errors:0 dropped:0 overruns:0 frame:0
TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104219 (101.7 KiB) TX bytes:346580 (338.4 KiB)
eth0 Link encap:Ethernet HWaddr 20:11:22:33:44:56
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1307 errors:2 dropped:1 overruns:0 frame:2
TX packets:1343 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:256355 (250.3 KiB) TX bytes:269104 (262.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:11:d2:3c:48:16
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1253 errors:0 dropped:0 overruns:0 frame:0
TX packets:1663 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:198265 (193.6 KiB) TX bytes:593080 (579.1 KiB)
Hello, I would like to ask if the wifi router can be used to log all network traffic which will flow through the wifi.
I am trying to find something to do this, as I need this for testing in my project (need to see detailed communication log between the mobile app and developed hardware).
Thanks
Jan
At the moment its possible to enter Keys lesser than 8. That doesnt works on clients.
"This key may be entered either as a string of 64 hexadecimal digits, or as a passphrase of 8 to 63 printable ASCII characters."
from:
https://en.wikipedia.org/wiki/Wi-Fi_Protected_Access#Target_users_.28authentication_key_distribution.29
Hi
This is a great idea, love the idea of having a UI to be able to work with BUT....
I have installed on a B+ Raspi.
I get the login page on IPaddress/login.php.
But when I do login the page that opens is a grey page.
looking in the var/www folder everything seems to be there.
Hi Ronny,
Thank you for this awesome project, Currently it's under testing on my RPi2 and i'm impressed.
Is it possible to limit the time access of the clients or in MB usage?
and to restrict username only for 1 device?
Edited:
Can you add daloRADIUS to manage the Clients?
Thank you
php5-fpm isn't even part of raspbian anymore...
Is this project still alive?
thx
After creating partition on sd card using fdisk and rebooting, the raspbian is stuck on the start screen which shows "For Recovery mode, hold shift". And a window shows "Waiting for sd card (settings partition)". What to do?
first
thanks for your work.... ;)
whats the login fo the sql server ?
thanks in advance
Is it 'admin' and 'raspberry'?
First: Great Work. REALLY NICE IDEA!!
Right now it takes a lot of time to change every entry in every file to change username password.
I'd suggest a const in one file included in the other php files.
I think adapting the sudoers file is not the most secure way to handle the services (see reasons for fork opnsense)
as routersettings.ini is your main configuration file which might contain the wifi key, it shouldn't be stored in a folder where the www-data user has access. For now you can download the file without login or anything.
Adapt install.sh for raspbian-lite.
Add support for network-traffic monitoring for Captive Portal.
Using http://www.netexpertise.eu/en/freeradius/usage-graphs.html
and BandwidthD. Maybe adding some functions from https://github.com/GraseHotspot/grase-www-portal/blob/master/files/usr/share/grase/src/Grase/Database/Reports.php
I added to line 316 in Advanced-CaptivePortal.php
` <div id="ContentTitle" >
<a target="_blank" style="color:white;"href="https://192.168.178.50/bandwidthd/">Captive Portal User Traffic Monitor
<div id="ContentArticle" <?php if((strcmp($configurationsettings['operationmode'],'Access Point') == 0) || (strcmp($configurationsettings['captiveportal'],'disabled') == 0)) {echo 'style="display: none;';}?>>
<?php
$recordset = select("select username,value from radcheck","radius");
if (mysqli_num_rows($recordset) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($recordset)) {
echo '<a target="_blank" style="color:black;"href="https://192.168.178.50/bandwidthd/">';
echo '<hr /><h1 style="text-align:center; background:lightgrey;">' . $row["username"] . '</h1>';
echo '<img style="max-width:100%;"src="https://192.168.178.50/cgi-bin/graph.cgi?username=' .$row["username"] . '"</img>';
echo '</a>';
}
}
?>
If you want help, let me know. I'm very interested in this project.
Hello this is a very nice project. Are there any settings that the Internet connection via WLAN or 3G? Or is it planned?
Best Regards Mike
Is it possible to install Squid and SquidGuard and how. Thank you
Hello, I have Realtek USB WiFi adapter that works with standard Raspbian image. However, it does not work with router image, probably because of missing driver?
I installed raspi-config and it looks like wifi is not enabled. How can I add standard drivers for USB Wifi? I am getting these errors in syslog:
Apr 17 19:18:46 raspberrypi systemd[1]: hostapd.service: main process exited, code=exited, status=1/FAILURE
Apr 17 19:18:46 raspberrypi hostapd[2271]: hostapd_free_hapd_data: Interface wlan0 wasn't started
Apr 17 19:18:46 raspberrypi hostapd[2271]: wlan0: AP-DISABLED
Apr 17 19:18:46 raspberrypi hostapd[2271]: wlan0: interface state UNINITIALIZED->DISABLED
Apr 17 19:18:46 raspberrypi hostapd[2271]: nl80211 driver initialization failed.
Apr 17 19:18:46 raspberrypi hostapd[2271]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Apr 17 19:18:46 raspberrypi hostapd[2271]: nl80211: Driver does not support authentication/association or connect commands
Apr 17 19:18:46 raspberrypi hostapd[2271]: Configuration file: /etc/hostapd/hostapd.conf
Apr 17 19:18:45 raspberrypi systemd[1]: Starting hostapd service...
Request an option to Restart & Shutdown the Router from the Home page
Suggest a link on the Router home page to the github project page.
http://hyena.dscloud.me:8080/RaspberryWAPv1.4.zip gives me an error
admin and raspberry no found
possibility add shairport and miracast audio ?
This project is really great, and incredibly useful. I've been having difficulties trying to login to the web interface.
Is the default login info: admin/raspberry
I've tried this as well as root/raspberry pi/raspberry
I changed the wpa password via the web interface and failed to connect so I sshed into the hostapd.conf and noticed the default password was not changed. When I modified the file manually everything worked fine!
keep up the great work!
Great job sir. I just have an issue on activating captive portal. It is not working in my next reboot.
And if possible can you please include support to usb LAN adapter additional to usb wireless lan to broadcast in local network? and also please add login form before continuing to web configuration portal. God bless
HI.
Can u please add option to set hostname.
Hi,
Thanks for your efforts with this project.
The main reason I tried this project was so that I could add my own DNS servers. I've tried adding the following, but nothing has worked both in router and AP mode.
Adding prepend domain-name-servers x.x.x.x
in /etc/dhcp/dhclient.conf
Adding dns-nameservers x.x.x.x
in /etc/network/interfaces
Adding namserver=x.x.x.x
in /etc/resolv.conf
Cheers,
Ian
@ronnyvdbr
I saw others had this issue but never explained how to fix it, anyone got an idea?
Request an option to change WiFi network address/mask.
The current default clashes with typical home networks.
How do i use the captive portal?
This is funny. How the git will get installed?
########################################################################################
########################################################################################
sudo apt-get -y install rpi-update
sudo rpi-update
sudo reboot
########################################################################################
########################################################################################
sudo apt-get -y install git-core
git clone https://github.com/ronnyvdbr/Raspberry-Wifi-Router.git /home/pi/Raspberry-Wifi-Router
Hoi, hoe kan ik captive portal gebruiken?
Hi, i have gotten the Raspberry PI Wifi Router up and running and connected two devices. I have been trying to access the web ui of the router but i don't know what the address is. What is it please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.