[wifi-ap] Packets aren't being sent to shared interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snappy-hwe-snaps |
New
|
Undecided
|
Unassigned |
Bug Description
I'm trying to use a left-behind wifi-card to create an access point that shares the internet with my router.
# Problem
Wifi doesn't share internet.
# Setup
router 192.168.178.1 <---provides dhcp
|
|
|---enp24s0 192.168.178.115 (ethnernet interface)
server
|---wlp29s0 10.0.60.1 (wlan interface)
|
| WiFi: YouAreTooLoud
|
client 10.0.60.63
The server is running **Ubuntu 18.04** and is using the [`wifi-ap` snap](https:/
## Config
**wifi-ap config**
$ wifi.ap.config get
debug: false
dhcp.
dhcp.
dhcp.
disabled: false
share.disabled: false <----- this should work
share.
wifi.address: 10.0.60.1
wifi.channel: 6
wifi.
wifi.
wifi.interface: wlp29s0
wifi.
wifi.netmask: 255.255.255.0
wifi.
wifi.security: wpa2
wifi.
wifi.ssid: YouAreTooLoud
## Result
`wifi-ap` uses a script (https:/
**wifi-ap** snippet
if [ "$SHARE_DISABLED" = "false" ] ; then
# Enable NAT to forward our network connection
sysctl -w net.ipv4.
fi
**generated ip tables rules**
$ iptables -S
#....
-A FORWARD -i wlp29s0 -j ACCEPT
$ iptables -S -t nat
# ...
-A POSTROUTING -o enp24s0 -j MASQUERADE
**routes**
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 0 0 0 enp24s0
10.0.60.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp29s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 enp24s0
172.16.200.0 0.0.0.0 255.255.255.0 U 0 0 0 br-c9e2758dee42
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 enp24s0
Related to https:/ /code.launchpad .net/%7Esnappy- hwe-team/ snappy- hwe-snaps/ +git/wifi- ap