nanostation slrh buttercube

Oct 26, 11:18 AM

========== 2022-04-16
INSTALLATION: always use https://www.raspberrypi.com/software/
“Install Raspberry Pi OS using Raspberry Pi Imager” – never just “click-drag” and image, that does NOT work
===========================

default ip 192.168.123.20 username/password: ubnt/ubnt

1) set new IP number under “Network”

2) under “Wireless”, select WDS (transparent bridge mode

3) scan (or manually enter SSID name)

4) select wpa2-AES for security

5) password

6) rename radio

raspberry pi computer:
user: pi
pass: raspberry ??me??57!

@reboot ( sleep 15 ; bash -vx /home/pi/iptablesSetup.bsh ) > /home/pi/iptablesSetup.bsh.log 2>&1

  1. since the current modem does not allow for remote access, just grab pages for display (cheap shot)
    */5 * * * * sudo curl —insecure https://192.168.1.254/xslt?PAGE=A_0_0 | sed —expression=‘s|href=”/?css|href=“http://slrh.edwardsmark.com/css/c|; s||PASSWORD!|;’ > /var/www/html/modemStatusHome.html
    */5 * * * * sudo curl —insecure https://192.168.1.254/xslt?PAGE=C_0_0 | sed —expression=‘s|href=”/?css|href=“http://slrh.edwardsmark.com/css/c|;’ > /var/www/html/modemStatusSettingsSystemInfo.html

cat /home/pi/iptablesSetup.bsh;
#! /bin/bash
PI_IP=192.168.100.50;

sudo echo “1” > /proc/sys/net/ipv4/ip_forward ;

sudo iptables —flush ; ## there is probably a better way….

sudo iptables -I INPUT 1 -i eth0 -p tcp —dport 8080 -j ACCEPT ; ## for rasberry pi apache2 server…..

sudo echo “Setting ifconfig eth0 to ${PI_IP} !!!!!! “;
sudo ifconfig eth0 ${PI_IP} netmask 255.255.255.0 up ;

##### UNUSED BELOW:

sudo apt-get update ;
sudo apt-get install socat ;
sudo apt-get install firewalld;
sudo systemctl start firewalld ;
sudo systemctl stop firewalld ;
sudo systemctl enable firewalld ;
sudo systemctl status firewalld ;
sudo firewall-cmd —zone=public —add-port=80/tcp —permanent ;

sudo ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up ;
sudo route add default gw 192.168.1.1 ;
sudo echo “nameserver 1.1.1.1” > /etc/resolv.conf ;
ping google.com ;

socat commands:
socat -V ;
socat TCP4-LISTEN:80,fork,reuseaddr TCP4:192.168.1.21:80 ;

Mark Edwards

,

---

Commenting is closed for this article.

---