- Joined
- Oct 24, 2004
- Messages
- 1,294 (0.17/day)
Hello !
I'm using my raspberry PI (powered by raspbian) as a wireless access point.
I have enabled ipv4 forwarding between my wireless (192.168.42.0/24) and my wired networks (192.168.1.0/24) with the following iptables rules :
Everything works great, except for the WOL magic packets sent from my laptop, not reaching their destinations (from wlan0 to eth0)
I tried to create an additionnal rule for UDP packets aimed at port 9 :
but nothing happened.
As soon as i'm turning off my laptop's WiFI and switching to a wired connection, the previous wakeonlan command work as it should and the distant computer wake up....
Do you have some ideas i could try ? Am i wrong assuming the previous 2 iptables rules should be enough to route *anything* to and from my wireless & wired networks ?
thanks in advance for your help !
I'm using my raspberry PI (powered by raspbian) as a wireless access point.
I have enabled ipv4 forwarding between my wireless (192.168.42.0/24) and my wired networks (192.168.1.0/24) with the following iptables rules :
Code:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
Everything works great, except for the WOL magic packets sent from my laptop, not reaching their destinations (from wlan0 to eth0)
Code:
wakeonlan -i 192.168.1.2 -p 9 AA:BB:CC:DD:EE:FF
I tried to create an additionnal rule for UDP packets aimed at port 9 :
Code:
sudo iptables -A FORWARD -i wlan0 -o eth0 -p udp -d 192.168.1.255 --dport 9 -j ACCEPT
but nothing happened.
As soon as i'm turning off my laptop's WiFI and switching to a wired connection, the previous wakeonlan command work as it should and the distant computer wake up....
Do you have some ideas i could try ? Am i wrong assuming the previous 2 iptables rules should be enough to route *anything* to and from my wireless & wired networks ?
thanks in advance for your help !
Last edited: