LesOlivex

Serveis informàtics




Compartir conexion de internet

Category : Consola, Linux, Redes des 18th, 2014

Compartir la conexión a internet con la red privada haciendo masquerade

Servidor:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.1.1/24 -d 0.0.0.0/0 -j MASQUERADE

Cliente:

route add default gw 192.168.1.1

Leave a Reply

Your email address will not be published. Required fields are marked *