Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6lbr Web interface on a Raspberrypi standalone webserver #394

Open
ahmedmibrahim opened this issue Apr 27, 2019 · 0 comments
Open

6lbr Web interface on a Raspberrypi standalone webserver #394

ahmedmibrahim opened this issue Apr 27, 2019 · 0 comments

Comments

@ahmedmibrahim
Copy link

ahmedmibrahim commented Apr 27, 2019

Hello,
I'm trying to run 6lbr web server on a raspberry pi as a "Standalone access point", i.e.: the raspberry-pi will be configured as a wifi hotspot, and PC's/cell phones should be able to access the 6lbr web page via wifi (with no external internet connection).
I just cannot open the web page [bbbb::100] from the network devices, any idea how to host this web page to the LAN?

  • I built and installed 6lbr which is working fine via Ethernet
  • I configured the raspberry-pi as a wifi server as shown below, and it is working: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md (all steps from the beginning until before "Add routing and masquerade")
  • I tried it with Apache2 and managed to open the landing page on wifi devices
  • I changed the interfaces file to connect br0 to wlan0 instead of eth0:
#####################################################
auto lo                                 # Starts lo on bootup
iface lo inet loopback

auto wlan0                              # Starts wlan0 on bootup
allow-hotplug wlan0                     # starts wlan0 interface on a hotplug event
iface wlan0 inet manual                 # creates a network interface without an ip  address which is normally done for bridges
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto br0                                # Starts br0 on bootup
iface br0 inet manual
    bridge_ports wlan0 #eth0
    bridge_stp off
    up echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping
    post-up ip link set br0 address `ip link show wlan0 | grep ether | awk '{print $2}'`
###################################################
  • ifconfig shows:
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.238.135  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 bbbb::bb3b:4555:b661:34c3  prefixlen 64  scopeid 0x0<global>
        inet6 bbbb::eef4:bdfd:43cc:f2e6  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::508e:c3ff:fec5:60a8  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:b0:44:72  txqueuelen 1000  (Ethernet)
        RX packets 11829  bytes 1191261 (1.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12107  bytes 994040 (970.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::457a:7baa:6c23:cabc  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:e5:11:27  txqueuelen 1000  (Ethernet)
        RX packets 105791  bytes 10616611 (10.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 111225  bytes 48785647 (46.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 545142  bytes 37284522 (35.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 545142  bytes 37284522 (35.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.77.32  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::fa11:7560:8fb4:dace  prefixlen 64  scopeid 0x20<link>
        ether 02:0a:0b:0c:0d:0e  txqueuelen 1000  (Ethernet)
        RX packets 11829  bytes 1356867 (1.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12397  bytes 1072150 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.4.1  netmask 255.255.255.0  broadcast 192.168.4.255
        ether b8:27:eb:b0:44:72  txqueuelen 1000  (Ethernet)
        RX packets 5025  bytes 423785 (413.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3697  bytes 431764 (421.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant