My objective is to use an RPi as a OpenVPN router. I'm using an RPi 3. For testing purposes this RPi has full Raspian Jessie, I will no doubt later run this headless.
Here's where I am now:
The RPi is functioning as a Router. The Wired connection goes to my DSL Modem, the RPi wireless is ad-hoc, routing is working. I can connect to ad-hoc and surf.
eth0 gets IP via DHCP from DSL router
wlan0 has static IP
RPi serves up IP addresses to wireless clients
I have installed OpenVPN and am set to configure, but every article I've read on setting up VPN Routing on RPi says something to the affect of "It's very important that eth0 have a static IP".
Now this is fine, I can set the IP of eth0 so it works on 'This' network, but I want to be able to take the RPi Router and plug it in to any active internet connection and have it function. For the life of me I can't figure out why it would be necessary to have a static IP on eth0? I have a tomato router running OpenVPN and the WAN port is using DHCP, why would the RPi be any different?
Any thoughts on this? Anyone using an RPi as an OpenVPN router?