i finally got a setup working that suits my needs, a little background, i am on talktalk uk and have thier wifi hub, the wireless range on it is rubbish, i had a spare N66U router, i have this setup with dd-wrt and one radio is running in client mode and is repeating the isp router, on the repeater i have openVPN server running and i connect remotley to it with success, i am very happy with the wifi speeds i now get upstairs with this setup and happy that ovpn works, however, when i connect to the ovpn server the device that i am connecting to it on loses its internet connectivity, i cant do anything whilst its connected other than browse my LAN, i have read that it has something to do with NAT or a firewall rule, i have tried some firewall rules but i dont understand what i am doing, i just want to be able to use the internet when connected to the ovpn server..
i tried these firewalls...
WAN_IF="$(route -n | awk '/^0.0.0.0/{wif=$NF} END {print wif}')"
iptables -t nat -I POSTROUTING -o $WAN_IF -j MASQUERADE)
And...
iptables -t nat -A POSTROUTING -o $(get_wanface) -j MASQUERADE
I dont know whats wrong or how to fix it
i tried these firewalls...
WAN_IF="$(route -n | awk '/^0.0.0.0/{wif=$NF} END {print wif}')"
iptables -t nat -I POSTROUTING -o $WAN_IF -j MASQUERADE)
And...
iptables -t nat -A POSTROUTING -o $(get_wanface) -j MASQUERADE
I dont know whats wrong or how to fix it