Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using a Raspberry PI to share it's wifi connection with an ethernet-switch. In the Connection Manager, I set the eth0-interface to shared, so it would use the wlan0-interface as the internet connection.

Internet access from the ethernet works, but I am not able to access any of the workstations in the ethernet from the wifi, even though I set a static route on the router which routes the wifi-network.

This is my setup:

Wifi network:, the Raspberry has the static address

Ethernet network:, the Raspberry is the router here with

Ping results:

ethernet -> wifi works without any problems

wifi -> ethernet is like this:

$ ping
PING ( 56(84) bytes of data.
From icmp_seq=1 Redirect Host(New nexthop:
From icmp_seq=1 Redirect HostFrom icmp_seq=1 Destination Port Unreachable
From icmp_seq=2 Destination Port Unreachable
From icmp_seq=3 Destination Port Unreachable
From icmp_seq=4 Destination Port Unreachable
--- ping statistics ---
4 packets transmitted, 0 received, +5 errors, 100% packet loss, time 3003ms

except for the Raspberry itself:

$ ping
PING ( 56(84) bytes of data.
From icmp_seq=1 Redirect Host(New nexthop:
From icmp_seq=1 Redirect Host64 bytes from icmp_req=1 ttl=64 time=44.8 ms
64 bytes from icmp_req=2 ttl=64 time=269 ms
64 bytes from icmp_req=3 ttl=64 time=88.6 ms
64 bytes from icmp_req=4 ttl=64 time=111 ms
--- ping statistics ---
10 packets transmitted, 10 received, +1 errors, 0% packet loss, time 9010ms
rtt min/avg/max/mdev = 19.821/84.037/269.677/68.191 ms

I took a look into the routing table of the raspi, since the problem seems to lie there:

$ route -n
Target          Router          Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 wlan0   U     0      0        0 eth0   U     0      0        0 wlan0


$ ip route show
default via dev wlan0 dev eth0  scope link dev wlan0  proto kernel  scope link  src 

I think the problem is, that the scope of the route to the ethernet is 'link', but as much as I looked into the manpages and at examples, I wasn't able to change that to 'global'.

I want to be able to set up a NAS or another server of some kind in the ethernet-network so it really bothers me that it isn't accessible from the wifi.

I have full access to the raspi via ssh and vnc.

Edit: Solved, just had to flush the iptables, the packets somehow got filtered out...

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.