JuvenalUrbino
I want to clear this up to make sure I've explained properly the purpose of this. I want my router to do its router job and the raspberry pi to provide internet connection to the router.
Something I am not sure to understand with my current configuration on raspberry pi, I cannot ssh into it when it is plugged in the wan port of the router, nor I can ssh from the wifi connection (from the other router that provide internet). The network is working when I provide internet to the router and the rpi is plugged to a lan port. But I am not able to get internet from the wifi connection of the rpi (which, if I remember correctly, was working before I change npf settings).
genet0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ec_capabilities=0x1<VLAN_MTU>
ec_enabled=0
address: e4:5f:01:86:22:4e
media: Ethernet autoselect (1000baseT full-duplex,master)
status: active
inet6 fe80::2766:8d4c:3dff:488b%genet0/64 flags 0 scopeid 0x1
inet 192.168.0.182/24 broadcast 192.168.0.255 flags 0
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
status: active
inet6 ::1/128 flags 0x20<NODAD>
inet6 fe80::1%lo0/64 flags 0 scopeid 0x2
inet 127.0.0.1/8 flags 0
bwfm0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ssid Home nwkey 65536:"",0xb6b976eadc35a917987de5a0fa0be801,0xae4162a374437ec3b1620b972833ce27,""
powersave off
bssid 74:24:9f:d2:9d:9a chan 11
address: e4:5f:01:86:22:50
media: IEEE802.11 autoselect (HT mode 11ng)
status: active
inet6 fe80::bc03:5a38:e829:8107%bwfm0/64 flags 0 scopeid 0x3
inet6 2605:59c8:23f8:e910:794d:16d4:1b1b:2840/64 flags 0x40<AUTOCONF>
inet6 fd5e:9a9e:c5bd:10:cd60:d452:3d06:8e28/64 flags 0x40<AUTOCONF>
inet6 2605:59c8:23f8:e910::922/128 flags 0
inet6 fd5e:9a9e:c5bd:10::922/128 flags 0
inet 192.168.1.118/24 broadcast 192.168.1.255 flags 0
/etc/ifconfig.genet0 doesn't exist.
rc.conf:
sshd=YES
dhcpcd=YES
ntpd=YES
ntpd_flags="-g"
creds_msdos=YES
creds_msdos_partition=/boot
mdnsd=YES
devpubd=YES
wscons=$(dev_exists wsdisplay0)
ec2_init=$(dev_exists ena0)
wpa_supplicant=YES
wpa_supplicant_flags="-i bwfm0 -c /etc/wpa_supplicant.conf"
dhcpcd_flags="${dhcpcd_flags} -b"
ifconfig bfwm0 up
npf=YES
wpa_supplicant:
# $NetBSD: wpa_supplicant.conf,v 1.1 2019/01/12 16:51:54 roy Exp $
# Allow wpa_cli(8) to configure wpa_supplicant
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="Home"
psk="xxxx"
}
update_config=1