Difference between revisions of "LXC Ubuntu 16.04"
From MyWiki
Line 7: | Line 7: | ||
lxc exec first -- /bin/bash | lxc exec first -- /bin/bash | ||
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT] | sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT] | ||
− | iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 587 -j DNAT | + | iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 587 -j DNAT --to-destination 10.0.3.100:587 |
− | + | ||
</source> | </source> |
Revision as of 10:32, 17 May 2018
https://tutorials.ubuntu.com/tutorial/tutorial-setting-up-lxd-1604#2
There are two repositories - images repository and ubuntu repository lxc image list images: lxc image list ubuntu: https://www.youtube.com/watch?v=snWp-5K2LO4 lxc exec first -- /bin/bash sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT] iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 587 -j DNAT --to-destination 10.0.3.100:587