Posts Tagged ‘nat linux iptables’

Easy NAT

Tuesday, December 15th, 2009

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


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

dmarkey.com