Closed Nickjallday closed 4 years ago
@saikhurana98
Any idea? I haven't made any progress.
Your iptables looks fine to me. Can u try SSHing into RPi and do curl over 192.168.2.2
.
I want to make sure if service is accessible to Pi
I figured it out, I had to uncomment net.ipv4.ip_forward=1 in /etc/sysctl.conf. Thanks guys!
So first off thank you so much for this script. It's really awesome I use the
wifi-to-eth-route.sh
on one of my 3d printers that only has an ethernet interface.My issue is for this script to work well for me I need to be able to forward port 80 from an ethernet device to the Pi's wifi so I can access its web interface from the wifi network. I accomplished this by adding variables to the script to access my 3d printer:
and the following two lines after
sudo iptables -A FORWARD -i $eth -o $wlan -j ACCEPT
For some reason on this second setup the
wifi-to-eth-route.sh
works I can access the internet from behind the pi ethernet, but I cannot get access to the web interface via wifi of the device on the Pi's ethernet. I know it's not necessarily an issue, but I was hoping for a bit of guidance on how to accomplish this on my second pi setup. The only differences in the setups are this one is a Pi3 running Buster. The Pi2 is running Jesse.