Easy NAT

This is the easy way to give virtual machines access to an external network using iptables.

Warning this is very open and probably shouldnt be used in a production environment.

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -j MASQUERADE

Tags:

Leave a Reply


Copyright © 2019 All Rights Reserved.
No computers were harmed in the 0.075 seconds it took to produce this page.

dmarkey.com