sudo xed /etc/default/grub
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
sudo update-grub
sudo reboot
sudo apt-get install hostapd
iw reg get
sudo iw reg set US
sudo xed /etc/hostapd/hostapd.conf
interface=wlan1
country_code=US
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=MiSSID
hw_mode=g
channel=11
beacon_int=100
dtim_period=2
max_num_sta=50
rts_threshold=2347
fragm_threshold=2346
wmm_enabled=1
ap_isolate=1
ieee80211n=1
ht_capab=[SHORT-GI-20][SHORT-GI-40]
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ieee8021x=0
eap_server=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=HappyPW2u
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_group_rekey=86400
sudo xed /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
[keyfile]
unmanaged-devices=mac:e8:4e:06:51:00:5d
sudo xed /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan1
iface wlan1 inet static
address 10.0.0.1
netmask 255.255.255.0
sudo apt-get install dnsmasq
sudo xed /etc/dnsmasq.conf
interface=wlan1
dhcp-range=10.0.0.2,10.0.0.10,255.255.255.0,12h
no-hosts
addn-hosts=/etc/hosts.dnsmasq
sudo xed /lib/systemd/system/dnsmasq.service
After=network-online.target
Wants=network-online.target
sudo xed /etc/hosts.dnsmasq
10.0.0.1 WiAP
sudo xed /etc/sysctl.conf
net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT
sudo iptables -nvL
sudo apt-get install iptables-persistent
sudo bash -c "iptables-save > /etc/iptables.rules"
sudo xed /etc/init.d/hostapd
DAEMON_CONF=/etc/hostapd/hostapd.conf
sudo service hostapd start
sudo service dnsmasq start
sudo service hostapd status
sudo service dnsmasq status
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/bks8RhOINP4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The wiki
As I'm setting up and testing another weewx server and would like to receive live data from the same IP Observer without changing the destination IP/port, do you think your approach would allow two weewx servers to receive same live data transmitted from the same IP Observer?
--
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.
That was what I have been trying to do, the sniff, without success. Could you suggest how should I set the sniff thing.Now my ObserverIP has local ip 192.168.2.122. It directs the data to my live weewx 192.168.2.3 port 55 which runs Interceptor in listening mode.