I have an (actually many, Pi1B, Zero, Pi2, 3B, 3B+) RPi running Arch (ipv6 enabled if that is important).
The RPi is connected:
$this->bbcode_second_pass_code('', 'root:/srv/http/command# ping www.google.com
PING www.google.com(ord38s31-in-x04.1e100.net (2607:f8b0:4009:81a::2004)) 56 data bytes
64 bytes from ord38s31-in-x04.1e100.net (2607:f8b0:4009:81a::2004): icmp_seq=1 ttl=117 time=4.03 ms
64 bytes from ord38s31-in-x04.1e100.net (2607:f8b0:4009:81a::2004): icmp_seq=2 ttl=117 time=4.11 ms
64 bytes from ord38s31-in-x04.1e100.net (2607:f8b0:4009:81a::2004): icmp_seq=3 ttl=117 time=4.04 ms
64 bytes from ord38s31-in-x04.1e100.net (2607:f8b0:4009:81a::2004): icmp_seq=4 ttl=117 time=4.00 ms
^C
--- www.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3016ms
rtt min/avg/max/mdev = 4.000/4.044/4.106/0.038 ms
root:/srv/http/command# ping -4 www.google.com
PING (142.250.191.196) 56(84) bytes of data.
64 bytes from ord38s31-in-f4.1e100.net (142.250.191.196): icmp_seq=1 ttl=117 time=3.96 ms
64 bytes from ord38s31-in-f4.1e100.net (142.250.191.196): icmp_seq=2 ttl=117 time=3.59 ms
64 bytes from ord38s31-in-f4.1e100.net (142.250.191.196): icmp_seq=3 ttl=117 time=3.80 ms
^C
--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2006ms
rtt min/avg/max/mdev = 3.586/3.782/3.961/0.153 ms')
I believe I have ip forwarding enabled:
$this->bbcode_second_pass_code('', 'root:~# cat /proc/sys/net/ipv4/ip_forward
1')
I can connect to the RPi as an AP, but I have no internet connectivity.
I was previously able to get NAT to work with hostapd/dnsmasq by these iptable commands:
$this->bbcode_second_pass_code('', 'iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT')
This no longer works.
I have also tried iwd and can also connect but also get no internet connectivity. Previously with iwd, I used these iptable rules:
$this->bbcode_second_pass_code('', 'iptables -t nat -A POSTROUTING -s 192.168.5.0/24 -j MASQUERADE')
Any idea what I am doing wrong? Has something changed which stops this from working?
Regards,
Keith