So I have my raspberry pi connected to the internet via my iPhone (tethering via USB), and it all works fine, the connection is setup on eth1. The problem I have is I cannot manage to forward my connection from eth1 (the USB port) to eth0 (the LAN RJ45 port).
I tried using iptables but I am wondering if I did not use the wrong commands ? I also have port forwarded the ipv4. Anyways, the internal IP address of my raspberry pi is 192.168.20.2 and the internal ip address of my iPhone is 192.168.1.6. The tethering is done from the iPhone's wifi (not 3G) but will later be on 3G, to usb.
How would I be able to share the connection from my iPhone to the device, via the raspberry pi acting as the medium as I cannot directly connect a RJ45 cable to the iPhone ?
Thank you !