Changes

Jump to: navigation, search

Using NAT for container with private IPs

571 bytes removed, 14:12, 11 September 2015
no edit summary
<pre>net.ipv4.conf.default.forwarding=1
net.ipv4.conf.all.forwarding=1</pre>
 
=== How to use iptables instead of firewalld in OpenVZ7 ===
 
firewalld was introduced with CentOS 7 to manage iptables. If you prefer classic iptables management please follow these steps.
First, stop and mask the firewalld service:
# systemctl stop firewalld
# systemctl mask firewalld
Then, install the iptables-services package:
# yum install iptables-services
Enable the service at boot-time:
# systemctl enable iptables
Managing the service
# systemctl [stop|start|restart] iptables
Saving your firewall rules can be done as follows:
# service iptables save
== How to provide access for container to Internet ==
91
edits

Navigation menu