04 junio, 2016

OpenVPN raspberry pi LAN

en openvpn.conf

push "route 192.168.66.0 255.255.255.0"

en sysctl.conf descomentar esta linea

#net.ipv4.ip_forward = 1

iptables -A FORWARD -i eth0 -o tun0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -o eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

No hay comentarios.: