I configured my raspberry pi as a wireless access point with a bridge between eth0 and wlan using this tutorial but now I can't access it. I'm not quite good with networking, but I think it doesn't currently work because it passes all traffic from eth0 (where my requests come from) to wlan.

I'm asking if there's a way not to send all traffic to wlan, so I can also use the machine as a webserver.

  • Please edit your question and add the output of this two commands to it: ip addr and ip route. – Ingo Dec 29 '19 at 1:05

Turns out I can simply access my webserver through the wlan0 interface with a little configuration on the access point. I don't quite remember what it was exactly as I tried multiple things, but I believe the solution was to remove denyinterfaces wlan from /etc/dhcpcd.conf. Then you use ifconfig to find out what ip address wlan0 uses, and you use it to connect to your webserver instead of the one associated with the ethernet connection.

  • Not very helpful for someone who is looking for a solution. How exactly do you solve the problem? – Ingo Jan 12 '20 at 9:51
  • I understand, I just edited the answer to add some more information – Bajatu Roman Jan 12 '20 at 16:50

One way would be to set a pseudo interface. If your eth0 IP address was set up eth0:0 with IP address (or whatever works for your address scheme and DHCP scope), then you should be able to use the IP address for the web service. For syntax you could refer to https://www.tecmint.com/ifconfig-command-examples/.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.