Are you using bridging or routing ?YodaDaCoda wrote:I've actually almost completely managed to do this. The only problem I'm having is routing DHCP and DNS requests to the router using iptables. Maybe there's something I'm missing, but if someone know things about iptables (I'm hardly a linux noob, but iptables confuses the hell out of me) I'd appreciate some help. Naturally, I'd do a proper write-up afterwards.
That link looks very interesting, Thanks for that MattMattF wrote:Hi,
I looked into how to do this, and there are some challenges in bridging over Wireless because of the differences at layer 2.
If you can get full 4 addr support setup, then you are in with half a chance, but even then there are likely to be problems.
Happily there is a solution that "just works".
Build a normal Master/Managed Wi-Fi relationship between the two nodes.
Bridge the Wi-Fi adapters to the wired ethernet.
Then build an openvpn across the Wi-Fi segment in bridged mode.
This results in a full transparent layer 2 bridge in place, with no worries about mac addresses, NAT or any other such complication.
http://christian.hofstaedtler.name/blog ... envpn.html was very useful in getting OpenVPN correct - just remember it's a Wi-Fi segment rather than the Internet in between your pair of devices.
Rgds,
Matt
I'm not bridging the connections; I'm routing using iptables. I still have to figure out why iptables isn't routing the dhcp requests, and I suspect it may be something to do with the way I did the nat translation chain stuff (copied a few lines from stackexchange) - I think it's dropping udp packets. But that's a job for Monday.SirLagz wrote:Are you using bridging or routing ?
if you're bridging, iptables *shouldnt* come into it.
If you're routing, then it's not really bridging, and you just setup iptables like a router.
Ahh. If you're routing, then you'll need to install a dhcp server on your Pi, and that will hand out IP addresses.YodaDaCoda wrote:I'm not bridging the connections; I'm routing using iptables. I still have to figure out why iptables isn't routing the dhcp requests, and I suspect it may be something to do with the way I did the nat translation chain stuff (copied a few lines from stackexchange) - I think it's dropping udp packets. But that's a job for Monday.SirLagz wrote:Are you using bridging or routing ?
if you're bridging, iptables *shouldnt* come into it.
If you're routing, then it's not really bridging, and you just setup iptables like a router.